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>,
Liam Girdwood <lgirdwood@gmail.com>,
Mark Brown <broonie@kernel.org>,
Martin Blumenstingl <martin.blumenstingl@googlemail.com>,
Neil Armstrong <neil.armstrong@linaro.org>,
Takashi Iwai <tiwai@suse.com>,
linux-arm-kernel@lists.infradead.org,
linux-sound@vger.kernel.org
Subject: Re: [PATCH RFC 1/2] ASoC: meson: meson-card-utils: use meson_card_parse_of_optional()
Date: Tue, 21 Jul 2026 09:32:30 +0200 [thread overview]
Message-ID: <1jldb4er1t.fsf@starbuckisacylon.baylibre.com> (raw)
In-Reply-To: <87tspti0ng.wl-kuninori.morimoto.gx@renesas.com> (Kuninori Morimoto's message of "Tue, 21 Jul 2026 01:36:51 +0000")
On mar. 21 juil. 2026 at 01:36, Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> wrote:
> We already have meson_card_parse_of_optional(). Let's use it for
> snd_soc_of_parse_aux_devs() too.
>
> It is using snd_soc_of_parse_card_name(), but let's keep as-is
> for it for now. Beuase it will be not able to share code when
> Card capsuling.
>
> Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
> ---
> sound/soc/meson/meson-card-utils.c | 3 ++-
> 1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/sound/soc/meson/meson-card-utils.c b/sound/soc/meson/meson-card-utils.c
> index 8617a4661a339..d144ab79b645b 100644
> --- a/sound/soc/meson/meson-card-utils.c
> +++ b/sound/soc/meson/meson-card-utils.c
> @@ -300,7 +300,8 @@ int meson_card_probe(struct platform_device *pdev)
> if (ret)
> goto out_err;
>
> - ret = snd_soc_of_parse_aux_devs(&priv->card, "audio-aux-devs");
> + ret = meson_card_parse_of_optional(&priv->card, "audio-aux-devs",
> + snd_soc_of_parse_aux_devs);
snd_soc_of_parse_aux_devs already properly handle if the property is not
present. I'm not a fan of adding another level of function if it does
not bring anything valuable to the mix.
Could you add more context describing what you trying to accomplish with
this "card capsuling" thing ? A link to the RFC maybe ?
> if (ret)
> goto out_err;
--
Jerome
next prev parent reply other threads:[~2026-07-21 7:32 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-07-21 1:36 [PATCH 0/2] ASoC: meson: preparation for Card capsuling Kuninori Morimoto
2026-07-21 1:36 ` [PATCH RFC 1/2] ASoC: meson: meson-card-utils: use meson_card_parse_of_optional() Kuninori Morimoto
2026-07-21 7:32 ` Jerome Brunet [this message]
2026-07-21 1:36 ` [PATCH 2/2] ASoC: meson: meson-card: use priv instead of card on each functions Kuninori Morimoto
2026-07-21 7:35 ` Jerome Brunet
2026-07-21 23:22 ` Kuninori Morimoto
2026-07-22 0:35 ` Kuninori Morimoto
2026-07-22 7:40 ` Jerome Brunet
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=1jldb4er1t.fsf@starbuckisacylon.baylibre.com \
--to=jbrunet@baylibre.com \
--cc=broonie@kernel.org \
--cc=khilman@baylibre.com \
--cc=kuninori.morimoto.gx@renesas.com \
--cc=lgirdwood@gmail.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-sound@vger.kernel.org \
--cc=martin.blumenstingl@googlemail.com \
--cc=neil.armstrong@linaro.org \
--cc=perex@perex.cz \
--cc=tiwai@suse.com \
/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