From: Niranjan H Y <niranjan.hy@ti.com>
To: <linux-sound@vger.kernel.org>
Cc: <linux-kernel@vger.kernel.org>, <broonie@kernel.org>,
<ckeepax@opensource.cirrus.com>, <lgirdwood@gmail.com>,
<perex@perex.cz>, <tiwai@suse.com>, <cezary.rojewski@intel.com>,
<peter.ujfalusi@linux.intel.com>,
<yung-chuan.liao@linux.intel.com>, <kai.vehmanen@linux.intel.com>,
<pierre-louis.bossart@linux.dev>, <baojun.xu@ti.com>,
<shenghao-ding@ti.com>, <sandeepk@ti.com>, <v-hampiholi@ti.com>,
Niranjan H Y <niranjan.hy@ti.com>
Subject: [PATCH v1 2/2] ASoC: sdw_utils: add spk component string for tac5xx2 family
Date: Wed, 19 Aug 2026 11:04:27 +0530 [thread overview]
Message-ID: <20260819053427.2277-2-niranjan.hy@ti.com> (raw)
In-Reply-To: <20260819053427.2277-1-niranjan.hy@ti.com>
The tac5xx2 RTD init does not populate card->components with the
spk:<prefix> string. With this change, "amixer -D hw:<card> info"
includes the spk identifier for each tac5xx2 speaker component,
following the same pattern used by other codec families.
This allows userspace to identify the speaker codec at runtime
and enables UCM card matching for the tac5xx2 family.
Signed-off-by: Niranjan H Y <niranjan.hy@ti.com>
---
sound/soc/sdw_utils/soc_sdw_ti_amp.c | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/sound/soc/sdw_utils/soc_sdw_ti_amp.c b/sound/soc/sdw_utils/soc_sdw_ti_amp.c
index d0ae5d7ef..5e0b2c753 100644
--- a/sound/soc/sdw_utils/soc_sdw_ti_amp.c
+++ b/sound/soc/sdw_utils/soc_sdw_ti_amp.c
@@ -127,6 +127,12 @@ int asoc_sdw_ti_tac5xx2_spk_rtd_init(struct snd_soc_pcm_runtime *rtd,
struct snd_soc_dai *codec_dai;
const char *prefix;
+ card->components = devm_kasprintf(card->dev, GFP_KERNEL,
+ "%s spk:%s", card->components,
+ dai->component->name_prefix);
+ if (!card->components)
+ return -ENOMEM;
+
for_each_rtd_codec_dais(rtd, i, codec_dai) {
if (!strstr(codec_dai->name, "tac5") &&
!strstr(codec_dai->name, "tas2883"))
--
2.34.1
next prev parent reply other threads:[~2026-08-19 5:35 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-08-19 5:34 [PATCH v1 1/2] ASoC: tac5xx2-sdw: update default regmap registers Niranjan H Y
2026-08-19 5:34 ` Niranjan H Y [this message]
2026-08-19 13:50 ` [PATCH v1 2/2] ASoC: sdw_utils: add spk component string for tac5xx2 family Mark Brown
2026-08-19 13:46 ` [PATCH v1 1/2] ASoC: tac5xx2-sdw: update default regmap registers Mark Brown
2026-08-20 5:06 ` Holalu Yogendra, Niranjan
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=20260819053427.2277-2-niranjan.hy@ti.com \
--to=niranjan.hy@ti.com \
--cc=baojun.xu@ti.com \
--cc=broonie@kernel.org \
--cc=cezary.rojewski@intel.com \
--cc=ckeepax@opensource.cirrus.com \
--cc=kai.vehmanen@linux.intel.com \
--cc=lgirdwood@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-sound@vger.kernel.org \
--cc=perex@perex.cz \
--cc=peter.ujfalusi@linux.intel.com \
--cc=pierre-louis.bossart@linux.dev \
--cc=sandeepk@ti.com \
--cc=shenghao-ding@ti.com \
--cc=tiwai@suse.com \
--cc=v-hampiholi@ti.com \
--cc=yung-chuan.liao@linux.intel.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 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.