From 19f018fb83a571fd31e83cd15dfbb70f4ba1b1d9 Mon Sep 17 00:00:00 2001 From: Ariff Abdullah Date: Mon, 19 Mar 2007 16:06:26 +0000 Subject: Destroy channel DMA tag during resource cleanup. --- sys/dev/sound/pci/hda/hdac.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'sys/dev') diff --git a/sys/dev/sound/pci/hda/hdac.c b/sys/dev/sound/pci/hda/hdac.c index ad0c256e139c3..d1d95dda8dd40 100644 --- a/sys/dev/sound/pci/hda/hdac.c +++ b/sys/dev/sound/pci/hda/hdac.c @@ -5085,10 +5085,13 @@ hdac_release_resources(struct hdac_softc *sc) hdac_dma_free(&sc->play.bdl_dma); if (sc->rec.blkcnt > 0) hdac_dma_free(&sc->rec.bdl_dma); + if (sc->chan_dmat != NULL) { + bus_dma_tag_destroy(sc->chan_dmat); + sc->chan_dmat = NULL; + } hdac_irq_free(sc); hdac_mem_free(sc); free(sc, M_DEVBUF); - } /* This function surely going to make its way into upper level someday. */ -- cgit v1.3