Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 316119
b: refs/heads/master
c: 0f4ccbb
h: refs/heads/master
i:
  316117: 199bd26
  316115: 45427c7
  316111: ff8ca53
v: v3
  • Loading branch information
Wang Xingchao authored and Takashi Iwai committed Jun 7, 2012
1 parent f6903b1 commit dd85650
Show file tree
Hide file tree
Showing 2 changed files with 6 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: 0c7f46ad927cbd29965d4971730de713b478d270
refs/heads/master: 0f4ccbb02533276ab750961e150aeee06492ed7c
7 changes: 5 additions & 2 deletions trunk/sound/pci/hda/hda_codec.c
Original file line number Diff line number Diff line change
Expand Up @@ -3532,8 +3532,11 @@ static void hda_set_power_state(struct hda_codec *codec, hda_nid_t fg,
}

/* this delay seems necessary to avoid click noise at power-down */
if (power_state == AC_PWRST_D3)
msleep(100);
if (power_state == AC_PWRST_D3) {
/* transition time less than 10ms for power down */
bool epss = snd_hda_codec_get_supported_ps(codec, fg, AC_PWRST_EPSS);
msleep(epss ? 10 : 100);
}
snd_hda_codec_read(codec, fg, 0, AC_VERB_SET_POWER_STATE,
power_state);
snd_hda_codec_set_power_to_all(codec, fg, power_state, true);
Expand Down

0 comments on commit dd85650

Please sign in to comment.