ASoC: amd: convert not to use asoc_xxx()
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Tue, 26 Sep 2023 06:21:00 +0000 (06:21 +0000)
committerMark Brown <broonie@kernel.org>
Tue, 26 Sep 2023 15:18:34 +0000 (17:18 +0200)
ASoC is now unified asoc_xxx() into snd_soc_xxx().
This patch convert asoc_xxx() to snd_soc_xxx().

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Link: https://lore.kernel.org/r/875y3xihf7.wl-kuninori.morimoto.gx@renesas.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/amd/acp/acp3x-es83xx/acp3x-es83xx.c

index 7ce15216c3f090923f4e3d87e6aa58d84faa75eb..6cd3352dc38d239c8ca85eb03f372067b78d85ee 100644 (file)
@@ -69,8 +69,8 @@ static int acp3x_es83xx_codec_startup(struct snd_pcm_substream *substream)
        int ret;
 
        runtime = substream->runtime;
-       rtd = asoc_substream_to_rtd(substream);
-       codec_dai = asoc_rtd_to_codec(rtd, 0);
+       rtd = snd_soc_substream_to_rtd(substream);
+       codec_dai = snd_soc_rtd_to_codec(rtd, 0);
        priv = get_mach_priv(rtd->card);
 
        if (priv->quirk & ES83XX_48_MHZ_MCLK) {
@@ -272,7 +272,7 @@ static int acp3x_es83xx_configure_mics(struct acp3x_es83xx_private *priv)
 
 static int acp3x_es83xx_init(struct snd_soc_pcm_runtime *runtime)
 {
-       struct snd_soc_component *codec = asoc_rtd_to_codec(runtime, 0)->component;
+       struct snd_soc_component *codec = snd_soc_rtd_to_codec(runtime, 0)->component;
        struct snd_soc_card *card = runtime->card;
        struct acp3x_es83xx_private *priv = get_mach_priv(card);
        int ret = 0;