diff options
author | Lionel Xu <r63889@freescale.com> | 2009-08-17 17:30:36 +0800 |
---|---|---|
committer | Lionel Xu <r63889@freescale.com> | 2009-08-19 11:23:19 +0800 |
commit | 7ae95d855b04797d0e53045cbe5a8d744f56e7c1 (patch) | |
tree | 86a23443dae3d1e3ec91f208e9a0c4b6126f11e0 /sound | |
parent | e9f08d288c36fdce06ebf60dd8a5bf61b251c88f (diff) |
ENGR00115083 MX233 ALSA: Remove the headphone noise when system stands by
Remove the headphone noise when there is no wav playing.
Signed-off-by: Lionel Xu <r63889@freescale.com>
Diffstat (limited to 'sound')
-rw-r--r-- | sound/soc/codecs/stmp378x_codec.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/sound/soc/codecs/stmp378x_codec.c b/sound/soc/codecs/stmp378x_codec.c index c8a72b8efa4f..7e15810756de 100644 --- a/sound/soc/codecs/stmp378x_codec.c +++ b/sound/soc/codecs/stmp378x_codec.c @@ -398,11 +398,15 @@ static int stmp378x_codec_dig_mute(struct snd_soc_dai *dai, int mute) u32 dac_mask = BM_AUDIOOUT_DACVOLUME_MUTE_LEFT | BM_AUDIOOUT_DACVOLUME_MUTE_RIGHT; - if (mute) + if (mute) { HW_AUDIOOUT_DACVOLUME_SET(dac_mask); - else + HW_AUDIOOUT_HPVOL_SET(BM_AUDIOOUT_HPVOL_MUTE); + HW_AUDIOOUT_SPEAKERCTRL_SET(BM_AUDIOOUT_SPEAKERCTRL_MUTE); + } else { HW_AUDIOOUT_DACVOLUME_CLR(dac_mask); - + HW_AUDIOOUT_HPVOL_CLR(BM_AUDIOOUT_HPVOL_MUTE); + HW_AUDIOOUT_SPEAKERCTRL_CLR(BM_AUDIOOUT_SPEAKERCTRL_MUTE); + } return 0; } |