[ALSA] hda-codec - Add a delay after power state change
authorMarc Boucher <marc@linuxant.com>
Tue, 22 Jan 2008 14:23:30 +0000 (15:23 +0100)
committerJaroslav Kysela <perex@perex.cz>
Thu, 31 Jan 2008 16:30:10 +0000 (17:30 +0100)
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>
sound/pci/hda/hda_codec.c

index b5e69b10cb830a0eef91ceb818f0a9b2f566294c..6b93f45111667a794d8e3909062c82bc0bd4fa82 100644 (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++) {