summaryrefslogtreecommitdiffstats
path: root/sys/dev/sound/pci/vibes.c
diff options
context:
space:
mode:
authornetchild <netchild@FreeBSD.org>2007-02-23 13:47:34 +0000
committernetchild <netchild@FreeBSD.org>2007-02-23 13:47:34 +0000
commit9ff48da7de1cc980a6dfd473d85d650be9f062ed (patch)
tree91b4aaae1205fe7533687333d8fb0c6e818d5d53 /sys/dev/sound/pci/vibes.c
parent6a2ffa86e5b748ba71e36d37462a936eb9101be7 (diff)
downloadFreeBSD-src-9ff48da7de1cc980a6dfd473d85d650be9f062ed.zip
FreeBSD-src-9ff48da7de1cc980a6dfd473d85d650be9f062ed.tar.gz
MFp4 (114068):
Use bus_get_dma_tag() to obtain the parent DMA tag to make the drivers a little bit more non-ia32/amd64 friendly. There is no man page for bus_get_dma_tag, so this is modelled after rev. 1.62 of src/sys/dev/sound/pci/es137x.c by marius. Inspired by: commit by marius
Diffstat (limited to 'sys/dev/sound/pci/vibes.c')
-rw-r--r--sys/dev/sound/pci/vibes.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/dev/sound/pci/vibes.c b/sys/dev/sound/pci/vibes.c
index 87629e3..f9e7c84 100644
--- a/sys/dev/sound/pci/vibes.c
+++ b/sys/dev/sound/pci/vibes.c
@@ -768,7 +768,8 @@ sv_attach(device_t dev) {
}
sc->bufsz = pcm_getbuffersize(dev, 4096, SV_DEFAULT_BUFSZ, 65536);
- if (bus_dma_tag_create(/*parent*/NULL, /*alignment*/2, /*boundary*/0,
+ if (bus_dma_tag_create(/*parent*/bus_get_dma_tag(dev), /*alignment*/2,
+ /*boundary*/0,
/*lowaddr*/BUS_SPACE_MAXADDR_24BIT,
/*highaddr*/BUS_SPACE_MAXADDR,
/*filter*/NULL, /*filterarg*/NULL,
OpenPOWER on IntegriCloud