diff options
author | orion <orion@FreeBSD.org> | 2001-11-21 04:06:52 +0000 |
---|---|---|
committer | orion <orion@FreeBSD.org> | 2001-11-21 04:06:52 +0000 |
commit | dc35e47b82d07d6bac2d59915d4eba96ab76bbeb (patch) | |
tree | 37a95eec8e0776ff7dbea518a624b0e7bf48c481 /sys/dev | |
parent | 2f112e8511b81d32e494e76237bf6b5b7ec33755 (diff) | |
download | FreeBSD-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.c | 4 |
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, |