summaryrefslogtreecommitdiffstats
path: root/sys/dev/sound/pci/cmi.c
diff options
context:
space:
mode:
authorcognet <cognet@FreeBSD.org>2003-02-20 17:31:12 +0000
committercognet <cognet@FreeBSD.org>2003-02-20 17:31:12 +0000
commit25a2aa22f19c732e8551e7ad32190bf14add4562 (patch)
tree754946b164b23a1f5dc38394662ee5a04598b6a7 /sys/dev/sound/pci/cmi.c
parent22cf3256d9e0c5f63427ab60eb09a6f768660c18 (diff)
downloadFreeBSD-src-25a2aa22f19c732e8551e7ad32190bf14add4562.zip
FreeBSD-src-25a2aa22f19c732e8551e7ad32190bf14add4562.tar.gz
Implement a "sndbuf_getbufaddr" function and use it instead of vtophys().
Reviewed by: orion
Diffstat (limited to 'sys/dev/sound/pci/cmi.c')
-rw-r--r--sys/dev/sound/pci/cmi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/sound/pci/cmi.c b/sys/dev/sound/pci/cmi.c
index 866d984..14c6c8e 100644
--- a/sys/dev/sound/pci/cmi.c
+++ b/sys/dev/sound/pci/cmi.c
@@ -239,7 +239,7 @@ cmi_dma_prog(struct sc_info *sc, struct sc_chinfo *ch, u_int32_t base)
{
u_int32_t s, i, sz;
- ch->phys_buf = vtophys(sndbuf_getbuf(ch->buffer));
+ ch->phys_buf = sndbuf_getbufaddr(ch->buffer);
cmi_wr(sc, base, ch->phys_buf, 4);
sz = (u_int32_t)sndbuf_getsize(ch->buffer);
OpenPOWER on IntegriCloud