mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
Oops, rman_get_bushandle() should be converted to rman_get_virtual()
if resources are mapped to memory.
This commit is contained in:
parent
4553af7930
commit
d2fce85dba
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue