5 Sep 23:43
[PATCH] hda: multiple SPDIF outputs support
From: Matthew Ranostay <mranostay <at> embeddedalley.com>
Subject: [PATCH] hda: multiple SPDIF outputs support
Newsgroups: gmane.linux.alsa.devel
Date: 2008-09-05 21:45:54 GMT
Subject: [PATCH] hda: multiple SPDIF outputs support
Newsgroups: gmane.linux.alsa.devel
Date: 2008-09-05 21:45:54 GMT
Added support for outputting a stream to multiple SPDIF outs on supporting codecs.
---
Signed-off-by: Matthew Ranostay <mranostay <at> embeddedalley.com>
diff --git a/pci/hda/hda_codec.c b/pci/hda/hda_codec.c
index 4f32911..696d77e 100644
--- a/pci/hda/hda_codec.c
+++ b/pci/hda/hda_codec.c
@@ -1454,12 +1454,22 @@ static int snd_hda_spdif_default_put(struct snd_kcontrol *kcontrol,
codec->spdif_ctls = val;
if (change) {
+ hda_nid_t *d;
snd_hda_codec_write_cache(codec, nid, 0,
AC_VERB_SET_DIGI_CONVERT_1,
val & 0xff);
snd_hda_codec_write_cache(codec, nid, 0,
AC_VERB_SET_DIGI_CONVERT_2,
val >> 8);
+
+ for (d = codec->slave_dig_outs; *d; d++) {
+ snd_hda_codec_write_cache(codec, *d, 0,
+ AC_VERB_SET_DIGI_CONVERT_1,
+ val & 0xff);
+ snd_hda_codec_write_cache(codec, *d, 0,
+ AC_VERB_SET_DIGI_CONVERT_2,
+ val >> 8);
+ }
}
(Continue reading)
RSS Feed