Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0c093fb5 authored by Shine Liu's avatar Shine Liu Committed by Mark Brown
Browse files

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: default avatarShine Liu <shinel@foxmail.com>
Signed-off-by: default avatarMark Brown <broonie@opensource.wolfsonmicro.com>
parent 471e3dec
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;
}