freebsd-skq/sys/dev/sound/pcm
John Baldwin 86843ea8de Fix various bugs with freeing static DMA allocations in sound drivers:
- Don't compare the DMA map to NULL to determine if bus_dmamap_unload()
  should be called when releasing a static allocation.  Instead, compare
  the bus address against 0.
- Don't assume that the DMA map for static allocations is NULL.  Instead,
  save the value set by bus_dmamem_alloc() so it can later be passed to
  bus_dmamem_free().  Also, add missing calls to bus_dmamap_unload() in
  these cases before freeing the buffer.
- Use the bus address from the bus_dma callback instead of calling
  vtophys() on the address allocated by bus_dmamem_alloc().

Reviewed by:	kan
2014-06-17 16:07:57 +00:00
..
ac97_if.m
ac97_patch.c
ac97_patch.h
ac97.c
ac97.h
buffer.c Fix various bugs with freeing static DMA allocations in sound drivers: 2014-06-17 16:07:57 +00:00
buffer.h
channel_if.m
channel.c
channel.h
dsp.c
dsp.h
feeder_chain.c
feeder_eq.c
feeder_format.c
feeder_if.m
feeder_matrix.c
feeder_mixer.c
feeder_rate.c
feeder_volume.c
feeder.c
feeder.h
g711.h
intpcm.h
matrix_map.h
matrix.h
mixer_if.m
mixer.c
mixer.h
pcm.h
sndstat.c
sndstat.h
sound.c
sound.h
vchan.c
vchan.h