From d2fce85dba6adf4ebbe25ba59cc129d1a52e6d3c Mon Sep 17 00:00:00 2001 From: Yoshihiro Takahashi Date: Sat, 20 May 2000 16:15:50 +0000 Subject: [PATCH] Oops, rman_get_bushandle() should be converted to rman_get_virtual() if resources are mapped to memory. --- sys/dev/sound/pci/neomagic.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/dev/sound/pci/neomagic.c b/sys/dev/sound/pci/neomagic.c index 622d9d798b7..a5dbaa1c58a 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);