[PATCH] Support for Dell D630 sound
Xin LI
delphij at delphij.net
Mon Jul 7 19:36:45 UTC 2008
-----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-----
-------------- next part --------------
Index: hdac.c
===================================================================
--- hdac.c ï¼çæ¬ 180335ï¼
+++ hdac.c ï¼å·¥ä½å¯æ¬ï¼
@@ -193,6 +193,7 @@
/* 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)
@@ -688,6 +689,8 @@
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,
@@ -4255,6 +4258,8 @@
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,
@@ -4528,7 +4533,8 @@
}
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;
More information about the freebsd-current
mailing list