Skip to content

Commit

Permalink
ASoC: don't use rtd->codec on fsl-asoc-card
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Kuninori Morimoto authored and Mark Brown committed Dec 5, 2017
1 parent 4fbd8d1 commit 845f80c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sound/soc/fsl/fsl-asoc-card.c
Original file line number Diff line number Diff line change
Expand Up @@ -442,8 +442,8 @@ static int fsl_asoc_card_late_probe(struct snd_soc_card *card)

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

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

0 comments on commit 845f80c

Please sign in to comment.