Add quirk for Dell D630 laptops.

Tested by:	Quake Lee <quakelee geekcn org>,
		Robert Noland <rnoland 2hip net>
MFC after:	1 week
Approved by:	ariff
This commit is contained in:
delphij 2008-07-15 02:34:44 +00:00
parent 5faf505c39
commit eae79cfa0f

View File

@ -193,6 +193,7 @@ SND_DECLARE_FILE("$FreeBSD$");
/* 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 @@ static const struct {
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 @@ static const struct {
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 @@ hdac_vendor_patch_parse(struct hdac_devinfo *devinfo)
}
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;