Skip to content

Commit 62bea84

Browse files
committed
ASoC: Intel: adl: add 2xrt1316 audio configuration
That is a speaker only configuration and 2 rt1316 are on link 0 and 2. Signed-off-by: Bard Liao <yung-chuan.liao@linux.intel.com>
1 parent 5d11291 commit 62bea84

1 file changed

Lines changed: 29 additions & 0 deletions

File tree

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

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -214,6 +214,15 @@ static const struct snd_soc_acpi_adr_device rt1316_1_group2_adr[] = {
214214
}
215215
};
216216

217+
static const struct snd_soc_acpi_adr_device rt1316_2_group2_adr[] = {
218+
{
219+
.adr = 0x000232025D131601ull,
220+
.num_endpoints = 1,
221+
.endpoints = &spk_r_endpoint,
222+
.name_prefix = "rt1316-2"
223+
}
224+
};
225+
217226
static const struct snd_soc_acpi_adr_device rt1316_1_single_adr[] = {
218227
{
219228
.adr = 0x000130025D131601ull,
@@ -547,6 +556,20 @@ static const struct snd_soc_acpi_link_adr adl_chromebook_base[] = {
547556
{}
548557
};
549558

559+
static const struct snd_soc_acpi_link_adr adl_sdw_rt1316_link02[] = {
560+
{
561+
.mask = BIT(0),
562+
.num_adr = ARRAY_SIZE(rt1316_0_group2_adr),
563+
.adr_d = rt1316_0_group2_adr,
564+
},
565+
{
566+
.mask = BIT(2),
567+
.num_adr = ARRAY_SIZE(rt1316_2_group2_adr),
568+
.adr_d = rt1316_2_group2_adr,
569+
},
570+
{}
571+
};
572+
550573
static const struct snd_soc_acpi_codecs adl_max98357a_amp = {
551574
.num_codecs = 1,
552575
.codecs = {"MX98357A"}
@@ -749,6 +772,12 @@ struct snd_soc_acpi_mach snd_soc_acpi_intel_adl_sdw_machines[] = {
749772
.drv_name = "sof_sdw",
750773
.sof_tplg_filename = "sof-adl-sdw-max98373-rt5682.tplg",
751774
},
775+
{
776+
.link_mask = BIT(0) | BIT(2),
777+
.links = adl_sdw_rt1316_link02,
778+
.drv_name = "sof_sdw",
779+
.sof_tplg_filename = "sof-adl-rt1316-l02.tplg",
780+
},
752781
{},
753782
};
754783
EXPORT_SYMBOL_GPL(snd_soc_acpi_intel_adl_sdw_machines);

0 commit comments

Comments
 (0)