Skip to content

Commit 52ac7ab

Browse files
committed
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: Mark Brown <broonie@opensource.wolfsonmicro.com>
1 parent af6b6fe commit 52ac7ab

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

‎sound/soc/codecs/wm8994.c‎

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -307,10 +307,8 @@ static int configure_clock(struct snd_soc_codec *codec)
307307

308308
change = snd_soc_update_bits(codec, WM8994_CLOCKING_1,
309309
WM8994_SYSCLK_SRC, new);
310-
if (!change)
311-
return 0;
312-
313-
snd_soc_dapm_sync(&codec->dapm);
310+
if (change)
311+
snd_soc_dapm_sync(&codec->dapm);
314312

315313
wm8958_micd_set_rate(codec);
316314

0 commit comments

Comments
 (0)