All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] ASoC: ti: omap-twl4030: Check for missing card name after parsing
@ 2026-08-05  4:45 phucduc.bui
  2026-08-11 14:01 ` Mark Brown
  2026-08-11 17:05 ` Jarkko Nikula
  0 siblings, 2 replies; 3+ messages in thread
From: phucduc.bui @ 2026-08-05  4:45 UTC (permalink / raw)
  To: Mark Brown, Sen Wang, Liam Girdwood, Jaroslav Kysela,
	Takashi Iwai, Jarkko Nikula, Andreas Kemnade, linux-omap
  Cc: linux-kernel, linux-sound, bui duc phuc

From: bui duc phuc <phucduc.bui@gmail.com>

Return any error from snd_soc_of_parse_card_name() directly. If the
helper returns successfully but card->name remains unset, report the
missing card name explicitly before returning -ENODEV.

Suggested-by: Andreas Kemnade <andreas@kemnade.info>
Signed-off-by: bui duc phuc <phucduc.bui@gmail.com>
---
 sound/soc/ti/omap-twl4030.c | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/sound/soc/ti/omap-twl4030.c b/sound/soc/ti/omap-twl4030.c
index 8a3a792a21c6..a3ab52b2b64e 100644
--- a/sound/soc/ti/omap-twl4030.c
+++ b/sound/soc/ti/omap-twl4030.c
@@ -216,7 +216,11 @@ static int omap_twl4030_probe(struct platform_device *pdev)
 	if (priv == NULL)
 		return -ENOMEM;
 
-	if (snd_soc_of_parse_card_name(card, "ti,model")) {
+	ret = snd_soc_of_parse_card_name(card, "ti,model");
+	if (ret)
+		return ret;
+
+	if (!card->name) {
 		dev_err(&pdev->dev, "Card name is not provided\n");
 		return -ENODEV;
 	}
-- 
2.43.0


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH] ASoC: ti: omap-twl4030: Check for missing card name after parsing
  2026-08-05  4:45 [PATCH] ASoC: ti: omap-twl4030: Check for missing card name after parsing phucduc.bui
@ 2026-08-11 14:01 ` Mark Brown
  2026-08-11 17:05 ` Jarkko Nikula
  1 sibling, 0 replies; 3+ messages in thread
From: Mark Brown @ 2026-08-11 14:01 UTC (permalink / raw)
  To: Sen Wang, Liam Girdwood, Jaroslav Kysela, Takashi Iwai,
	Jarkko Nikula, Andreas Kemnade, linux-omap, phucduc.bui
  Cc: linux-kernel, linux-sound

On Wed, 05 Aug 2026 11:45:56 +0700, phucduc.bui@gmail.com wrote:
> ASoC: ti: omap-twl4030: Check for missing card name after parsing

Applied to

   https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-7.3

Thanks!

[1/1] ASoC: ti: omap-twl4030: Check for missing card name after parsing
      https://git.kernel.org/broonie/sound/c/9e0698b77684

All being well this means that it will be integrated into the linux-next
tree (usually sometime in the next 24 hours) and sent to Linus during
the next merge window (or sooner if it is a bug fix), however if
problems are discovered then the patch may be dropped or reverted.

You may get further e-mails resulting from automated or manual testing
and review of the tree, please engage with people reporting problems and
send followup patches addressing any issues that are reported if needed.

If any updates are required or you are submitting further changes they
should be sent as incremental updates against current git, existing
patches will not be replaced.

Please add any relevant lists and maintainers to the CCs when replying
to this mail.

Thanks,
Mark


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] ASoC: ti: omap-twl4030: Check for missing card name after parsing
  2026-08-05  4:45 [PATCH] ASoC: ti: omap-twl4030: Check for missing card name after parsing phucduc.bui
  2026-08-11 14:01 ` Mark Brown
@ 2026-08-11 17:05 ` Jarkko Nikula
  1 sibling, 0 replies; 3+ messages in thread
From: Jarkko Nikula @ 2026-08-11 17:05 UTC (permalink / raw)
  To: phucduc.bui, Mark Brown, Sen Wang, Liam Girdwood, Jaroslav Kysela,
	Takashi Iwai, Andreas Kemnade, linux-omap
  Cc: linux-kernel, linux-sound

On 05/08/2026 7:45 am, phucduc.bui@gmail.com wrote:
> From: bui duc phuc <phucduc.bui@gmail.com>
>
> Return any error from snd_soc_of_parse_card_name() directly. If the
> helper returns successfully but card->name remains unset, report the
> missing card name explicitly before returning -ENODEV.
>
> Suggested-by: Andreas Kemnade <andreas@kemnade.info>
> Signed-off-by: bui duc phuc <phucduc.bui@gmail.com>
> ---
>  sound/soc/ti/omap-twl4030.c | 6 +++++-
>  1 file changed, 5 insertions(+), 1 deletion(-)

Acked-by: Jarkko Nikula <jarkko.nikula@bitmer.com>


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2026-08-11 22:06 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-08-05  4:45 [PATCH] ASoC: ti: omap-twl4030: Check for missing card name after parsing phucduc.bui
2026-08-11 14:01 ` Mark Brown
2026-08-11 17:05 ` Jarkko Nikula

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.