From: Marc Boucher Date: Tue, 22 Jan 2008 14:23:30 +0000 (+0100) Subject: [ALSA] hda-codec - Add a delay after power state change X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=d2595d86e5095f724c17ce97d679f30aa3eaabf8;p=GitHub%2FLineageOS%2Fandroid_kernel_samsung_universal7580.git [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 Signed-off-by: Takashi Iwai Signed-off-by: Jaroslav Kysela --- diff --git a/sound/pci/hda/hda_codec.c b/sound/pci/hda/hda_codec.c index b5e69b10cb8..6b93f451116 100644 --- a/sound/pci/hda/hda_codec.c +++ b/sound/pci/hda/hda_codec.c @@ -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++) {