Skip to content

Commit

Permalink
ASoC: UDA134X: Fix mistaken mute/unmute code
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Shine Liu authored and Mark Brown committed Aug 17, 2009
1 parent 471e3de commit 0c093fb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sound/soc/codecs/uda134x.c
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ static int uda134x_mute(struct snd_soc_dai *dai, int mute)
else
mute_reg &= ~(1<<2);

uda134x_write(codec, UDA134X_DATA010, mute_reg & ~(1<<2));
uda134x_write(codec, UDA134X_DATA010, mute_reg);

return 0;
}
Expand Down

0 comments on commit 0c093fb

Please sign in to comment.