ALSA: ASoC: add new param mux to dapm_mux_update_power
authorRichard Zhao <linuxzsc@gmail.com>
Tue, 7 Oct 2008 00:05:20 +0000 (08:05 +0800)
committerJaroslav Kysela <perex@perex.cz>
Fri, 10 Oct 2008 11:41:54 +0000 (13:41 +0200)
Function dapm_mux_update_power needs enum index mux and register mask value val
as parameters, but it only has a parameter val, and uses it as both val and mux.
snd_soc_test_bits(widget->codec, e->reg, mask, val) val is register mask here,
e->texts[val] but val should be enum index mux here.

This patch adds a new param mux to fix it.

Signed-off-by: Richard Zhao <linuxzsc@gmail.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>

No differences found