ASoC: ux500: use asoc_substream_to_rtd()
[sfrench/cifs-2.6.git] / sound / soc / ux500 / ux500_pcm.c
index 39b96c132bc800a0c8d279b92ef6977b05269833..18191084b8b8474cb4339f17968123bfec88654f 100644 (file)
@@ -85,7 +85,7 @@ static int ux500_pcm_prepare_slave_config(struct snd_pcm_substream *substream,
                struct snd_pcm_hw_params *params,
                struct dma_slave_config *slave_config)
 {
-       struct snd_soc_pcm_runtime *rtd = substream->private_data;
+       struct snd_soc_pcm_runtime *rtd = asoc_substream_to_rtd(substream);
        struct msp_i2s_platform_data *pdata = asoc_rtd_to_cpu(rtd, 0)->dev->platform_data;
        struct snd_dmaengine_dai_dma_data *snd_dma_params;
        struct ux500_msp_dma_params *ste_dma_params;