diff options
Diffstat (limited to 'sound/soc/davinci/davinci-pcm.c')
-rw-r--r-- | sound/soc/davinci/davinci-pcm.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/sound/soc/davinci/davinci-pcm.c b/sound/soc/davinci/davinci-pcm.c index fb10f1d63fdb..187ee965bf0b 100644 --- a/sound/soc/davinci/davinci-pcm.c +++ b/sound/soc/davinci/davinci-pcm.c | |||
@@ -253,10 +253,11 @@ static int davinci_pcm_open(struct snd_pcm_substream *substream) | |||
253 | struct davinci_runtime_data *prtd; | 253 | struct davinci_runtime_data *prtd; |
254 | int ret = 0; | 254 | int ret = 0; |
255 | struct snd_soc_pcm_runtime *rtd = substream->private_data; | 255 | struct snd_soc_pcm_runtime *rtd = substream->private_data; |
256 | struct davinci_pcm_dma_params *pa = rtd->dai->cpu_dai->private_data; | 256 | struct davinci_pcm_dma_params *pa = rtd->dai->cpu_dai->dma_data; |
257 | struct davinci_pcm_dma_params *params = &pa[substream->stream]; | 257 | struct davinci_pcm_dma_params *params; |
258 | if (!params) | 258 | if (!pa) |
259 | return -ENODEV; | 259 | return -ENODEV; |
260 | params = &pa[substream->stream]; | ||
260 | 261 | ||
261 | snd_soc_set_runtime_hwparams(substream, &davinci_pcm_hardware); | 262 | snd_soc_set_runtime_hwparams(substream, &davinci_pcm_hardware); |
262 | /* ensure that buffer size is a multiple of period size */ | 263 | /* ensure that buffer size is a multiple of period size */ |