mirror of https://gitee.com/openkylin/linux.git
ASoC: Intel: skl_hda_generic: remove rtd->codec_dai
Use macro and solve compilation issues Reported-by: Stephen Rothwell <sfr@canb.auug.org.au> Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com> Link: https://lore.kernel.org/r/20200415032647.11209-1-pierre-louis.bossart@linux.intel.com Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
parent
39400f34a2
commit
46b7e2ff8c
|
@ -175,7 +175,7 @@ static void skl_set_hda_codec_autosuspend_delay(struct snd_soc_card *card)
|
||||||
struct snd_soc_pcm_runtime *rtd =
|
struct snd_soc_pcm_runtime *rtd =
|
||||||
list_first_entry(&card->rtd_list,
|
list_first_entry(&card->rtd_list,
|
||||||
struct snd_soc_pcm_runtime, 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;
|
struct hdac_hda_priv *hda_pvt;
|
||||||
|
|
||||||
if (!codec_dai)
|
if (!codec_dai)
|
||||||
|
|
Loading…
Reference in New Issue