Skip to content

Commit 845f80c

Browse files
morimotobroonie
authored andcommitted
ASoC: don't use rtd->codec on fsl-asoc-card
rtd->codec will be removed soon. rtd->codec = rtd->codec_dai->codec, thus, we can use rtd->codec_dai->component instead of it. Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> Signed-off-by: Mark Brown <broonie@kernel.org>
1 parent 4fbd8d1 commit 845f80c

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎sound/soc/fsl/fsl-asoc-card.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -442,8 +442,8 @@ static int fsl_asoc_card_late_probe(struct snd_soc_card *card)
442442

443443
if (fsl_asoc_card_is_ac97(priv)) {
444444
#if IS_ENABLED(CONFIG_SND_AC97_CODEC)
445-
struct snd_soc_codec *codec = rtd->codec;
446-
struct snd_ac97 *ac97 = snd_soc_codec_get_drvdata(codec);
445+
struct snd_soc_component *component = rtd->codec_dai->component;
446+
struct snd_ac97 *ac97 = snd_soc_component_get_drvdata(component);
447447

448448
/*
449449
* Use slots 3/4 for S/PDIF so SSI won't try to enable

0 commit comments

Comments
 (0)