diff options
author | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2011-07-06 00:08:43 -0700 |
---|---|---|
committer | Andreas Blaesius <skate4life@gmx.de> | 2016-04-30 11:03:38 +0200 |
commit | ed68457108b8edea23f1634bb98d6d8eb568cc4b (patch) | |
tree | b920f1f661238067ccc3e3f2093ab6544f8605e4 /sound/soc | |
parent | acd2e75249d8642114931020fbce8fb29b252dbf (diff) | |
download | kernel_samsung_espresso10-ed68457108b8edea23f1634bb98d6d8eb568cc4b.zip kernel_samsung_espresso10-ed68457108b8edea23f1634bb98d6d8eb568cc4b.tar.gz kernel_samsung_espresso10-ed68457108b8edea23f1634bb98d6d8eb568cc4b.tar.bz2 |
ASoC: Conditionalize the enable of WM8994 ADC TDM mode
Future devices will not benefit from this.
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Acked-by: Liam Girdwood <lrg@ti.com>
Diffstat (limited to 'sound/soc')
-rw-r--r-- | sound/soc/codecs/wm8994.c | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/sound/soc/codecs/wm8994.c b/sound/soc/codecs/wm8994.c index 064ad77..991ead7 100644 --- a/sound/soc/codecs/wm8994.c +++ b/sound/soc/codecs/wm8994.c @@ -3071,10 +3071,18 @@ static int wm8994_codec_probe(struct snd_soc_codec *codec) 1 << WM8994_AIF2DAC_3D_GAIN_SHIFT, 1 << WM8994_AIF2DAC_3D_GAIN_SHIFT); - /* Unconditionally enable AIF1 ADC TDM mode; it only affects - * behaviour on idle TDM clock cycles. */ - snd_soc_update_bits(codec, WM8994_AIF1_CONTROL_1, - WM8994_AIF1ADC_TDM, WM8994_AIF1ADC_TDM); + /* Unconditionally enable AIF1 ADC TDM mode on chips which can + * use this; it only affects behaviour on idle TDM clock + * cycles. */ + switch (control->type) { + case WM8994: + case WM8958: + snd_soc_update_bits(codec, WM8994_AIF1_CONTROL_1, + WM8994_AIF1ADC_TDM, WM8994_AIF1ADC_TDM); + break; + default: + break; + } wm8994_update_class_w(codec); |