summaryrefslogtreecommitdiffstats
path: root/sound/soc/soc-dapm.c
diff options
context:
space:
mode:
authorPeter Ujfalusi <peter.ujfalusi@nokia.com>2009-01-15 14:40:47 +0200
committerTakashi Iwai <tiwai@suse.de>2009-01-15 16:20:27 +0100
commiteff317d0834ad1ff03f747f6bc2d76b9a9c95160 (patch)
tree93d5d82b22c4e4cf316cee51f09ba90200d85943 /sound/soc/soc-dapm.c
parent37a76bd4f1b716949fc38a6842e89f0ccb8384d0 (diff)
downloadblackbird-op-linux-eff317d0834ad1ff03f747f6bc2d76b9a9c95160.tar.gz
blackbird-op-linux-eff317d0834ad1ff03f747f6bc2d76b9a9c95160.zip
ASoC: Fix the power update function for snd_soc_dapm_value_mux
Modify the check for the mux type to also handle the snd_soc_dapm_value_mux type in a same way as the snd_soc_dapm_mux. Signed-off-by: Peter Ujfalusi <peter.ujfalusi@nokia.com> Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/soc/soc-dapm.c')
-rw-r--r--sound/soc/soc-dapm.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sound/soc/soc-dapm.c b/sound/soc/soc-dapm.c
index 493a4e8aa273..a2f1da8b4646 100644
--- a/sound/soc/soc-dapm.c
+++ b/sound/soc/soc-dapm.c
@@ -720,7 +720,8 @@ static int dapm_mux_update_power(struct snd_soc_dapm_widget *widget,
struct snd_soc_dapm_path *path;
int found = 0;
- if (widget->id != snd_soc_dapm_mux)
+ if (widget->id != snd_soc_dapm_mux &&
+ widget->id != snd_soc_dapm_value_mux)
return -ENODEV;
if (!snd_soc_test_bits(widget->codec, e->reg, mask, val))
OpenPOWER on IntegriCloud