ASoC: Conditionalize the enable of WM8994 ADC TDM mode
Subsystems (3)
PATCH 1/1 ASoC: Conditionalize the enable of WM8994 ADC TDM mode
Future devices will not benefit from this.
Signed-off-by Mark Brown <[email protected]>
--- sound/soc/codecs/wm8994.c | 16 ++++++++++++---- 1 files changed, 12 insertions(+), 4 deletions(-)
sound/soc/codecs/wm8994.c +12 -4
@@ -3114,10 +3114,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);
Signature · 1 line
1.7.5.4
Quoted 7 lines · Mark Brown
Future devices will not benefit from this.
Signed-off-by Mark Brown <[email protected]>--- sound/soc/codecs/wm8994.c | 16 ++++++++++++---- 1 files changed, 12 insertions(+), 4 deletions(-)
Acked-by Liam Girdwood <[email protected]>