diff options
Diffstat (limited to 'sound/arm/pxa2xx-pcm-lib.c')
-rw-r--r-- | sound/arm/pxa2xx-pcm-lib.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sound/arm/pxa2xx-pcm-lib.c b/sound/arm/pxa2xx-pcm-lib.c index 6205f37d547c..743ac6a29065 100644 --- a/sound/arm/pxa2xx-pcm-lib.c +++ b/sound/arm/pxa2xx-pcm-lib.c | |||
@@ -136,6 +136,9 @@ int __pxa2xx_pcm_prepare(struct snd_pcm_substream *substream) | |||
136 | { | 136 | { |
137 | struct pxa2xx_runtime_data *prtd = substream->runtime->private_data; | 137 | struct pxa2xx_runtime_data *prtd = substream->runtime->private_data; |
138 | 138 | ||
139 | if (!prtd || !prtd->params) | ||
140 | return 0; | ||
141 | |||
139 | DCSR(prtd->dma_ch) &= ~DCSR_RUN; | 142 | DCSR(prtd->dma_ch) &= ~DCSR_RUN; |
140 | DCSR(prtd->dma_ch) = 0; | 143 | DCSR(prtd->dma_ch) = 0; |
141 | DCMD(prtd->dma_ch) = 0; | 144 | DCMD(prtd->dma_ch) = 0; |