Skip to contentSkip to conversation

ASoC: fix the dapm_mux_update_power function for value_mux

PATCH In review Peter Ujfalusi 2 participants 3 messages Jan 15, 2009

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

cover ASoC: fix the dapm_mux_update_power function for value_mux

Hello,

To be honest I don't know how I have missed this from the previous series with the cleanup for the value_mux type.

the dapm_mux_update_power function needs to check for both snd_soc_dapm_mux and snd_soc_dapm_value_mux.

---
Peter Ujfalusi (1):
ASoC: Fix the power update function for snd_soc_dapm_value_mux

 sound/soc/soc-dapm.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
#1 lore raw

PATCH 1/1 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.

---
 sound/soc/soc-dapm.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
sound/soc/soc-dapm.c +2 -1
index 493a4e8..a2f1da8 100644
@@ -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))
Signature · 1 line
1.6.1
Acked-by on v1 1/1
#2 lore raw

Re: [PATCH 1/1] ASoC: Fix the power update function for snd_soc_dapm_value_mux

")
Fcc: +sent-mail

Quoted 4 lines · Peter Ujfalusi

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.

This should go to 2.6.29, I'll send to Takashi later.