[ALSA] cs5535audio: correctly set dma->substream
authorAndres Salomon <dilinger@debian.org>
Mon, 3 Sep 2007 13:41:47 +0000 (15:41 +0200)
committerJaroslav Kysela <perex@perex.cz>
Tue, 16 Oct 2007 13:59:51 +0000 (15:59 +0200)
commit7abcacb09ac0f9c6848f1e7d86b284427fa83cee
tree2447fe6c1c731b177dedf74a382c61214c0b3017
parent9e05b7a3d936ac5eb6c10291b69aee0af1ad03fb
[ALSA] cs5535audio: correctly set dma->substream

We're never actually setting dma->substream to the current substream; that
means the dma->substream checks that we do in the suspend/resume path
are never satisfied, and the PRD registers are never correctly managed.  This
changes it so that we set the substream when constructing the specific
bus master DMA, and unsetting it when we tear down the BM's DMA.

Signed-off-by: Andres Salomon <dilinger@debian.org>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>
sound/pci/cs5535audio/cs5535audio_pcm.c