From: Zheng Yang Date: Thu, 27 Sep 2012 02:45:40 +0000 (+0800) Subject: rk2928:acodec: for rk2926, only support MICR X-Git-Tag: firefly_0821_release~8552 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=f438c00c09b6b25c9ced8cabd5f54f2de6f28be6;p=firefly-linux-kernel-4.4.55.git rk2928:acodec: for rk2926, only support MICR --- diff --git a/sound/soc/codecs/rk2928_codec.c b/sound/soc/codecs/rk2928_codec.c index b3de543b0ee6..14ab7375d005 100755 --- a/sound/soc/codecs/rk2928_codec.c +++ b/sound/soc/codecs/rk2928_codec.c @@ -61,9 +61,11 @@ static const struct snd_soc_dapm_widget rk2928_dapm_widgets[] = { SND_SOC_DAPM_OUT_DRV("DACR Drv", CODEC_REG_DAC_MUTE, 0, 1, NULL, 0), SND_SOC_DAPM_OUTPUT("SPKL"), SND_SOC_DAPM_OUTPUT("SPKR"), + #ifndef CONFIG_MACH_RK2928_A720 SND_SOC_DAPM_ADC("ADCL", "HIFI Capture", CODEC_REG_POWER, 3, 1), - SND_SOC_DAPM_ADC("ADCR", "HIFI Capture", CODEC_REG_POWER, 2, 1), SND_SOC_DAPM_INPUT("MICL"), + #endif + SND_SOC_DAPM_ADC("ADCR", "HIFI Capture", CODEC_REG_POWER, 2, 1), SND_SOC_DAPM_INPUT("MICR"), }; @@ -72,7 +74,9 @@ static const struct snd_soc_dapm_route rk2928_audio_map[] = { {"SPKR", "DACR Amp", "DACR"}, // {"SPKL", NULL, "DACL Drv"}, // {"SPKR", NULL, "DACR Drv"}, + #ifndef CONFIG_MACH_RK2928_A720 {"ADCL", NULL, "MICL"}, + #endif {"ADCR", NULL, "MICR"}, };