Skip to content

Commit 414934b

Browse files
author
Mac Chiang
committed
ASoC: Intel: soc-acpi-ptl-match: add cs42l43_l3_cs35l56_2 support
This patch adds: 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 34b2c69 commit 414934b

1 file changed

Lines changed: 35 additions & 0 deletions

File tree

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

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -263,6 +263,21 @@ static const struct snd_soc_acpi_adr_device cs42l43_2_adr[] = {
263263
}
264264
};
265265

266+
static const struct snd_soc_acpi_adr_device cs35l56_2_lr_adr[] = {
267+
{
268+
.adr = 0x00023001fa355601ull,
269+
.num_endpoints = 1,
270+
.endpoints = &spk_l_endpoint,
271+
.name_prefix = "AMP1"
272+
},
273+
{
274+
.adr = 0x00023101fa355601ull,
275+
.num_endpoints = 1,
276+
.endpoints = &spk_r_endpoint,
277+
.name_prefix = "AMP2"
278+
}
279+
};
280+
266281
static const struct snd_soc_acpi_adr_device cs35l56_1_3amp_adr[] = {
267282
{
268283
.adr = 0x00013001fa355601ull,
@@ -467,6 +482,20 @@ static const struct snd_soc_acpi_adr_device rt1320_3_group2_adr[] = {
467482
}
468483
};
469484

485+
static const struct snd_soc_acpi_link_adr ptl_cs42l43_l3_cs35l56_l2[] = {
486+
{
487+
.mask = BIT(3),
488+
.num_adr = ARRAY_SIZE(cs42l43_3_adr),
489+
.adr_d = cs42l43_3_adr,
490+
},
491+
{
492+
.mask = BIT(2),
493+
.num_adr = ARRAY_SIZE(cs35l56_2_lr_adr),
494+
.adr_d = cs35l56_2_lr_adr,
495+
},
496+
{}
497+
};
498+
470499
static const struct snd_soc_acpi_link_adr ptl_cs42l43_l2_cs35l56x6_l13[] = {
471500
{
472501
.mask = BIT(2),
@@ -669,6 +698,12 @@ struct snd_soc_acpi_mach snd_soc_acpi_intel_ptl_sdw_machines[] = {
669698
.drv_name = "sof_sdw",
670699
.sof_tplg_filename = "sof-ptl-cs42l43-l2-cs35l56x6-l13.tplg",
671700
},
701+
{
702+
.link_mask = BIT(3) | BIT(2),
703+
.links = lnl_cs42l43_l3_cs35l56_l2,
704+
.drv_name = "sof_sdw",
705+
.sof_tplg_filename = "sof-ptl-cs42l43-l3-cs35l56-l2.tplg",
706+
},
672707
{
673708
.link_mask = BIT(1) | BIT(2),
674709
.links = ptl_sdw_rt712_vb_l2_rt1320_l1,

0 commit comments

Comments
 (0)