summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authororion <orion@FreeBSD.org>2001-11-22 23:38:26 +0000
committerorion <orion@FreeBSD.org>2001-11-22 23:38:26 +0000
commit9c629e4ed078e092bc9a560d768e5502e3eaed5b (patch)
treef94870629077fd6bc635706f958efb8b9c358e50
parent9adece6deec0769506dd4ab29d6df65fc1c20f56 (diff)
downloadFreeBSD-src-9c629e4ed078e092bc9a560d768e5502e3eaed5b.zip
FreeBSD-src-9c629e4ed078e092bc9a560d768e5502e3eaed5b.tar.gz
Fix typo introduced with last commit.
-rw-r--r--sys/dev/sound/pci/ich.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/sys/dev/sound/pci/ich.c b/sys/dev/sound/pci/ich.c
index ddbd6b9..4421323 100644
--- a/sys/dev/sound/pci/ich.c
+++ b/sys/dev/sound/pci/ich.c
@@ -523,13 +523,11 @@ ich_pci_attach(device_t dev)
mixer_init(dev, ac97_getmixerclass(), sc->codec);
/* check and set VRA function */
- extcaps = ac97_getcaps(sc->codec);
+ extcaps = ac97_getextcaps(sc->codec);
sc->hasvra = extcaps & AC97_EXTCAP_VRA;
sc->hasvrm = extcaps & AC97_EXTCAP_VRM;
- ac97_setextmode(sc->codec,
- extcaps & (AC97_EXTCAP_VRA | AC97_EXTCAP_VRM));
- if (ac97_getcaps(sc->codec) & AC97_CAP_MICCHANNEL)
- sc->hasmic = 1;
+ sc->hasmic = extcaps & AC97_CAP_MICCHANNEL;
+ ac97_setextmode(sc->codec, sc->hasvra | sc->hasvrm | sc->hasmic);
sc->irqid = 0;
sc->irq = bus_alloc_resource(dev, SYS_RES_IRQ, &sc->irqid, 0, ~0, 1, RF_ACTIVE | RF_SHAREABLE);
OpenPOWER on IntegriCloud