Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d2595d86 authored by Marc Boucher's avatar Marc Boucher Committed by Jaroslav Kysela
Browse files

[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: default avatarMarc Boucher <marc@linuxant.com>
Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
Signed-off-by: default avatarJaroslav Kysela <perex@perex.cz>
parent 9f113e0e
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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++) {