* [PATCH 0/2] ASoC: soc_sdw_utils: remove snd_soc_sdca codec name index
@ 2026-03-16 1:03 Bard Liao
2026-03-16 1:03 ` [PATCH 1/2] ASoC: soc_sdw_utils: remove cs42l45 SmartMic " Bard Liao
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: Bard Liao @ 2026-03-16 1:03 UTC (permalink / raw)
To: broonie, tiwai; +Cc: linux-sound, bard.liao, peter.ujfalusi
The index could change if any endpoint is not present. Remove the index
and let the machine driver get the right codec name from the registered
components.
Bard Liao (2):
ASoC: soc_sdw_utils: remove cs42l45 SmartMic codec name index
ASoC: soc_sdw_utils: remove codec name index of snd_soc_sdca codecs
sound/soc/sdw_utils/soc_sdw_utils.c | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
--
2.43.0
^ permalink raw reply [flat|nested] 4+ messages in thread
* [PATCH 1/2] ASoC: soc_sdw_utils: remove cs42l45 SmartMic codec name index
2026-03-16 1:03 [PATCH 0/2] ASoC: soc_sdw_utils: remove snd_soc_sdca codec name index Bard Liao
@ 2026-03-16 1:03 ` Bard Liao
2026-03-16 1:03 ` [PATCH 2/2] ASoC: soc_sdw_utils: remove codec name index of snd_soc_sdca codecs Bard Liao
2026-03-16 18:16 ` [PATCH 0/2] ASoC: soc_sdw_utils: remove snd_soc_sdca codec name index Mark Brown
2 siblings, 0 replies; 4+ messages in thread
From: Bard Liao @ 2026-03-16 1:03 UTC (permalink / raw)
To: broonie, tiwai; +Cc: linux-sound, bard.liao, peter.ujfalusi
Currently the index is 0. In theory, it will not change even if any
other endpoint is not present. But to be consistent and avoid surprise,
remove the index and let the machine driver match the codec name
partially.
Signed-off-by: Bard Liao <yung-chuan.liao@linux.intel.com>
Reviewed-by: Charles Keepax <ckeepax@opensource.cirrus.com>
---
sound/soc/sdw_utils/soc_sdw_utils.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sound/soc/sdw_utils/soc_sdw_utils.c b/sound/soc/sdw_utils/soc_sdw_utils.c
index becc22328230..ab197edeb75a 100644
--- a/sound/soc/sdw_utils/soc_sdw_utils.c
+++ b/sound/soc/sdw_utils/soc_sdw_utils.c
@@ -791,7 +791,7 @@ struct asoc_sdw_codec_info codec_info_list[] = {
},
{
.direction = {false, true},
- .codec_name = "snd_soc_sdca.SmartMic.0",
+ .codec_name = "snd_soc_sdca.SmartMic",
.dai_name = "OT 113",
.dai_type = SOC_SDW_DAI_TYPE_MIC,
.dailink = {SOC_SDW_UNUSED_DAI_ID, SOC_SDW_DMIC_DAI_ID},
--
2.43.0
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [PATCH 2/2] ASoC: soc_sdw_utils: remove codec name index of snd_soc_sdca codecs
2026-03-16 1:03 [PATCH 0/2] ASoC: soc_sdw_utils: remove snd_soc_sdca codec name index Bard Liao
2026-03-16 1:03 ` [PATCH 1/2] ASoC: soc_sdw_utils: remove cs42l45 SmartMic " Bard Liao
@ 2026-03-16 1:03 ` Bard Liao
2026-03-16 18:16 ` [PATCH 0/2] ASoC: soc_sdw_utils: remove snd_soc_sdca codec name index Mark Brown
2 siblings, 0 replies; 4+ messages in thread
From: Bard Liao @ 2026-03-16 1:03 UTC (permalink / raw)
To: broonie, tiwai; +Cc: linux-sound, bard.liao, peter.ujfalusi
The index could change if any endpoint is not present. Remove the index
and let the machine driver get the right codec name from the registered
components.
Signed-off-by: Bard Liao <yung-chuan.liao@linux.intel.com>
Reviewed-by: Charles Keepax <ckeepax@opensource.cirrus.com>
---
sound/soc/sdw_utils/soc_sdw_utils.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/sound/soc/sdw_utils/soc_sdw_utils.c b/sound/soc/sdw_utils/soc_sdw_utils.c
index ab197edeb75a..18f46e3afd60 100644
--- a/sound/soc/sdw_utils/soc_sdw_utils.c
+++ b/sound/soc/sdw_utils/soc_sdw_utils.c
@@ -819,7 +819,7 @@ struct asoc_sdw_codec_info codec_info_list[] = {
.dais = {
{
.direction = {true, false},
- .codec_name = "snd_soc_sdca.UAJ.1",
+ .codec_name = "snd_soc_sdca.UAJ",
.dai_name = "IT 41",
.dai_type = SOC_SDW_DAI_TYPE_JACK,
.dailink = {SOC_SDW_JACK_OUT_DAI_ID, SOC_SDW_UNUSED_DAI_ID},
@@ -827,7 +827,7 @@ struct asoc_sdw_codec_info codec_info_list[] = {
},
{
.direction = {false, true},
- .codec_name = "snd_soc_sdca.SmartMic.0",
+ .codec_name = "snd_soc_sdca.SmartMic",
.dai_name = "OT 113",
.dai_type = SOC_SDW_DAI_TYPE_MIC,
.dailink = {SOC_SDW_UNUSED_DAI_ID, SOC_SDW_DMIC_DAI_ID},
@@ -835,7 +835,7 @@ struct asoc_sdw_codec_info codec_info_list[] = {
},
{
.direction = {false, true},
- .codec_name = "snd_soc_sdca.UAJ.1",
+ .codec_name = "snd_soc_sdca.UAJ",
.dai_name = "OT 36",
.dai_type = SOC_SDW_DAI_TYPE_JACK,
.dailink = {SOC_SDW_UNUSED_DAI_ID, SOC_SDW_JACK_IN_DAI_ID},
@@ -844,7 +844,7 @@ struct asoc_sdw_codec_info codec_info_list[] = {
.dai_num = 3,
.auxs = {
{
- .codec_name = "snd_soc_sdca.HID.2",
+ .codec_name = "snd_soc_sdca.HID",
},
},
.aux_num = 1,
--
2.43.0
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH 0/2] ASoC: soc_sdw_utils: remove snd_soc_sdca codec name index
2026-03-16 1:03 [PATCH 0/2] ASoC: soc_sdw_utils: remove snd_soc_sdca codec name index Bard Liao
2026-03-16 1:03 ` [PATCH 1/2] ASoC: soc_sdw_utils: remove cs42l45 SmartMic " Bard Liao
2026-03-16 1:03 ` [PATCH 2/2] ASoC: soc_sdw_utils: remove codec name index of snd_soc_sdca codecs Bard Liao
@ 2026-03-16 18:16 ` Mark Brown
2 siblings, 0 replies; 4+ messages in thread
From: Mark Brown @ 2026-03-16 18:16 UTC (permalink / raw)
To: tiwai, Bard Liao; +Cc: linux-sound, bard.liao, peter.ujfalusi
On Mon, 16 Mar 2026 09:03:06 +0800, Bard Liao wrote:
> ASoC: soc_sdw_utils: remove snd_soc_sdca codec name index
>
> The index could change if any endpoint is not present. Remove the index
> and let the machine driver get the right codec name from the registered
> components.
>
> Bard Liao (2):
> ASoC: soc_sdw_utils: remove cs42l45 SmartMic codec name index
> ASoC: soc_sdw_utils: remove codec name index of snd_soc_sdca codecs
>
> [...]
Applied to
https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-7.1
Thanks!
[1/2] ASoC: soc_sdw_utils: remove cs42l45 SmartMic codec name index
https://git.kernel.org/broonie/sound/c/1029df4de882
[2/2] ASoC: soc_sdw_utils: remove codec name index of snd_soc_sdca codecs
https://git.kernel.org/broonie/sound/c/ac5f5cfc98b5
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] 4+ messages in thread
end of thread, other threads:[~2026-03-16 21:55 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-03-16 1:03 [PATCH 0/2] ASoC: soc_sdw_utils: remove snd_soc_sdca codec name index Bard Liao
2026-03-16 1:03 ` [PATCH 1/2] ASoC: soc_sdw_utils: remove cs42l45 SmartMic " Bard Liao
2026-03-16 1:03 ` [PATCH 2/2] ASoC: soc_sdw_utils: remove codec name index of snd_soc_sdca codecs Bard Liao
2026-03-16 18:16 ` [PATCH 0/2] ASoC: soc_sdw_utils: remove snd_soc_sdca codec name index Mark Brown
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox