Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 270776
b: refs/heads/master
c: f68d7e1
h: refs/heads/master
v: v3
  • Loading branch information
Mark Brown committed Oct 5, 2011
1 parent ee73f6d commit 218fd0d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 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: f3bf3e456a8be9b359a8f4ff458ae1be4fc4c516
refs/heads/master: f68d7e168785a2e89f615863fb5fab22518c8eb8
9 changes: 3 additions & 6 deletions trunk/sound/soc/soc-dapm.c
Original file line number Diff line number Diff line change
Expand Up @@ -851,7 +851,6 @@ static int dapm_dac_check_power(struct snd_soc_dapm_widget *w)
static int dapm_supply_check_power(struct snd_soc_dapm_widget *w)
{
struct snd_soc_dapm_path *path;
int power = 0;

DAPM_UPDATE_STAT(w, power_checks);

Expand All @@ -869,15 +868,13 @@ static int dapm_supply_check_power(struct snd_soc_dapm_widget *w)
if (!path->sink)
continue;

if (dapm_widget_power_check(path->sink)) {
power = 1;
break;
}
if (dapm_widget_power_check(path->sink))
return 1;
}

dapm_clear_walk(w->dapm);

return power;
return 0;
}

static int dapm_always_on_check_power(struct snd_soc_dapm_widget *w)
Expand Down

0 comments on commit 218fd0d

Please sign in to comment.