summaryrefslogtreecommitdiffstats
path: root/sys/dev
diff options
context:
space:
mode:
authororion <orion@FreeBSD.org>2001-11-21 04:06:52 +0000
committerorion <orion@FreeBSD.org>2001-11-21 04:06:52 +0000
commitdc35e47b82d07d6bac2d59915d4eba96ab76bbeb (patch)
tree37a95eec8e0776ff7dbea518a624b0e7bf48c481 /sys/dev
parent2f112e8511b81d32e494e76237bf6b5b7ec33755 (diff)
downloadFreeBSD-src-dc35e47b82d07d6bac2d59915d4eba96ab76bbeb.zip
FreeBSD-src-dc35e47b82d07d6bac2d59915d4eba96ab76bbeb.tar.gz
Set extmode according to extcaps. Fixes codec sample rate failures
that causes noisy playback with rates other than 48k (reported by Olexander Kunytsa). MFC after: 3 days
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/sound/pci/via82c686.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/sound/pci/via82c686.c b/sys/dev/sound/pci/via82c686.c
index 723e02a..5bd8c47 100644
--- a/sys/dev/sound/pci/via82c686.c
+++ b/sys/dev/sound/pci/via82c686.c
@@ -494,8 +494,8 @@ via_attach(device_t dev)
mixer_init(dev, ac97_getmixerclass(), via->codec);
via->codec_caps = ac97_getextcaps(via->codec);
- if (via->codec_caps & AC97_EXTCAP_VRA)
- ac97_setextmode(via->codec, AC97_EXTCAP_VRA | AC97_EXTCAP_VRM);
+ ac97_setextmode(via->codec,
+ via->codec_caps & (AC97_EXTCAP_VRA | AC97_EXTCAP_VRM));
/* DMA tag for buffers */
if (bus_dma_tag_create(/*parent*/NULL, /*alignment*/2, /*boundary*/0,
OpenPOWER on IntegriCloud