summaryrefslogtreecommitdiff
path: root/sys/dev/sound/pci/hda
diff options
context:
space:
mode:
authorAriff Abdullah <ariff@FreeBSD.org>2007-03-19 16:06:26 +0000
committerAriff Abdullah <ariff@FreeBSD.org>2007-03-19 16:06:26 +0000
commit19f018fb83a571fd31e83cd15dfbb70f4ba1b1d9 (patch)
treeb16b1cfbff6e199502dca2648b4a75ac194a68e5 /sys/dev/sound/pci/hda
parente6d4b388b9b5268be5e9cfe7c080c94084947315 (diff)
Notes
Diffstat (limited to 'sys/dev/sound/pci/hda')
-rw-r--r--sys/dev/sound/pci/hda/hdac.c5
1 files changed, 4 insertions, 1 deletions
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. */