]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commit
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)
commitcb01e2b99264d579085c63966744d91b87c6b35d
treeff93cff44a66a3deb30c69900206b5eda7a7b485
parentff33f2303b0ea8e5ac15af91de8d8538a5d58db1
ALSA: ASoC: add new param mux to dapm_mux_update_power

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>
sound/soc/soc-dapm.c