ASoC: pxa: use asoc_rtd_to_cpu() / asoc_rtd_to_codec() macro for DAI pointer
[platform/kernel/linux-starfive.git] / sound / soc / pxa / ttc-dkb.c
index d8f79e2..d5f2961 100644 (file)
@@ -61,7 +61,7 @@ static const struct snd_soc_dapm_route ttc_audio_map[] = {
 
 static int ttc_pm860x_init(struct snd_soc_pcm_runtime *rtd)
 {
-       struct snd_soc_component *component = rtd->codec_dai->component;
+       struct snd_soc_component *component = asoc_rtd_to_codec(rtd, 0)->component;
 
        /* Headset jack detection */
        snd_soc_card_jack_new(rtd->card, "Headphone Jack", SND_JACK_HEADPHONE |