ASoC: sdw_utils: Set component_name for tac5xx2 codec family

* With component_name set in the codec_info_list DAI entries,
"amixer -D hw:<card> info" includes the 'spk' identifier for
each tac5xx2 speaker component. This allows userspace to
identify the speaker codec at runtime and enables UCM
card matching for the tac5xx2 family.
* Set component_name for the speaker, mic, and UAJ DAI
entries for all tac5xx2 family variants.

Signed-off-by: Niranjan H Y <niranjan.hy@ti.com>
Link: https://patch.msgid.link/20260820115114.1203-1-niranjan.hy@ti.com
Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
Niranjan H Y 2026-08-20 17:21:12 +05:30 committed by Mark Brown
parent 0fd298233f
commit 9d4843ac81
No known key found for this signature in database
GPG Key ID: 24D68B725D5487D0

View File

@ -81,6 +81,7 @@ struct asoc_sdw_codec_info codec_info_list[] = {
/* speaker */
.direction = {true, false},
.dai_name = "tac5xx2-aif1",
.component_name = "tac5572",
.dai_type = SOC_SDW_DAI_TYPE_AMP,
.dailink = {SOC_SDW_AMP_OUT_DAI_ID, SOC_SDW_UNUSED_DAI_ID},
.init = asoc_sdw_ti_amp_init,
@ -94,6 +95,7 @@ struct asoc_sdw_codec_info codec_info_list[] = {
/* mic */
.direction = {false, true},
.dai_name = "tac5xx2-aif2",
.component_name = "tac5572",
.dai_type = SOC_SDW_DAI_TYPE_MIC,
.dailink = {SOC_SDW_UNUSED_DAI_ID, SOC_SDW_DMIC_DAI_ID},
.rtd_init = asoc_sdw_ti_dmic_rtd_init,
@ -102,6 +104,7 @@ struct asoc_sdw_codec_info codec_info_list[] = {
/* UAJ */
.direction = {true, true},
.dai_name = "tac5xx2-aif3",
.component_name = "tac5572",
.dai_type = SOC_SDW_DAI_TYPE_JACK,
.dailink = {SOC_SDW_JACK_OUT_DAI_ID, SOC_SDW_JACK_IN_DAI_ID},
.controls = generic_jack_controls,
@ -122,6 +125,7 @@ struct asoc_sdw_codec_info codec_info_list[] = {
/* speaker with IV sense feedback */
.direction = {true, true},
.dai_name = "tac5xx2-aif1",
.component_name = "tac5672",
.dai_type = SOC_SDW_DAI_TYPE_AMP,
.dailink = {SOC_SDW_AMP_OUT_DAI_ID, SOC_SDW_AMP_IN_DAI_ID},
.init = asoc_sdw_ti_amp_init,
@ -135,6 +139,7 @@ struct asoc_sdw_codec_info codec_info_list[] = {
/* mic */
.direction = {false, true},
.dai_name = "tac5xx2-aif2",
.component_name = "tac5672",
.dai_type = SOC_SDW_DAI_TYPE_MIC,
.dailink = {SOC_SDW_UNUSED_DAI_ID, SOC_SDW_DMIC_DAI_ID},
.rtd_init = asoc_sdw_ti_dmic_rtd_init,
@ -143,6 +148,7 @@ struct asoc_sdw_codec_info codec_info_list[] = {
/* UAJ */
.direction = {true, true},
.dai_name = "tac5xx2-aif3",
.component_name = "tac5672",
.dai_type = SOC_SDW_DAI_TYPE_JACK,
.dailink = {SOC_SDW_JACK_OUT_DAI_ID, SOC_SDW_JACK_IN_DAI_ID},
.controls = generic_jack_controls,
@ -163,6 +169,7 @@ struct asoc_sdw_codec_info codec_info_list[] = {
/* speaker with echo reference feedback */
.direction = {true, true},
.dai_name = "tac5xx2-aif1",
.component_name = "tac5682",
.dai_type = SOC_SDW_DAI_TYPE_AMP,
.dailink = {SOC_SDW_AMP_OUT_DAI_ID, SOC_SDW_AMP_IN_DAI_ID},
.init = asoc_sdw_ti_amp_init,
@ -176,6 +183,7 @@ struct asoc_sdw_codec_info codec_info_list[] = {
/* mic */
.direction = {false, true},
.dai_name = "tac5xx2-aif2",
.component_name = "tac5682",
.dai_type = SOC_SDW_DAI_TYPE_MIC,
.dailink = {SOC_SDW_UNUSED_DAI_ID, SOC_SDW_DMIC_DAI_ID},
.rtd_init = asoc_sdw_ti_dmic_rtd_init,
@ -184,6 +192,7 @@ struct asoc_sdw_codec_info codec_info_list[] = {
/* UAJ */
.direction = {true, true},
.dai_name = "tac5xx2-aif3",
.component_name = "tac5682",
.dai_type = SOC_SDW_DAI_TYPE_JACK,
.dailink = {SOC_SDW_JACK_OUT_DAI_ID, SOC_SDW_JACK_IN_DAI_ID},
.controls = generic_jack_controls,
@ -203,6 +212,7 @@ struct asoc_sdw_codec_info codec_info_list[] = {
{
.direction = {true, false},
.dai_name = "tac5xx2-aif1",
.component_name = "tas2883",
.dai_type = SOC_SDW_DAI_TYPE_AMP,
.dailink = {SOC_SDW_AMP_OUT_DAI_ID, SOC_SDW_UNUSED_DAI_ID},
.init = asoc_sdw_ti_amp_init,
@ -216,6 +226,7 @@ struct asoc_sdw_codec_info codec_info_list[] = {
/* mic */
.direction = {false, true},
.dai_name = "tac5xx2-aif2",
.component_name = "tas2883",
.dai_type = SOC_SDW_DAI_TYPE_MIC,
.dailink = {SOC_SDW_UNUSED_DAI_ID, SOC_SDW_DMIC_DAI_ID},
.rtd_init = asoc_sdw_ti_dmic_rtd_init,