5 Sep 20:52
[PATCH] hda: SPDIF mux controls
From: Matthew Ranostay <mranostay <at> embeddedalley.com>
Subject: [PATCH] hda: SPDIF mux controls
Newsgroups: gmane.linux.alsa.devel
Date: 2008-09-05 18:55:02 GMT
Subject: [PATCH] hda: SPDIF mux controls
Newsgroups: gmane.linux.alsa.devel
Date: 2008-09-05 18:55:02 GMT
Dynamically create mux controls for SPDIF outs on certain IDT/Sigmatel codecs.
---
Signed-off-by: Matthew Ranostay <mranostay <at> embeddedalley.com>
diff --git a/pci/hda/patch_sigmatel.c b/pci/hda/patch_sigmatel.c
index 9968ee4..4637d76 100644
--- a/pci/hda/patch_sigmatel.c
+++ b/pci/hda/patch_sigmatel.c
@@ -173,6 +173,9 @@ struct sigmatel_spec {
unsigned int num_dmics;
hda_nid_t *dmux_nids;
unsigned int num_dmuxes;
+ hda_nid_t *smux_nids;
+ unsigned int num_smuxes;
+
hda_nid_t dig_in_nid;
hda_nid_t mono_nid;
hda_nid_t anabeep_nid;
@@ -193,6 +196,8 @@ struct sigmatel_spec {
unsigned int cur_dmux[2];
struct hda_input_mux *input_mux;
unsigned int cur_mux[3];
+ struct hda_input_mux *sinput_mux;
+ unsigned int cur_smux[2];
unsigned int powerdown_adcs;
/* i/o switches */
@@ -209,6 +214,7 @@ struct sigmatel_spec {
(Continue reading)
RSS Feed