rk2928:acodec: for rk2926, only support MICR
authorZheng Yang <zhengyang@rock-chips.com>
Thu, 27 Sep 2012 02:45:40 +0000 (10:45 +0800)
committerZheng Yang <zhengyang@rock-chips.com>
Thu, 27 Sep 2012 02:45:40 +0000 (10:45 +0800)
sound/soc/codecs/rk2928_codec.c

index b3de543b0ee61f3e1cedf981ff9c8ecd51d8851b..14ab7375d005136153eda60e231ec39c8c164a17 100755 (executable)
@@ -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"},
 };