]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
ASoC: soc_sdw_utils: add is_amp flag to all amps
authorBard Liao <yung-chuan.liao@linux.intel.com>
Fri, 5 Jun 2026 10:18:04 +0000 (18:18 +0800)
committerMark Brown <broonie@kernel.org>
Wed, 10 Jun 2026 11:06:07 +0000 (12:06 +0100)
The is_amp flag will be used for the codec name_prefix.
We detect it by checking if the codec support endpoints other than amp.
However, it is not accurate. Currently, the is_amp flag is only set to
the amps that include other types of endpoints. But it can't cover the
case that a monolithic codec that only the amp endpoint is present.
Add the is_amp flag to all amp type codecs and will set the name_prefix
by the flag in the follow up commit.

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

index e440c23271001ce7564883399146bd820f47e790..9b062c0b5924362222e026c850e78b74895f9d13 100644 (file)
@@ -76,6 +76,7 @@ struct asoc_sdw_codec_info codec_info_list[] = {
                .vendor_id = 0x0102,
                .part_id = 0x0000, /* TAS2783A */
                .name_prefix = "tas2783",
+               .is_amp = true,
                .dais = {
                        {
                                .direction = {true, true},
@@ -266,6 +267,7 @@ struct asoc_sdw_codec_info codec_info_list[] = {
                .part_id = 0x1308,
                .name_prefix = "rt1308",
                .acpi_id = "10EC1308",
+               .is_amp = true,
                .dais = {
                        {
                                .direction = {true, false},
@@ -289,6 +291,7 @@ struct asoc_sdw_codec_info codec_info_list[] = {
                .vendor_id = 0x025d,
                .part_id = 0x1316,
                .name_prefix = "rt1316",
+               .is_amp = true,
                .dais = {
                        {
                                .direction = {true, true},
@@ -311,6 +314,7 @@ struct asoc_sdw_codec_info codec_info_list[] = {
                .vendor_id = 0x025d,
                .part_id = 0x1318,
                .name_prefix = "rt1318",
+               .is_amp = true,
                .dais = {
                        {
                                .direction = {true, true},
@@ -561,6 +565,7 @@ struct asoc_sdw_codec_info codec_info_list[] = {
                .vendor_id = 0x019f,
                .part_id = 0x8373,
                .name_prefix = "Left",
+               .is_amp = true,
                .dais = {
                        {
                                .direction = {true, true},
@@ -582,6 +587,7 @@ struct asoc_sdw_codec_info codec_info_list[] = {
                .vendor_id = 0x019f,
                .part_id = 0x8363,
                .name_prefix = "Left",
+               .is_amp = true,
                .dais = {
                        {
                                .direction = {true, false},
@@ -622,6 +628,7 @@ struct asoc_sdw_codec_info codec_info_list[] = {
                .vendor_id = 0x01fa,
                .part_id = 0x3556,
                .name_prefix = "AMP",
+               .is_amp = true,
                .dais = {
                        {
                                .direction = {true, false},
@@ -650,6 +657,7 @@ struct asoc_sdw_codec_info codec_info_list[] = {
                .vendor_id = 0x01fa,
                .part_id = 0x3557,
                .name_prefix = "AMP",
+               .is_amp = true,
                .dais = {
                        {
                                .direction = {true, false},
@@ -678,6 +686,7 @@ struct asoc_sdw_codec_info codec_info_list[] = {
                .vendor_id = 0x01fa,
                .part_id = 0x3563,
                .name_prefix = "AMP",
+               .is_amp = true,
                .dais = {
                        {
                                .direction = {true, false},
@@ -989,6 +998,7 @@ struct asoc_sdw_codec_info codec_info_list[] = {
                .vendor_id = 0x0105,
                .part_id = 0x55aa, /* amplifier mockup */
                .name_prefix = "sdw_mockup_amp1",
+               .is_amp = true,
                .version_id = 0,
                .dais = {
                        {