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

Commit 9e976976 authored by Takashi Iwai's avatar Takashi Iwai
Browse files

ALSA: hda - Fix caching of SPDIF status bits

SPDIF status bits controls are written via snd_hda_codec_write()
without caching.  This causes a regression at resume that the bits
are lost.

Simply replacing it with the cached version fixes the problem.

Reference:
	http://lkml.org/lkml/2008/11/24/324



Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
parent b0fc5e04
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -1436,12 +1436,12 @@ static void set_dig_out(struct hda_codec *codec, hda_nid_t nid,
{
	hda_nid_t *d;

	snd_hda_codec_write(codec, nid, 0, verb, val);
	snd_hda_codec_write_cache(codec, nid, 0, verb, val);
	d = codec->slave_dig_outs;
	if (!d)
		return;
	for (; *d; d++)
		snd_hda_codec_write(codec, *d, 0, verb, val);
		snd_hda_codec_write_cache(codec, *d, 0, verb, val);
}

static inline void set_dig_out_convert(struct hda_codec *codec, hda_nid_t nid,