ASoC: meson: convert not to use asoc_xxx()
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Mon, 11 Sep 2023 23:49:08 +0000 (23:49 +0000)
committerMark Brown <broonie@kernel.org>
Mon, 25 Sep 2023 12:16:28 +0000 (14:16 +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/87pm2oqnik.wl-kuninori.morimoto.gx@renesas.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/meson/aiu-fifo.c
sound/soc/meson/axg-card.c
sound/soc/meson/axg-fifo.c
sound/soc/meson/gx-card.c
sound/soc/meson/meson-card-utils.c
sound/soc/meson/meson-codec-glue.c

index 543d41856c1206a2c7058e49ce5e5f851b418f1d..4041ff8e437fe7b25f66dd7d3f3adc77d7ddba90 100644 (file)
@@ -27,7 +27,7 @@ static struct snd_soc_dai *aiu_fifo_dai(struct snd_pcm_substream *ss)
 {
        struct snd_soc_pcm_runtime *rtd = ss->private_data;
 
-       return asoc_rtd_to_cpu(rtd, 0);
+       return snd_soc_rtd_to_cpu(rtd, 0);
 }
 
 snd_pcm_uframes_t aiu_fifo_pointer(struct snd_soc_component *component,
index f10c0c17863eb592c3b28b5a2b99997dd32fff06..18b16274449e4dbf25b0b87832b88caf2c691f5e 100644 (file)
@@ -40,7 +40,7 @@ static const struct snd_soc_pcm_stream codec_params = {
 static int axg_card_tdm_be_hw_params(struct snd_pcm_substream *substream,
                                     struct snd_pcm_hw_params *params)
 {
-       struct snd_soc_pcm_runtime *rtd = asoc_substream_to_rtd(substream);
+       struct snd_soc_pcm_runtime *rtd = snd_soc_substream_to_rtd(substream);
        struct meson_card *priv = snd_soc_card_get_drvdata(rtd->card);
        struct axg_dai_link_tdm_data *be =
                (struct axg_dai_link_tdm_data *)priv->link_data[rtd->num];
@@ -72,10 +72,10 @@ static int axg_card_tdm_dai_init(struct snd_soc_pcm_runtime *rtd)
                }
        }
 
-       ret = axg_tdm_set_tdm_slots(asoc_rtd_to_cpu(rtd, 0), be->tx_mask, be->rx_mask,
+       ret = axg_tdm_set_tdm_slots(snd_soc_rtd_to_cpu(rtd, 0), be->tx_mask, be->rx_mask,
                                    be->slots, be->slot_width);
        if (ret) {
-               dev_err(asoc_rtd_to_cpu(rtd, 0)->dev, "setting tdm link slots failed\n");
+               dev_err(snd_soc_rtd_to_cpu(rtd, 0)->dev, "setting tdm link slots failed\n");
                return ret;
        }
 
@@ -90,10 +90,10 @@ static int axg_card_tdm_dai_lb_init(struct snd_soc_pcm_runtime *rtd)
        int ret;
 
        /* The loopback rx_mask is the pad tx_mask */
-       ret = axg_tdm_set_tdm_slots(asoc_rtd_to_cpu(rtd, 0), NULL, be->tx_mask,
+       ret = axg_tdm_set_tdm_slots(snd_soc_rtd_to_cpu(rtd, 0), NULL, be->tx_mask,
                                    be->slots, be->slot_width);
        if (ret) {
-               dev_err(asoc_rtd_to_cpu(rtd, 0)->dev, "setting tdm link slots failed\n");
+               dev_err(snd_soc_rtd_to_cpu(rtd, 0)->dev, "setting tdm link slots failed\n");
                return ret;
        }
 
@@ -125,7 +125,7 @@ static int axg_card_add_tdm_loopback(struct snd_soc_card *card,
                return -ENOMEM;
 
        lb->cpus = dlc;
-       lb->codecs = &asoc_dummy_dlc;
+       lb->codecs = &snd_soc_dummy_dlc;
        lb->num_cpus = 1;
        lb->num_codecs = 1;
 
index 2e3d0108179bb122c37dc13e5950d2ed21059dfe..65541fdb0038a34c3729837a9cac92f75dddf8e7 100644 (file)
@@ -47,7 +47,7 @@ static struct snd_soc_dai *axg_fifo_dai(struct snd_pcm_substream *ss)
 {
        struct snd_soc_pcm_runtime *rtd = ss->private_data;
 
-       return asoc_rtd_to_cpu(rtd, 0);
+       return snd_soc_rtd_to_cpu(rtd, 0);
 }
 
 static struct axg_fifo *axg_fifo_data(struct snd_pcm_substream *ss)
index a26b620fc177e7920605324bdca37572e86ec96c..01beac1d927ff67523c510307427aec8d67972fb 100644 (file)
@@ -29,7 +29,7 @@ static const struct snd_soc_pcm_stream codec_params = {
 static int gx_card_i2s_be_hw_params(struct snd_pcm_substream *substream,
                                    struct snd_pcm_hw_params *params)
 {
-       struct snd_soc_pcm_runtime *rtd = asoc_substream_to_rtd(substream);
+       struct snd_soc_pcm_runtime *rtd = snd_soc_substream_to_rtd(substream);
        struct meson_card *priv = snd_soc_card_get_drvdata(rtd->card);
        struct gx_dai_link_i2s_data *be =
                (struct gx_dai_link_i2s_data *)priv->link_data[rtd->num];
index f7fd9c013e19f7f46235eefefc18f980b6311970..c810992185979520c29acf08085f8fb93fdce6a9 100644 (file)
@@ -13,7 +13,7 @@ int meson_card_i2s_set_sysclk(struct snd_pcm_substream *substream,
                              struct snd_pcm_hw_params *params,
                              unsigned int mclk_fs)
 {
-       struct snd_soc_pcm_runtime *rtd = asoc_substream_to_rtd(substream);
+       struct snd_soc_pcm_runtime *rtd = snd_soc_substream_to_rtd(substream);
        struct snd_soc_dai *codec_dai;
        unsigned int mclk;
        int ret, i;
@@ -30,7 +30,7 @@ int meson_card_i2s_set_sysclk(struct snd_pcm_substream *substream,
                        return ret;
        }
 
-       ret = snd_soc_dai_set_sysclk(asoc_rtd_to_cpu(rtd, 0), 0, mclk,
+       ret = snd_soc_dai_set_sysclk(snd_soc_rtd_to_cpu(rtd, 0), 0, mclk,
                                     SND_SOC_CLOCK_OUT);
        if (ret && ret != -ENOTSUPP)
                return ret;
@@ -177,7 +177,7 @@ int meson_card_set_fe_link(struct snd_soc_card *card,
                           struct device_node *node,
                           bool is_playback)
 {
-       link->codecs = &asoc_dummy_dlc;
+       link->codecs = &snd_soc_dummy_dlc;
        link->num_codecs = 1;
 
        link->dynamic = 1;
index e702d408ee966cd4b43c606bf46653f552495388..f8c5643f3cfe22a24c8ef1e456e807d918a6dc40 100644 (file)
@@ -98,7 +98,7 @@ EXPORT_SYMBOL_GPL(meson_codec_glue_input_set_fmt);
 int meson_codec_glue_output_startup(struct snd_pcm_substream *substream,
                                    struct snd_soc_dai *dai)
 {
-       struct snd_soc_pcm_runtime *rtd = asoc_substream_to_rtd(substream);
+       struct snd_soc_pcm_runtime *rtd = snd_soc_substream_to_rtd(substream);
        struct snd_soc_dapm_widget *w = snd_soc_dai_get_widget_capture(dai);
        struct meson_codec_glue_input *in_data = meson_codec_glue_output_get_input_data(w);