Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 182769
b: refs/heads/master
c: dd2b4a7
h: refs/heads/master
i:
  182767: 8a2458f
v: v3
  • Loading branch information
Zhang, Rui authored and Takashi Iwai committed Feb 24, 2010
1 parent 808d672 commit 283aa17
Show file tree
Hide file tree
Showing 2 changed files with 3 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: 0d7d8bf3b896dd8752284e2a7639a03936085e5f
refs/heads/master: dd2b4a7abf82d88261f8f98e1361388a7db2ffe4
4 changes: 2 additions & 2 deletions trunk/sound/pci/hda/hda_codec.c
Original file line number Diff line number Diff line change
Expand Up @@ -2767,7 +2767,8 @@ static void hda_set_power_state(struct hda_codec *codec, hda_nid_t fg,
snd_hda_codec_read(codec, fg, 0, AC_VERB_SET_POWER_STATE,
power_state);
/* partial workaround for "azx_get_response timeout" */
if (power_state == AC_PWRST_D0)
if (power_state == AC_PWRST_D0 &&
(codec->vendor_id & 0xffff0000) == 0x14f10000)
msleep(10);

nid = codec->start_nid;
Expand Down Expand Up @@ -2801,7 +2802,6 @@ static void hda_set_power_state(struct hda_codec *codec, hda_nid_t fg,
if (power_state == AC_PWRST_D0) {
unsigned long end_time;
int state;
msleep(10);
/* wait until the codec reachs to D0 */
end_time = jiffies + msecs_to_jiffies(500);
do {
Expand Down

0 comments on commit 283aa17

Please sign in to comment.