Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 81609
b: refs/heads/master
c: 1b075e3
h: refs/heads/master
i:
  81607: 69acc66
v: v3
  • Loading branch information
Milan plzik authored and Jaroslav Kysela committed Jan 31, 2008
1 parent f64f071 commit 19232f8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 4ccab3e72e211c40d868045c7d3216948999bcf7
refs/heads/master: 1b075e3f7323f85f7e9cc7b6ae7a36c33d9ce76e
5 changes: 3 additions & 2 deletions trunk/sound/soc/soc-dapm.c
Original file line number Diff line number Diff line change
Expand Up @@ -691,15 +691,16 @@ static int dapm_mux_update_power(struct snd_soc_dapm_widget *widget,
return 0;
}

/* test and update the power status of a mixer widget */
/* test and update the power status of a mixer or switch widget */
static int dapm_mixer_update_power(struct snd_soc_dapm_widget *widget,
struct snd_kcontrol *kcontrol, int reg,
int val_mask, int val, int invert)
{
struct snd_soc_dapm_path *path;
int found = 0;

if (widget->id != snd_soc_dapm_mixer)
if (widget->id != snd_soc_dapm_mixer &&
widget->id != snd_soc_dapm_switch)
return -ENODEV;

if (!snd_soc_test_bits(widget->codec, reg, val_mask, val))
Expand Down

0 comments on commit 19232f8

Please sign in to comment.