From: Pierre-Louis Bossart Date: Wed, 15 Apr 2020 03:26:47 +0000 (-0500) Subject: ASoC: Intel: skl_hda_generic: remove rtd->codec_dai X-Git-Tag: v5.8-rc1~47^2^2~178 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=46b7e2ff8cb67f9f23bdfec0d8d08d803eb1146e;p=thirdparty%2Fkernel%2Flinux.git ASoC: Intel: skl_hda_generic: remove rtd->codec_dai Use macro and solve compilation issues Reported-by: Stephen Rothwell Signed-off-by: Pierre-Louis Bossart Link: https://lore.kernel.org/r/20200415032647.11209-1-pierre-louis.bossart@linux.intel.com Signed-off-by: Mark Brown --- diff --git a/sound/soc/intel/boards/skl_hda_dsp_generic.c b/sound/soc/intel/boards/skl_hda_dsp_generic.c index 64197b010e7d1..35f222ed9912f 100644 --- a/sound/soc/intel/boards/skl_hda_dsp_generic.c +++ b/sound/soc/intel/boards/skl_hda_dsp_generic.c @@ -175,7 +175,7 @@ static void skl_set_hda_codec_autosuspend_delay(struct snd_soc_card *card) struct snd_soc_pcm_runtime *rtd = list_first_entry(&card->rtd_list, struct snd_soc_pcm_runtime, list); - struct snd_soc_dai *codec_dai = rtd->codec_dai; + struct snd_soc_dai *codec_dai = asoc_rtd_to_codec(rtd, 0); struct hdac_hda_priv *hda_pvt; if (!codec_dai)