summaryrefslogtreecommitdiffstats
path: root/sys/dev/sound/pci/aureal.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/aureal.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/aureal.c')
-rw-r--r--sys/dev/sound/pci/aureal.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/sound/pci/aureal.c b/sys/dev/sound/pci/aureal.c
index 96c2c66..d301fd8 100644
--- a/sys/dev/sound/pci/aureal.c
+++ b/sys/dev/sound/pci/aureal.c
@@ -243,7 +243,7 @@ au_prepareoutput(struct au_chinfo *ch, u_int32_t format)
{
struct au_info *au = ch->parent;
int i, stereo = (format & AFMT_STEREO)? 1 : 0;
- u_int32_t baseaddr = vtophys(sndbuf_getbuf(ch->buffer));
+ u_int32_t baseaddr = sndbuf_getbufaddr(ch->buffer);
au_wr(au, 0, 0x1061c, 0, 4);
au_wr(au, 0, 0x10620, 0, 4);
OpenPOWER on IntegriCloud