diff options
author | Shine Liu <shinel@foxmail.com> | 2009-08-17 06:52:01 -0400 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2009-08-17 07:56:57 -0400 |
commit | 0c093fb5421a648fae46fce17277bdb358fe017b (patch) | |
tree | d0ea03d974bf023eb425e5e7d560f45b3d6b746e /sound/soc/codecs/uda134x.c | |
parent | 471e3dec3abe2d41e8c742046353fcb01bc2459e (diff) |
ASoC: UDA134X: Fix mistaken mute/unmute code
There is a mistake in current uda134x_mute function: mute_reg has been
changed in line 162 or line 164, so uda134x_write should write
"mute_reg" but not "mute_reg & ~(1<<2)" to
UDA134X_DATA010.
Signed-off-by: Shine Liu <shinel@foxmail.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'sound/soc/codecs/uda134x.c')
-rw-r--r-- | sound/soc/codecs/uda134x.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/codecs/uda134x.c b/sound/soc/codecs/uda134x.c index 269b108e1de6..c33b92edbded 100644 --- a/sound/soc/codecs/uda134x.c +++ b/sound/soc/codecs/uda134x.c | |||
@@ -163,7 +163,7 @@ static int uda134x_mute(struct snd_soc_dai *dai, int mute) | |||
163 | else | 163 | else |
164 | mute_reg &= ~(1<<2); | 164 | mute_reg &= ~(1<<2); |
165 | 165 | ||
166 | uda134x_write(codec, UDA134X_DATA010, mute_reg & ~(1<<2)); | 166 | uda134x_write(codec, UDA134X_DATA010, mute_reg); |
167 | 167 | ||
168 | return 0; | 168 | return 0; |
169 | } | 169 | } |