mirror of
https://github.com/adulau/aha.git
synced 2024-12-29 04:06:22 +00:00
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>
This commit is contained in:
parent
37a76bd4f1
commit
eff317d083
1 changed files with 2 additions and 1 deletions
|
@ -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))
|
||||
|
|
Loading…
Reference in a new issue