diff options
author | Orion Hodson <orion@FreeBSD.org> | 2002-08-18 00:29:08 +0000 |
---|---|---|
committer | Orion Hodson <orion@FreeBSD.org> | 2002-08-18 00:29:08 +0000 |
commit | b383a8478c66c87355dd618afd27f4d5c048d3d6 (patch) | |
tree | 3b11daa463f4353b4f22f186d4ff0387a0d86ea6 /sys | |
parent | 8f5fc1b72836bdb7c0d13836b4672a0d98a360fb (diff) |
Fix VRA configuration.
Reported and fixed by: Grzybowski Rafal <grzybek@inferno.mikrus.pw.edu.pl>
Notes
Notes:
svn path=/head/; revision=102039
Diffstat (limited to 'sys')
-rw-r--r-- | sys/dev/sound/pci/via8233.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/sys/dev/sound/pci/via8233.c b/sys/dev/sound/pci/via8233.c index 7b41036ea380..604fcb988182 100644 --- a/sys/dev/sound/pci/via8233.c +++ b/sys/dev/sound/pci/via8233.c @@ -592,9 +592,12 @@ via_attach(device_t dev) via->codec_caps = ac97_getextcaps(via->codec); - /* Try to set VRA (depends on codec) */ - ac97_setextmode(via->codec, via->codec_caps & - (AC97_EXTCAP_VRA | AC97_EXTCAP_VRM)); + /* Try to set VRA without generating an error, VRM not reqrd yet */ + if (via->codec_caps & (AC97_EXTCAP_VRA | AC97_EXTCAP_VRM)) { + u_int16_t ext = ac97_getextmode(via->codec); + ext |= (via->codec_caps & (AC97_EXTCAP_VRA | AC97_EXTCAP_VRM)); + ac97_setextmode(via->codec, ext); + } snprintf(status, SND_STATUSLEN, "at io 0x%lx irq %ld", rman_get_start(via->reg), rman_get_start(via->irq)); |