sound: oxygen: reset DMA when stream is closed
authorClemens Ladisch <clemens@ladisch.de>
Mon, 25 May 2009 08:05:00 +0000 (10:05 +0200)
committerTakashi Iwai <tiwai@suse.de>
Mon, 25 May 2009 09:49:30 +0000 (11:49 +0200)
commit345c03ef0f2bd0c933a1eca27732af7edf5e8d4d
treeeb0e81e821910743a585cc34cb8b49e70b3da7ed
parent59a3759d0fe8d969888c741bb33f4946e4d3750d
sound: oxygen: reset DMA when stream is closed

When a PCM stream is closed, flush the corresponding DMA channel.
Otherwise, the DMA controller would continue to output the last sample
which would result in a DC offset on the output.

Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/oxygen/oxygen_pcm.c