diff options
-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, |