]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/blobdiff - sound/soc/fsl/p1022_rdk.c
ASoC: fsl: use asoc_substream_to_rtd()
[mirror_ubuntu-hirsute-kernel.git] / sound / soc / fsl / p1022_rdk.c
index f5374fe354abc509cd0f77ad895a2f98ff148a88..714515b8081feb073e1c8c54fef3bff9ac6c8ecf 100644 (file)
@@ -127,7 +127,7 @@ static int p1022_rdk_machine_probe(struct snd_soc_card *card)
  */
 static int p1022_rdk_startup(struct snd_pcm_substream *substream)
 {
-       struct snd_soc_pcm_runtime *rtd = substream->private_data;
+       struct snd_soc_pcm_runtime *rtd = asoc_substream_to_rtd(substream);
        struct machine_data *mdata =
                container_of(rtd->card, struct machine_data, card);
        struct device *dev = rtd->card->dev;