Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 270766
b: refs/heads/master
c: 05623c4
h: refs/heads/master
v: v3
  • Loading branch information
Mark Brown committed Oct 4, 2011
1 parent 3056b7b commit 079e4c0
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 12 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: aa59802dedac98dc95310a456121cec6a9d6b63f
refs/heads/master: 05623c4314cba3971f8476151aff73126127925f
29 changes: 18 additions & 11 deletions trunk/sound/soc/soc-dapm.c
Original file line number Diff line number Diff line change
Expand Up @@ -1197,6 +1197,23 @@ static void dapm_post_sequence_async(void *data, async_cookie_t cookie)
}
}

static void dapm_widget_set_power(struct snd_soc_dapm_widget *w, bool power,
struct list_head *up_list,
struct list_head *down_list)
{
if (w->power == power)
return;

trace_snd_soc_dapm_widget_power(w, power);

if (power)
dapm_seq_insert(w, up_list, true);
else
dapm_seq_insert(w, down_list, false);

w->power = power;
}

static void dapm_power_one_widget(struct snd_soc_dapm_widget *w,
struct list_head *up_list,
struct list_head *down_list)
Expand Down Expand Up @@ -1241,17 +1258,7 @@ static void dapm_power_one_widget(struct snd_soc_dapm_widget *w,
}
}

if (w->power == power)
break;

trace_snd_soc_dapm_widget_power(w, power);

if (power)
dapm_seq_insert(w, up_list, true);
else
dapm_seq_insert(w, down_list, false);

w->power = power;
dapm_widget_set_power(w, power, up_list, down_list);
break;
}
}
Expand Down

0 comments on commit 079e4c0

Please sign in to comment.