aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/sound/pci/cs4281.c
diff options
context:
space:
mode:
authorAlexander Leidinger <netchild@FreeBSD.org>2007-02-23 13:47:34 +0000
committerAlexander Leidinger <netchild@FreeBSD.org>2007-02-23 13:47:34 +0000
commit0b989078d7378bfb8925f3d8c0dd276d04f84f1a (patch)
tree91b4aaae1205fe7533687333d8fb0c6e818d5d53 /sys/dev/sound/pci/cs4281.c
parentef544f631226436ef590825881e7a28369df82f6 (diff)
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
Notes
Notes: svn path=/head/; revision=166904
Diffstat (limited to 'sys/dev/sound/pci/cs4281.c')
-rw-r--r--sys/dev/sound/pci/cs4281.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/dev/sound/pci/cs4281.c b/sys/dev/sound/pci/cs4281.c
index 2859f3838230..1a24eceb2c9d 100644
--- a/sys/dev/sound/pci/cs4281.c
+++ b/sys/dev/sound/pci/cs4281.c
@@ -824,7 +824,8 @@ cs4281_pci_attach(device_t dev)
sc->bufsz = pcm_getbuffersize(dev, 4096, CS4281_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_32BIT,
/*highaddr*/BUS_SPACE_MAXADDR,
/*filter*/NULL, /*filterarg*/NULL,