Skip to content

Commit

Permalink
ASoC: Fix the power update function for snd_soc_dapm_value_mux
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Peter Ujfalusi authored and Takashi Iwai committed Jan 15, 2009
1 parent 37a76bd commit eff317d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion sound/soc/soc-dapm.c
Original file line number Diff line number Diff line change
@@ -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))

0 comments on commit eff317d

Please sign in to comment.