Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 10088
b: refs/heads/master
c: d5c5d8f
h: refs/heads/master
v: v3
  • Loading branch information
Takashi Iwai authored and Linus Torvalds committed Oct 24, 2005
1 parent 510156b commit 22078cb
Show file tree
Hide file tree
Showing 2 changed files with 5 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: 10ded9493ec4a566977ed68b65158eba280e61e5
refs/heads/master: d5c5d8fe32a4b9b14363c6031061e98e26da59a2
6 changes: 4 additions & 2 deletions trunk/sound/core/init.c
Original file line number Diff line number Diff line change
Expand Up @@ -828,7 +828,8 @@ static int snd_generic_suspend(struct device *dev, pm_message_t state, u32 level
card = get_snd_generic_card(dev);
if (card->power_state == SNDRV_CTL_POWER_D3hot)
return 0;
card->pm_suspend(card, PMSG_SUSPEND);
if (card->pm_suspend)
card->pm_suspend(card, PMSG_SUSPEND);
snd_power_change_state(card, SNDRV_CTL_POWER_D3hot);
return 0;
}
Expand All @@ -843,7 +844,8 @@ static int snd_generic_resume(struct device *dev, u32 level)
card = get_snd_generic_card(dev);
if (card->power_state == SNDRV_CTL_POWER_D0)
return 0;
card->pm_resume(card);
if (card->pm_suspend)
card->pm_resume(card);
snd_power_change_state(card, SNDRV_CTL_POWER_D0);
return 0;
}
Expand Down

0 comments on commit 22078cb

Please sign in to comment.