Skip to content

Commit 86ccd4d

Browse files
macchianbroonie
authored andcommitted
ASoC: Intel: soc-acpi-intel-lnl-match: add rt1320_l12_rt714_l0 support
This patch add acpi matching support for the rt1320 left and right amplifiers on soundwire link 1 and 2, and the rt714 dmic on soundwire link 0. Signed-off-by: Mac Chiang <[email protected]> Reviewed-by: Péter Ujfalusi <[email protected]> Signed-off-by: Bard Liao <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Mark Brown <[email protected]>
1 parent e149d87 commit 86ccd4d

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

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

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -419,6 +419,15 @@ static const struct snd_soc_acpi_adr_device rt1320_1_group1_adr[] = {
419419
}
420420
};
421421

422+
static const struct snd_soc_acpi_adr_device rt1320_2_group2_adr[] = {
423+
{
424+
.adr = 0x000231025D132001ull,
425+
.num_endpoints = 1,
426+
.endpoints = &spk_r_endpoint,
427+
.name_prefix = "rt1320-2"
428+
}
429+
};
430+
422431
static const struct snd_soc_acpi_adr_device rt1320_1_group2_adr[] = {
423432
{
424433
.adr = 0x000130025D132001ull,
@@ -609,6 +618,25 @@ static const struct snd_soc_acpi_link_adr lnl_sdw_rt1318_l12_rt714_l0[] = {
609618
{}
610619
};
611620

621+
static const struct snd_soc_acpi_link_adr lnl_sdw_rt1320_l12_rt714_l0[] = {
622+
{
623+
.mask = BIT(1),
624+
.num_adr = ARRAY_SIZE(rt1320_1_group2_adr),
625+
.adr_d = rt1320_1_group2_adr,
626+
},
627+
{
628+
.mask = BIT(2),
629+
.num_adr = ARRAY_SIZE(rt1320_2_group2_adr),
630+
.adr_d = rt1320_2_group2_adr,
631+
},
632+
{
633+
.mask = BIT(0),
634+
.num_adr = ARRAY_SIZE(rt714_0_adr),
635+
.adr_d = rt714_0_adr,
636+
},
637+
{}
638+
};
639+
612640
static const struct snd_soc_acpi_link_adr lnl_sdw_rt713_l0_rt1318_l1[] = {
613641
{
614642
.mask = BIT(0),
@@ -740,6 +768,12 @@ struct snd_soc_acpi_mach snd_soc_acpi_intel_lnl_sdw_machines[] = {
740768
.drv_name = "sof_sdw",
741769
.sof_tplg_filename = "sof-lnl-rt1318-l12-rt714-l0.tplg"
742770
},
771+
{
772+
.link_mask = GENMASK(2, 0),
773+
.links = lnl_sdw_rt1320_l12_rt714_l0,
774+
.drv_name = "sof_sdw",
775+
.sof_tplg_filename = "sof-lnl-rt1320-l12-rt714-l0.tplg"
776+
},
743777
{
744778
.link_mask = BIT(0) | BIT(1),
745779
.links = lnl_sdw_rt713_l0_rt1318_l1,

0 commit comments

Comments
 (0)