diff options
author | ariff <ariff@FreeBSD.org> | 2007-12-13 15:44:53 +0000 |
---|---|---|
committer | ariff <ariff@FreeBSD.org> | 2007-12-13 15:44:53 +0000 |
commit | cb78c6c574e83859b6fe44b6c3de3c05e1600431 (patch) | |
tree | 2fa56957b16cd5dfc11adff7e4bb6fa3d89f821c /sys/dev | |
parent | cd8dd509e58c8183d4857c5e00ba546f7068f6c6 (diff) | |
download | FreeBSD-src-cb78c6c574e83859b6fe44b6c3de3c05e1600431.zip FreeBSD-src-cb78c6c574e83859b6fe44b6c3de3c05e1600431.tar.gz |
nid 28 for Acer @ ALC268 should be identified as analog CD input pin,
though it doesn't provides proper (sane, valid, usable, etc) analog CD
playback due to its stripped down nature.
Diffstat (limited to 'sys/dev')
-rw-r--r-- | sys/dev/sound/pci/hda/hdac.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/sys/dev/sound/pci/hda/hdac.c b/sys/dev/sound/pci/hda/hdac.c index 9a920db..c9e68e5 100644 --- a/sys/dev/sound/pci/hda/hdac.c +++ b/sys/dev/sound/pci/hda/hdac.c @@ -2168,6 +2168,18 @@ hdac_widget_pin_getconfig(struct hdac_widget *w) default: break; } + } else if (id == HDA_CODEC_ALC268 && + HDA_DEV_MATCH(ACER_ALL_SUBVENDOR, sc->pci_subvendor)) { + switch (nid) { + case 28: + config &= ~(HDA_CONFIG_DEFAULTCONF_DEVICE_MASK | + HDA_CONFIG_DEFAULTCONF_CONNECTIVITY_MASK); + config |= (HDA_CONFIG_DEFAULTCONF_DEVICE_CD | + HDA_CONFIG_DEFAULTCONF_CONNECTIVITY_FIXED); + break; + default: + break; + } } HDA_BOOTVERBOSE( |