[ALSA] hda-codec - Add a delay after power state change
authorMarc Boucher <[email protected]>
Tue, 22 Jan 2008 14:23:30 +0000 (15:23 +0100)
committerJaroslav Kysela <[email protected]>
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 <[email protected]>
Signed-off-by: Takashi Iwai <[email protected]>
Signed-off-by: Jaroslav Kysela <[email protected]>
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++) {