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

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/324Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
parent b0fc5e04
...@@ -1436,12 +1436,12 @@ static void set_dig_out(struct hda_codec *codec, hda_nid_t nid, ...@@ -1436,12 +1436,12 @@ static void set_dig_out(struct hda_codec *codec, hda_nid_t nid,
{ {
hda_nid_t *d; 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; d = codec->slave_dig_outs;
if (!d) if (!d)
return; return;
for (; *d; d++) 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, static inline void set_dig_out_convert(struct hda_codec *codec, hda_nid_t nid,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment