Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 111083
b: refs/heads/master
c: cb01e2b
h: refs/heads/master
i:
  111081: d34a19f
  111079: 0ac687f
v: v3
  • Loading branch information
Richard Zhao authored and Jaroslav Kysela committed Oct 10, 2008
1 parent a3069a3 commit 4b64d1f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 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: ff33f2303b0ea8e5ac15af91de8d8538a5d58db1
refs/heads/master: cb01e2b99264d579085c63966744d91b87c6b35d
8 changes: 4 additions & 4 deletions trunk/sound/soc/soc-dapm.c
Original file line number Diff line number Diff line change
Expand Up @@ -693,7 +693,7 @@ static void dbg_dump_dapm(struct snd_soc_codec* codec, const char *action)
/* test and update the power status of a mux widget */
static int dapm_mux_update_power(struct snd_soc_dapm_widget *widget,
struct snd_kcontrol *kcontrol, int mask,
int val, struct soc_enum* e)
int mux, int val, struct soc_enum *e)
{
struct snd_soc_dapm_path *path;
int found = 0;
Expand All @@ -709,12 +709,12 @@ static int dapm_mux_update_power(struct snd_soc_dapm_widget *widget,
if (path->kcontrol != kcontrol)
continue;

if (!path->name || ! e->texts[val])
if (!path->name || !e->texts[mux])
continue;

found = 1;
/* we now need to match the string in the enum to the path */
if (!(strcmp(path->name, e->texts[val])))
if (!(strcmp(path->name, e->texts[mux])))
path->connect = 1; /* new connection */
else
path->connect = 0; /* old connection must be powered down */
Expand Down Expand Up @@ -1291,7 +1291,7 @@ int snd_soc_dapm_put_enum_double(struct snd_kcontrol *kcontrol,

mutex_lock(&widget->codec->mutex);
widget->value = val;
dapm_mux_update_power(widget, kcontrol, mask, mux, e);
dapm_mux_update_power(widget, kcontrol, mask, mux, val, e);
if (widget->event) {
if (widget->event_flags & SND_SOC_DAPM_PRE_REG) {
ret = widget->event(widget,
Expand Down

0 comments on commit 4b64d1f

Please sign in to comment.