summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authornyan <nyan@FreeBSD.org>2000-05-20 16:15:50 +0000
committernyan <nyan@FreeBSD.org>2000-05-20 16:15:50 +0000
commit5921014a4206a956eea8c62fd066bed8bd3072dd (patch)
treec4b0e3b19f8fe23126487a963b2cf5643b0e4310
parentc474a49cacc5a42e319bf9cef3ccc6d676ff2913 (diff)
downloadFreeBSD-src-5921014a4206a956eea8c62fd066bed8bd3072dd.zip
FreeBSD-src-5921014a4206a956eea8c62fd066bed8bd3072dd.tar.gz
Oops, rman_get_bushandle() should be converted to rman_get_virtual()
if resources are mapped to memory.
-rw-r--r--sys/dev/sound/pci/neomagic.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/sound/pci/neomagic.c b/sys/dev/sound/pci/neomagic.c
index 622d9d7..a5dbaa1 100644
--- a/sys/dev/sound/pci/neomagic.c
+++ b/sys/dev/sound/pci/neomagic.c
@@ -349,7 +349,7 @@ nmchan_init(void *devinfo, snd_dbuf *b, pcm_channel *c, int dir)
ch = (dir == PCMDIR_PLAY)? &sc->pch : &sc->rch;
ch->buffer = b;
ch->buffer->bufsize = NM_BUFFSIZE;
- ch->buffer->buf = (u_int8_t *)(rman_get_start(sc->buf) + chnbuf);
+ ch->buffer->buf = (u_int8_t *)rman_get_virtual(sc->buf) + chnbuf;
if (bootverbose)
device_printf(sc->dev, "%s buf %p\n", (dir == PCMDIR_PLAY)?
"play" : "rec", ch->buffer->buf);
OpenPOWER on IntegriCloud