[PATCH] Support for Dell D630 sound

From: Xin LI <delphij_at_delphij.net>
Date: Mon, 07 Jul 2008 12:36:27 -0700
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi, Ariff,

A friend of mine recently bought a Dell D630 and found that the audio
part does not work.  I have put together this patch which allows the
audio to work.  Could you or may I commit against -HEAD?  (A MFC of hda
related stuff would be required for RELENG_7 to work with it)

Thanks in advance!

Cheers,
- --
Xin LI <delphij_at_delphij.net>	http://www.delphij.net/
FreeBSD - The Power to Serve!
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.9 (FreeBSD)

iEYEARECAAYFAkhycDoACgkQi+vbBBjt66DUlQCeNMm75JGtHrTTxiiXAP9AyJEQ
DtoAniIgEblJ3Ue81v4IBtZ2wB/pLmzu
=upDg
-----END PGP SIGNATURE-----

Index: hdac.c
===================================================================
--- hdac.c	(版本 180335)
+++ hdac.c	(工作副本)
_at__at_ -193,6 +193,7 _at__at_
 
 /* Dell */
 #define DELL_VENDORID		0x1028
+#define DELL_D630_SUBVENDOR	HDA_MODEL_CONSTRUCT(DELL, 0x01f9)
 #define DELL_D820_SUBVENDOR	HDA_MODEL_CONSTRUCT(DELL, 0x01cc)
 #define DELL_V1500_SUBVENDOR	HDA_MODEL_CONSTRUCT(DELL, 0x0228)
 #define DELL_I1300_SUBVENDOR	HDA_MODEL_CONSTRUCT(DELL, 0x01c9)
_at__at_ -688,6 +689,8 _at__at_
 	    0, 0, -1, 13, { 14, -1 }, -1 },
 	{ DELL_OPLX745_SUBVENDOR, HDA_CODEC_AD1983, HDAC_HP_SWITCH_CTL,
 	    0, 0, -1, 6, { 5, 7, -1 }, -1 },
+	{ DELL_D630_SUBVENDOR, HDA_CODEC_STAC9205, HDAC_HP_SWITCH_CTRL,
+	    0, 0, -1, 10, { 13, -1 }, -1 },
 	{ DELL_V1500_SUBVENDOR, HDA_CODEC_STAC9205, HDAC_HP_SWITCH_CTRL,
 	    0, 0, -1, 10, { 13, -1 }, -1 },
 	{ APPLE_MB3_SUBVENDOR, HDA_CODEC_ALC885, HDAC_HP_SWITCH_CTL,
_at__at_ -4255,6 +4258,8 _at__at_
 	    HDA_QUIRK_GPIO0 | HDA_QUIRK_OVREF50, 0},
 	{ APPLE_INTEL_MAC, HDA_CODEC_STAC9221,
 	    HDA_QUIRK_GPIO0 | HDA_QUIRK_GPIO1, 0 },
+	{ DELL_D630_SUBVENDOR, HDA_CODEC_STAC9205,
+	    HDA_QUIRK_GPIO0, 0 },
 	{ DELL_V1500_SUBVENDOR, HDA_CODEC_STAC9205,
 	    HDA_QUIRK_GPIO0, 0 },
 	{ HDA_MATCH_ALL, HDA_CODEC_AD1988,
_at__at_ -4528,7 +4533,8 _at__at_
 		}
 		break;
 	case HDA_CODEC_STAC9205:
-		if (subvendor == DELL_V1500_SUBVENDOR) {
+		if ((subvendor == DELL_V1500_SUBVENDOR) ||
+		    (subvendor == DELL_D630_SUBVENDOR)) {
 			w = hdac_widget_get(devinfo, 29);
 			if (w != NULL)
 				w->selconn = 1;
Received on Mon Jul 07 2008 - 17:36:44 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:39:32 UTC