ChangeSet 1.2181.25.24, 2005/03/22 09:10:24+01:00, [EMAIL PROTECTED]
[ALSA] Fix SPDIF output on CMI9880
HDA Codec driver
There is mute control on 9880's spdif (IEC958) out, so it needs to be
turned on/off in mixer.
The patch is for CVS version and I think it can be patched to azx too.
Hope this also fix the 9880 SPDIF-out bug.
Signed-off-by: ChenLi Tien <[EMAIL PROTECTED]>
Signed-off-by: Takashi Iwai <[EMAIL PROTECTED]>
hda_codec.c | 3 +++
1 files changed, 3 insertions(+)
diff -Nru a/sound/pci/hda/hda_codec.c b/sound/pci/hda/hda_codec.c
--- a/sound/pci/hda/hda_codec.c 2005-03-30 16:14:17 -08:00
+++ b/sound/pci/hda/hda_codec.c 2005-03-30 16:14:17 -08:00
@@ -955,6 +955,9 @@
if (change || codec->in_resume) {
codec->spdif_ctls = val;
snd_hda_codec_write(codec, nid, 0, AC_VERB_SET_DIGI_CONVERT_1,
val & 0xff);
+ snd_hda_codec_write(codec, nid, 0, AC_VERB_SET_AMP_GAIN_MUTE,
+ AC_AMP_SET_RIGHT | AC_AMP_SET_LEFT |
+ AC_AMP_SET_OUTPUT | ((val & 1) ? 0 : 0x80));
}
up(&codec->spdif_mutex);
return change;
-
To unsubscribe from this list: send the line "unsubscribe bk-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at http://vger.kernel.org/majordomo-info.html