diff options
author | Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com> | 2020-04-14 22:26:47 -0500 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2020-04-15 13:34:33 +0100 |
commit | 46b7e2ff8cb67f9f23bdfec0d8d08d803eb1146e (patch) | |
tree | 5e56caa04ade6216a8eaf27bfc042292b34ff925 /sound/soc/intel | |
parent | 39400f34a289ad5f5f0b36b8bb4591603b73a759 (diff) | |
download | linux-46b7e2ff8cb67f9f23bdfec0d8d08d803eb1146e.tar.bz2 |
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>
Diffstat (limited to 'sound/soc/intel')
-rw-r--r-- | sound/soc/intel/boards/skl_hda_dsp_generic.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/intel/boards/skl_hda_dsp_generic.c b/sound/soc/intel/boards/skl_hda_dsp_generic.c index 64197b010e7d..35f222ed9912 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) |