Skip to content

Commit 57b00ab

Browse files
shumingfanbroonie
authored andcommitted
ASoC: sdw_utils: add rt1321 part id to codec_info_list
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>
1 parent 6370a99 commit 57b00ab

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

sound/soc/sdw_utils/soc_sdw_utils.c

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -311,6 +311,26 @@ struct asoc_sdw_codec_info codec_info_list[] = {
311311
},
312312
.dai_num = 1,
313313
},
314+
{
315+
.part_id = 0x1321,
316+
.dais = {
317+
{
318+
.direction = {true, false},
319+
.dai_name = "rt1320-aif1",
320+
.component_name = "rt1320",
321+
.dai_type = SOC_SDW_DAI_TYPE_AMP,
322+
.dailink = {SOC_SDW_AMP_OUT_DAI_ID, SOC_SDW_UNUSED_DAI_ID},
323+
.init = asoc_sdw_rt_amp_init,
324+
.exit = asoc_sdw_rt_amp_exit,
325+
.rtd_init = asoc_sdw_rt_amp_spk_rtd_init,
326+
.controls = generic_spk_controls,
327+
.num_controls = ARRAY_SIZE(generic_spk_controls),
328+
.widgets = generic_spk_widgets,
329+
.num_widgets = ARRAY_SIZE(generic_spk_widgets),
330+
},
331+
},
332+
.dai_num = 1,
333+
},
314334
{
315335
.part_id = 0x714,
316336
.version_id = 3,

0 commit comments

Comments
 (0)