diff options
Diffstat (limited to 'sound/pci/cs5535audio')
-rw-r--r-- | sound/pci/cs5535audio/cs5535audio_pcm.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sound/pci/cs5535audio/cs5535audio_pcm.c b/sound/pci/cs5535audio/cs5535audio_pcm.c index ec920cbb2a71..9a1e87fd4815 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 *cs5535au, | |||
161 | jmpprd_addr = cpu_to_le32(lastdesc->addr + | 161 | jmpprd_addr = cpu_to_le32(lastdesc->addr + |
162 | (sizeof(struct cs5535audio_dma_desc)*periods)); | 162 | (sizeof(struct cs5535audio_dma_desc)*periods)); |
163 | 163 | ||
164 | dma->substream = substream; | ||
164 | dma->period_bytes = period_bytes; | 165 | dma->period_bytes = period_bytes; |
165 | dma->periods = periods; | 166 | dma->periods = periods; |
166 | spin_lock_irq(&cs5535au->reg_lock); | 167 | spin_lock_irq(&cs5535au->reg_lock); |
@@ -238,6 +239,7 @@ static void cs5535audio_clear_dma_packets(struct cs5535audio *cs5535au, | |||
238 | { | 239 | { |
239 | snd_dma_free_pages(&dma->desc_buf); | 240 | snd_dma_free_pages(&dma->desc_buf); |
240 | dma->desc_buf.area = NULL; | 241 | dma->desc_buf.area = NULL; |
242 | dma->substream = NULL; | ||
241 | } | 243 | } |
242 | 244 | ||
243 | static int snd_cs5535audio_hw_params(struct snd_pcm_substream *substream, | 245 | static int snd_cs5535audio_hw_params(struct snd_pcm_substream *substream, |