Skip to content

Commit bb22b43

Browse files
committed
tas2783A: Add acpi match changes for Intel MTL
acpi match changes to support tas2783a on mtl on link 0 Signed-off-by: Niranjan H Y <[email protected]> --- v3: - no changes v2: - move ACPI entries for tas2783 after mockup
1 parent 25238be commit bb22b43

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

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

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -948,6 +948,30 @@ static const struct snd_soc_acpi_adr_device cs42l42_0_adr[] = {
948948
}
949949
};
950950

951+
static const struct snd_soc_acpi_adr_device tas2783_0_adr[] = {
952+
{
953+
.adr = 0x0000380102000001ull,
954+
.num_endpoints = 1,
955+
.endpoints = &spk_l_endpoint,
956+
.name_prefix = "tas2783-1"
957+
},
958+
{
959+
.adr = 0x0000390102000001ull,
960+
.num_endpoints = 1,
961+
.endpoints = &spk_r_endpoint,
962+
.name_prefix = "tas2783-2"
963+
}
964+
};
965+
966+
static const struct snd_soc_acpi_link_adr tas2783_link0[] = {
967+
{
968+
.mask = BIT(0),
969+
.num_adr = ARRAY_SIZE(tas2783_0_adr),
970+
.adr_d = tas2783_0_adr,
971+
},
972+
{}
973+
};
974+
951975
static const struct snd_soc_acpi_link_adr cs42l42_link0_max98363_link2[] = {
952976
/* Expected order: jack -> amp */
953977
{
@@ -1080,6 +1104,12 @@ struct snd_soc_acpi_mach snd_soc_acpi_intel_mtl_sdw_machines[] = {
10801104
.drv_name = "sof_sdw",
10811105
.sof_tplg_filename = "sof-mtl-rt715-rt711-rt1308-mono.tplg",
10821106
},
1107+
{
1108+
.link_mask = BIT(0),
1109+
.links = tas2783_link0,
1110+
.drv_name = "sof_sdw",
1111+
.sof_tplg_filename = "sof-mtl-tas2783.tplg",
1112+
},
10831113
{
10841114
.link_mask = GENMASK(3, 0),
10851115
.links = mtl_rt713_l0_rt1316_l12_rt1713_l3,

0 commit comments

Comments
 (0)