]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
ASoC: soc_sdw_utils: remove index from sdca codec name
authorBard Liao <yung-chuan.liao@linux.intel.com>
Wed, 25 Feb 2026 13:50:04 +0000 (21:50 +0800)
committerMark Brown <broonie@kernel.org>
Sun, 1 Mar 2026 23:48:54 +0000 (23:48 +0000)
The index is not fixed and it will lead to the DAI link can't bind the
codec component with the name when the index is different from the
predefined one.

Signed-off-by: Bard Liao <yung-chuan.liao@linux.intel.com>
Reviewed-by: Charles Keepax <ckeepax@opensource.cirrus.com>
Reviewed-by: Péter Ujfalusi <peter.ujfalusi@linux.intel.com>
Link: https://patch.msgid.link/20260225135004.2322987-4-yung-chuan.liao@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/sdw_utils/soc_sdw_utils.c

index 821eb9720f6fb4167c00a22282812b493794d325..e624988958e87e37cd1db23576dd395823874859 100644 (file)
@@ -729,7 +729,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},
@@ -745,7 +745,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},
@@ -754,7 +754,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,