diff options
author | Axel Lin <axel.lin@gmail.com> | 2011-12-09 05:43:20 -0500 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2011-12-09 07:28:28 -0500 |
commit | 7fcadfd17699b6b7973ce4f99eae47a11b4c44a7 (patch) | |
tree | dc46c3e58d3dce49db8dd37d90211f35c4c3d7b6 /sound/soc/codecs/wm8961.c | |
parent | 46ce904f7d4788ebc2ca7894fb56b9aa5b84af2d (diff) |
ASoC: Fix comments for disabling amplifier and PGA
Signed-off-by: Axel Lin <axel.lin@gmail.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'sound/soc/codecs/wm8961.c')
-rw-r--r-- | sound/soc/codecs/wm8961.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sound/soc/codecs/wm8961.c b/sound/soc/codecs/wm8961.c index dc087c155975..58fbf0a87b6a 100644 --- a/sound/soc/codecs/wm8961.c +++ b/sound/soc/codecs/wm8961.c | |||
@@ -422,11 +422,11 @@ static int wm8961_spk_event(struct snd_soc_dapm_widget *w, | |||
422 | } | 422 | } |
423 | 423 | ||
424 | if (event & SND_SOC_DAPM_PRE_PMD) { | 424 | if (event & SND_SOC_DAPM_PRE_PMD) { |
425 | /* Enable the amplifier */ | 425 | /* Disable the amplifier */ |
426 | spk_reg &= ~(WM8961_SPKL_ENA | WM8961_SPKR_ENA); | 426 | spk_reg &= ~(WM8961_SPKL_ENA | WM8961_SPKR_ENA); |
427 | snd_soc_write(codec, WM8961_CLASS_D_CONTROL_1, spk_reg); | 427 | snd_soc_write(codec, WM8961_CLASS_D_CONTROL_1, spk_reg); |
428 | 428 | ||
429 | /* Enable the PGA */ | 429 | /* Disable the PGA */ |
430 | pwr_reg &= ~(WM8961_SPKL_PGA | WM8961_SPKR_PGA); | 430 | pwr_reg &= ~(WM8961_SPKL_PGA | WM8961_SPKR_PGA); |
431 | snd_soc_write(codec, WM8961_PWR_MGMT_2, pwr_reg); | 431 | snd_soc_write(codec, WM8961_PWR_MGMT_2, pwr_reg); |
432 | } | 432 | } |