Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 316138
b: refs/heads/master
c: b43d224
h: refs/heads/master
v: v3
  • Loading branch information
Dylan Reid authored and Takashi Iwai committed Jun 22, 2012
1 parent a08c1ec commit 1da14d9
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: e9ea8e8f229f4963bf01658e79c1c01780de25dd
refs/heads/master: b43d224767e426cf1a8b6622d1d172f2b2b0e857
7 changes: 7 additions & 0 deletions trunk/sound/pci/hda/hda_codec.c
Original file line number Diff line number Diff line change
Expand Up @@ -4444,6 +4444,13 @@ static void __snd_hda_power_up(struct hda_codec *codec, bool wait_power_down)
cancel_delayed_work_sync(&codec->power_work);

spin_lock(&codec->power_lock);
/* If the power down delayed work was cancelled above before starting,
* then there is no need to go through power up here.
*/
if (codec->power_on) {
spin_unlock(&codec->power_lock);
return;
}
trace_hda_power_up(codec);
snd_hda_update_power_acct(codec);
codec->power_on = 1;
Expand Down

0 comments on commit 1da14d9

Please sign in to comment.