Skip to content

Commit

Permalink
[ALSA] hda-codec - Add a delay after power state change
Browse files Browse the repository at this point in the history
Added a delay after the power state change as a partial workaround
for 'hda_intel: azx_get_response timeout' problem on Cxt codecs.

Signed-off-by: Marc Boucher <marc@linuxant.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
  • Loading branch information
Marc Boucher authored and Jaroslav Kysela committed Jan 31, 2008
1 parent 9f113e0 commit d2595d8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions sound/pci/hda/hda_codec.c
Original file line number Diff line number Diff line change
Expand Up @@ -1685,6 +1685,7 @@ static void hda_set_power_state(struct hda_codec *codec, hda_nid_t fg,

snd_hda_codec_write(codec, fg, 0, AC_VERB_SET_POWER_STATE,
power_state);
msleep(10); /* partial workaround for "azx_get_response timeout" */

nid = codec->start_nid;
for (i = 0; i < codec->num_nodes; i++, nid++) {
Expand Down

0 comments on commit d2595d8

Please sign in to comment.