]> www.infradead.org Git - users/hch/misc.git/commitdiff
ASoC: sdw_utils: add rt1321 part id to codec_info_list
authorShuming Fan <shumingf@realtek.com>
Tue, 14 Oct 2025 09:21:57 +0000 (17:21 +0800)
committerMark Brown <broonie@kernel.org>
Wed, 15 Oct 2025 09:47:23 +0000 (10:47 +0100)
The SdW machine driver supports the part id rt1321 amplifier.

Signed-off-by: Shuming Fan <shumingf@realtek.com>
Link: https://patch.msgid.link/20251014092157.2789054-1-shumingf@realtek.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/sdw_utils/soc_sdw_utils.c

index 56c72ef27e7b1fb1332abc205a70e52580eebd51..270c66b90228379116712a4596d357bca2abc0e9 100644 (file)
@@ -311,6 +311,26 @@ struct asoc_sdw_codec_info codec_info_list[] = {
                },
                .dai_num = 1,
        },
+       {
+               .part_id = 0x1321,
+               .dais = {
+                       {
+                               .direction = {true, false},
+                               .dai_name = "rt1320-aif1",
+                               .component_name = "rt1320",
+                               .dai_type = SOC_SDW_DAI_TYPE_AMP,
+                               .dailink = {SOC_SDW_AMP_OUT_DAI_ID, SOC_SDW_UNUSED_DAI_ID},
+                               .init = asoc_sdw_rt_amp_init,
+                               .exit = asoc_sdw_rt_amp_exit,
+                               .rtd_init = asoc_sdw_rt_amp_spk_rtd_init,
+                               .controls = generic_spk_controls,
+                               .num_controls = ARRAY_SIZE(generic_spk_controls),
+                               .widgets = generic_spk_widgets,
+                               .num_widgets = ARRAY_SIZE(generic_spk_widgets),
+                       },
+               },
+               .dai_num = 1,
+       },
        {
                .part_id = 0x714,
                .version_id = 3,