Commit 52ac7ab2 authored by Mark Brown's avatar Mark Brown

ASoC: Ensure we reconfigure WM8958 microphone detection on rate changes

We don't need to rerun DAPM if the clock source is the same but we do
need to adjust the microphone detection rate in case we are moving from
an audio to a non-audio rate.
Signed-off-by: default avatarMark Brown <broonie@opensource.wolfsonmicro.com>
parent af6b6fe4
...@@ -307,10 +307,8 @@ static int configure_clock(struct snd_soc_codec *codec) ...@@ -307,10 +307,8 @@ static int configure_clock(struct snd_soc_codec *codec)
change = snd_soc_update_bits(codec, WM8994_CLOCKING_1, change = snd_soc_update_bits(codec, WM8994_CLOCKING_1,
WM8994_SYSCLK_SRC, new); WM8994_SYSCLK_SRC, new);
if (!change) if (change)
return 0; snd_soc_dapm_sync(&codec->dapm);
snd_soc_dapm_sync(&codec->dapm);
wm8958_micd_set_rate(codec); wm8958_micd_set_rate(codec);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment