Commit:     7abcacb09ac0f9c6848f1e7d86b284427fa83cee
Parent:     9e05b7a3d936ac5eb6c10291b69aee0af1ad03fb
Author:     Andres Salomon <[EMAIL PROTECTED]>
AuthorDate: Mon Sep 3 15:41:47 2007 +0200
Committer:  Jaroslav Kysela <[EMAIL PROTECTED]>
CommitDate: Tue Oct 16 15:59:51 2007 +0200

    [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.  
    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 <[EMAIL PROTECTED]>
    Signed-off-by: Takashi Iwai <[EMAIL PROTECTED]>
    Signed-off-by: Jaroslav Kysela <[EMAIL PROTECTED]>
 sound/pci/cs5535audio/cs5535audio_pcm.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/sound/pci/cs5535audio/cs5535audio_pcm.c 
index ec920cb..9a1e87f 100644
--- a/sound/pci/cs5535audio/cs5535audio_pcm.c
+++ b/sound/pci/cs5535audio/cs5535audio_pcm.c
@@ -161,6 +161,7 @@ static int cs5535audio_build_dma_packets(struct cs5535audio 
        jmpprd_addr = cpu_to_le32(lastdesc->addr +
+       dma->substream = substream;
        dma->period_bytes = period_bytes;
        dma->periods = periods;
@@ -238,6 +239,7 @@ static void cs5535audio_clear_dma_packets(struct 
cs5535audio *cs5535au,
        dma->desc_buf.area = NULL;
+       dma->substream = NULL;
 static int snd_cs5535audio_hw_params(struct snd_pcm_substream *substream,
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at

Reply via email to