[PATCH] [UBUNTU:sound/pci/] Make DXS_SRC the default for VIA8235/8237/8251 chips

crimsun at fungus.sh.nu crimsun at fungus.sh.nu
Fri Apr 28 06:13:44 UTC 2006


Subject: [PATCH] [UBUNTU:sound/pci/] Make DXS_SRC the default for VIA8235/8237/8251 chips

UpstreamStatus: Added in upstream hg changeset 4204:5cf914368b6efd432e5e8b7f9c1e3e253b27520e ,
                http://sourceforge.net/mailarchive/forum.php?thread_id=10258438&forum_id=33141

Takashi Iwai committed this change to make DXS_SRC the default mode for
newer VIA chips. For the older VIA8233/A/C chips, the old default
DXS_48K is used.

Signed-off-by: Daniel T Chen <crimsun at ubuntu.com>

---

 sound/pci/via82xx.c |    8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)

468748441a2d99a0e03443877fe8e3b7313ceb51
diff --git a/sound/pci/via82xx.c b/sound/pci/via82xx.c
index bdae1dc..e1920de 100644
--- a/sound/pci/via82xx.c
+++ b/sound/pci/via82xx.c
@@ -2293,7 +2293,7 @@ struct dxs_whitelist {
 	short action;	/* new dxs_support value */
 };
 
-static int __devinit check_dxs_list(struct pci_dev *pci)
+static int __devinit check_dxs_list(struct pci_dev *pci, int revision)
 {
 	static struct dxs_whitelist whitelist[] = {
 		{ .subvendor = 0x1005, .subdevice = 0x4710, .action = VIA_DXS_ENABLE }, /* Avance Logic Mobo */
@@ -2365,6 +2365,10 @@ static int __devinit check_dxs_list(stru
 		}
 	}
 
+	/* for newer revision, default to DXS_SRC */
+	if (revision >= VIA_REV_8235)
+		return VIA_DXS_SRC;
+
 	/*
 	 * not detected, try 48k rate only to be sure.
 	 */
@@ -2409,7 +2413,7 @@ static int __devinit snd_via82xx_probe(s
 		}
 		if (chip_type != TYPE_VIA8233A) {
 			if (dxs_support == VIA_DXS_AUTO)
-				dxs_support = check_dxs_list(pci);
+				dxs_support = check_dxs_list(pci, revision);
 			/* force to use VIA8233 or 8233A model according to
 			 * dxs_support module option
 			 */
-- 
1.1.3


-- 
Daniel T. Chen            crimsun at ubuntu.com
GPG key:   www.sh.nu/~crimsun/pubkey.gpg.asc
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <https://lists.ubuntu.com/archives/kernel-team/attachments/20060427/179e4273/attachment.sig>


More information about the kernel-team mailing list