dect
/
linux-2.6
Archived
13
0
Fork 0

[ALSA] hda-codec - Add a delay after power state change

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>
This commit is contained in:
Marc Boucher 2008-01-22 15:23:30 +01:00 committed by Jaroslav Kysela
parent 9f113e0ef4
commit d2595d86e5
1 changed files with 1 additions and 0 deletions

View File

@ -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++) {