Skip to content

Commit

Permalink
ASoC: Ensure we reconfigure WM8958 microphone detection on rate changes
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Mark Brown committed Dec 1, 2011
1 parent af6b6fe commit 52ac7ab
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions sound/soc/codecs/wm8994.c
Original file line number Diff line number Diff line change
Expand Up @@ -307,10 +307,8 @@ static int configure_clock(struct snd_soc_codec *codec)

change = snd_soc_update_bits(codec, WM8994_CLOCKING_1,
WM8994_SYSCLK_SRC, new);
if (!change)
return 0;

snd_soc_dapm_sync(&codec->dapm);
if (change)
snd_soc_dapm_sync(&codec->dapm);

wm8958_micd_set_rate(codec);

Expand Down

0 comments on commit 52ac7ab

Please sign in to comment.