Turn on inverted external amplifier sense flags for ICH4/82801DB.

PR:		kern/66422, kern/75687, kern/84471
MFC after:	2 days
This commit is contained in:
ariff 2006-01-09 11:20:37 +00:00
parent b08b7ed729
commit e318c6bf19

View File

@ -829,6 +829,16 @@ ich_pci_attach(device_t dev)
sc->codec = AC97_CREATE(dev, sc, ich_ac97);
if (sc->codec == NULL)
goto bad;
/*
* Turn on inverted external amplifier sense flags for ICH4/82801DB.
* Does ICH3/82801CA need this too ? I left them out for now.
*
* http://lists.freebsd.org/pipermail/freebsd-multimedia/2003-November/000531.html
*/
if (vendor == INTEL_VENDORID && devid == INTEL_82801DB)
ac97_setflags(sc->codec, ac97_getflags(sc->codec) | AC97_F_EAPD_INV);
mixer_init(dev, ac97_getmixerclass(), sc->codec);
/* check and set VRA function */