Oops, rman_get_bushandle() should be converted to rman_get_virtual()

if resources are mapped to memory.
This commit is contained in:
Yoshihiro Takahashi 2000-05-20 16:15:50 +00:00
parent 4553af7930
commit d2fce85dba
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=60732

View File

@ -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);