Skip to content

Commit 1cbfd5c

Browse files
macchianMac Chiang
authored andcommitted
ASoC: Intel: soc-acpi-ptl-match: add cs42l43_l3_cs35l56_2 support
This patch adds the aggregated mode support: cs42l43 codec with left and right tweeters on soundwire link 3 and cs35l56 left nad right woofers on soundwire link 2. Signed-off-by: Mac Chiang <mac.chiang@intel.com>
1 parent 31869e9 commit 1cbfd5c

1 file changed

Lines changed: 44 additions & 0 deletions

File tree

sound/soc/intel/common/soc-acpi-intel-ptl-match.c

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -236,6 +236,21 @@ static const struct snd_soc_acpi_adr_device cs42l43_2_adr[] = {
236236
}
237237
};
238238

239+
static const struct snd_soc_acpi_adr_device cs35l56_2_lr_adr[] = {
240+
{
241+
.adr = 0x00023001fa355601ull,
242+
.num_endpoints = 1,
243+
.endpoints = &spk_l_endpoint,
244+
.name_prefix = "AMP1"
245+
},
246+
{
247+
.adr = 0x00023101fa355601ull,
248+
.num_endpoints = 1,
249+
.endpoints = &spk_r_endpoint,
250+
.name_prefix = "AMP2"
251+
}
252+
};
253+
239254
static const struct snd_soc_acpi_adr_device cs35l56_1_3amp_adr[] = {
240255
{
241256
.adr = 0x00013001fa355601ull,
@@ -278,6 +293,15 @@ static const struct snd_soc_acpi_adr_device cs35l56_3_3amp_adr[] = {
278293
}
279294
};
280295

296+
static const struct snd_soc_acpi_adr_device cs42l43_3_g1_adr[] = {
297+
{
298+
.adr = 0x00033001FA424301ull,
299+
.num_endpoints = ARRAY_SIZE(cs42l43_amp_spkagg_endpoints),
300+
.endpoints = cs42l43_amp_spkagg_endpoints,
301+
.name_prefix = "cs42l43"
302+
}
303+
};
304+
281305
static const struct snd_soc_acpi_adr_device rt711_sdca_0_adr[] = {
282306
{
283307
.adr = 0x000030025D071101ull,
@@ -440,6 +464,20 @@ static const struct snd_soc_acpi_adr_device rt1320_3_group2_adr[] = {
440464
}
441465
};
442466

467+
static const struct snd_soc_acpi_link_adr ptl_cs42l43_l3_cs35l56_l2[] = {
468+
{
469+
.mask = BIT(3),
470+
.num_adr = ARRAY_SIZE(cs42l43_3_g1_adr),
471+
.adr_d = cs42l43_3_g1_adr,
472+
},
473+
{
474+
.mask = BIT(2),
475+
.num_adr = ARRAY_SIZE(cs35l56_2_lr_adr),
476+
.adr_d = cs35l56_2_lr_adr,
477+
},
478+
{}
479+
};
480+
443481
static const struct snd_soc_acpi_link_adr ptl_cs42l43_l2_cs35l56x6_l13[] = {
444482
{
445483
.mask = BIT(2),
@@ -675,6 +713,12 @@ struct snd_soc_acpi_mach snd_soc_acpi_intel_ptl_sdw_machines[] = {
675713
.sof_tplg_filename = "sof-ptl-rt712-l3-rt1320-l2.tplg",
676714
.get_function_tplg_files = sof_sdw_get_tplg_files,
677715
},
716+
{
717+
.link_mask = BIT(3) | BIT(2),
718+
.links = ptl_cs42l43_l3_cs35l56_l2,
719+
.drv_name = "sof_sdw",
720+
.sof_tplg_filename = "sof-ptl-cs42l43-l3-cs35l56-l2.tplg",
721+
},
678722
{
679723
.link_mask = BIT(0),
680724
.links = ptl_rvp,

0 commit comments

Comments
 (0)