ASoC: au1x: use asoc_substream_to_rtd()
[sfrench/cifs-2.6.git] / sound / soc / au1x / dbdma2.c
index e82bbf2d1eea78701f09f7aeb0086139f06f0c06..3d67e27fada9e795c1699b16741db2f111f0ab82 100644 (file)
@@ -278,7 +278,7 @@ static int au1xpsc_pcm_open(struct snd_soc_component *component,
                            struct snd_pcm_substream *substream)
 {
        struct au1xpsc_audio_dmadata *pcd = to_dmadata(substream, component);
-       struct snd_soc_pcm_runtime *rtd = substream->private_data;
+       struct snd_soc_pcm_runtime *rtd = asoc_substream_to_rtd(substream);
        int stype = substream->stream, *dmaids;
 
        dmaids = snd_soc_dai_get_dma_data(asoc_rtd_to_cpu(rtd, 0), substream);