Skip to content

Commit

Permalink
ASoC: Intel: soc-acpi-intel-tgl-match: add TAS2783 info
Browse files Browse the repository at this point in the history
Add TAS2783 info.

Signed-off-by: Bard Liao <[email protected]>
  • Loading branch information
bardliao committed Nov 22, 2023
1 parent 5f71254 commit 4da5dcf
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions sound/soc/intel/common/soc-acpi-intel-tgl-match.c
Original file line number Diff line number Diff line change
Expand Up @@ -453,6 +453,30 @@ static const struct snd_soc_acpi_adr_device cs35l56_1_adr[] = {
}
};

static const struct snd_soc_acpi_adr_device tas2783_0_adr[] = {
{
.adr = 0x0000390102000001ull,
.num_endpoints = 1,
.endpoints = &spk_l_endpoint,
.name_prefix = "tas2783-1"
},
{
.adr = 0x0000380102000001ull,
.num_endpoints = 1,
.endpoints = &spk_r_endpoint,
.name_prefix = "tas2783-2"
}
};

static const struct snd_soc_acpi_link_adr tas2783_link0[] = {
{
.mask = BIT(0),
.num_adr = ARRAY_SIZE(tas2783_0_adr),
.adr_d = tas2783_0_adr,
},
{}
};

static const struct snd_soc_acpi_link_adr tgl_cs42l43_cs35l56[] = {
{
.mask = BIT(3),
Expand Down Expand Up @@ -632,6 +656,12 @@ struct snd_soc_acpi_mach snd_soc_acpi_intel_tgl_sdw_machines[] = {
.drv_name = "sof_sdw",
.sof_tplg_filename = "sof-tgl-rt711.tplg",
},
{
.link_mask = BIT(0),
.links = tas2783_link0,
.drv_name = "sof_sdw",
.sof_tplg_filename = "sof-tgl-tas2783.tplg",
},
{},
};
EXPORT_SYMBOL_GPL(snd_soc_acpi_intel_tgl_sdw_machines);

0 comments on commit 4da5dcf

Please sign in to comment.