From: Jerome Brunet <jbrunet@baylibre.com>
To: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Cc: Jaroslav Kysela <perex@perex.cz>,
Kevin Hilman <khilman@baylibre.com>,
Lad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com>,
Liam Girdwood <lgirdwood@gmail.com>,
Mark Brown <broonie@kernel.org>,
Neil Armstrong <neil.armstrong@linaro.org>,
Sascha Hauer <s.hauer@pengutronix.de>,
Shawn Guo <shawnguo@kernel.org>,
Shengjiu Wang <shengjiu.wang@gmail.com>,
Takashi Iwai <tiwai@suse.com>, Vinod Koul <vkoul@kernel.org>,
Xiubo Li <Xiubo.Lee@gmail.com>,
alsa-devel@alsa-project.org, imx@lists.linux.dev,
linux-rpi-kernel@lists.infradead.org,
linux-sound@vger.kernel.org,
linux-stm32@st-md-mailman.stormreply.com,
patches@opensource.cirrus.com
Subject: Re: [PATCH 3/8] ASoC: meson: switch to use rtd->id from rtd->num
Date: Thu, 24 Oct 2024 10:06:15 +0200 [thread overview]
Message-ID: <1ja5eudix4.fsf@starbuckisacylon.baylibre.com> (raw)
In-Reply-To: <87wmhyb85l.wl-kuninori.morimoto.gx@renesas.com> (Kuninori Morimoto's message of "Thu, 24 Oct 2024 01:29:27 +0000")
On Thu 24 Oct 2024 at 01:29, Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> wrote:
> Now rtd->num is renamed to rtd->id. Let's switch.
>
> Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Acked-by: Jerome Brunet <jbrunet@baylibre.com>
Just one comment: I understand why you have split this into multiple
patches, I suppose it will help with the review but I wonder if it
wouldn't be better to squash it all into a single change before
applying ? To avoid exposing the intermediate state. It might be
confusing too. The change would not be that big actually.
Just a suggestion ;)
> ---
> sound/soc/meson/axg-card.c | 6 +++---
> sound/soc/meson/gx-card.c | 2 +-
> 2 files changed, 4 insertions(+), 4 deletions(-)
>
> diff --git a/sound/soc/meson/axg-card.c b/sound/soc/meson/axg-card.c
> index 5ebf287fe7004..a2dfccb7990f3 100644
> --- a/sound/soc/meson/axg-card.c
> +++ b/sound/soc/meson/axg-card.c
> @@ -43,7 +43,7 @@ static int axg_card_tdm_be_hw_params(struct snd_pcm_substream *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];
> + (struct axg_dai_link_tdm_data *)priv->link_data[rtd->id];
>
> return meson_card_i2s_set_sysclk(substream, params, be->mclk_fs);
> }
> @@ -56,7 +56,7 @@ static int axg_card_tdm_dai_init(struct snd_soc_pcm_runtime *rtd)
> {
> 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];
> + (struct axg_dai_link_tdm_data *)priv->link_data[rtd->id];
> struct snd_soc_dai *codec_dai;
> int ret, i;
>
> @@ -86,7 +86,7 @@ static int axg_card_tdm_dai_lb_init(struct snd_soc_pcm_runtime *rtd)
> {
> 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];
> + (struct axg_dai_link_tdm_data *)priv->link_data[rtd->id];
> int ret;
>
> /* The loopback rx_mask is the pad tx_mask */
> diff --git a/sound/soc/meson/gx-card.c b/sound/soc/meson/gx-card.c
> index 455f6bfc9f8fa..b408cc2bbc919 100644
> --- a/sound/soc/meson/gx-card.c
> +++ b/sound/soc/meson/gx-card.c
> @@ -32,7 +32,7 @@ static int gx_card_i2s_be_hw_params(struct snd_pcm_substream *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];
> + (struct gx_dai_link_i2s_data *)priv->link_data[rtd->id];
>
> return meson_card_i2s_set_sysclk(substream, params, be->mclk_fs);
> }
--
Jerome
next prev parent reply other threads:[~2024-10-24 8:06 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-10-24 1:28 [PATCH 0/8] ASoC: cleasnup rtd and its ID Kuninori Morimoto
2024-10-24 1:29 ` [PATCH 1/8] ASoC: rename rtd->num to rtd->id Kuninori Morimoto
2024-10-24 1:29 ` [PATCH 2/8] ASoC: fsl: switch to use rtd->id from rtd->num Kuninori Morimoto
2024-10-24 1:29 ` [PATCH 3/8] ASoC: meson: " Kuninori Morimoto
2024-10-24 8:06 ` Jerome Brunet [this message]
2024-10-30 23:57 ` Kuninori Morimoto
2024-10-24 1:29 ` [PATCH 4/8] ASoC: sh: " Kuninori Morimoto
2024-10-24 1:29 ` [PATCH 5/8] ASoC: generic: " Kuninori Morimoto
2024-10-24 1:29 ` [PATCH 6/8] ASoC: remove rtd->num Kuninori Morimoto
2024-10-24 1:29 ` [PATCH 7/8] ASoC: soc-core: do rtd->id trick at snd_soc_add_pcm_runtime() Kuninori Morimoto
2024-10-24 1:29 ` [PATCH 8/8] ASoC: cleanup function parameter for rtd and its id Kuninori Morimoto
2024-11-05 19:07 ` [PATCH 0/8] ASoC: cleasnup rtd and its ID Mark Brown
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1ja5eudix4.fsf@starbuckisacylon.baylibre.com \
--to=jbrunet@baylibre.com \
--cc=Xiubo.Lee@gmail.com \
--cc=alsa-devel@alsa-project.org \
--cc=broonie@kernel.org \
--cc=imx@lists.linux.dev \
--cc=khilman@baylibre.com \
--cc=kuninori.morimoto.gx@renesas.com \
--cc=lgirdwood@gmail.com \
--cc=linux-rpi-kernel@lists.infradead.org \
--cc=linux-sound@vger.kernel.org \
--cc=linux-stm32@st-md-mailman.stormreply.com \
--cc=neil.armstrong@linaro.org \
--cc=patches@opensource.cirrus.com \
--cc=perex@perex.cz \
--cc=prabhakar.mahadev-lad.rj@bp.renesas.com \
--cc=s.hauer@pengutronix.de \
--cc=shawnguo@kernel.org \
--cc=shengjiu.wang@gmail.com \
--cc=tiwai@suse.com \
--cc=vkoul@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox