Skip to content

Commit 6924565

Browse files
oortcometbroonie
authored andcommitted
ASoC: Intel: soc-acpi: lnl: Add match entry for TM2 laptops
Add a new match table entry on Lunarlake for the TM2 laptops with rt713 and rt1318. Signed-off-by: Derek Fang <[email protected]> Reviewed-by: Péter Ujfalusi <[email protected]> Reviewed-by: Ranjani Sridharan <[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 b086799 commit 6924565

File tree

1 file changed

+38
-0
lines changed

1 file changed

+38
-0
lines changed

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

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -225,6 +225,15 @@ static const struct snd_soc_acpi_adr_device rt1316_3_group1_adr[] = {
225225
}
226226
};
227227

228+
static const struct snd_soc_acpi_adr_device rt1318_1_adr[] = {
229+
{
230+
.adr = 0x000133025D131801ull,
231+
.num_endpoints = 1,
232+
.endpoints = &single_endpoint,
233+
.name_prefix = "rt1318-1"
234+
}
235+
};
236+
228237
static const struct snd_soc_acpi_adr_device rt1318_1_group1_adr[] = {
229238
{
230239
.adr = 0x000130025D131801ull,
@@ -243,6 +252,15 @@ static const struct snd_soc_acpi_adr_device rt1318_2_group1_adr[] = {
243252
}
244253
};
245254

255+
static const struct snd_soc_acpi_adr_device rt713_0_adr[] = {
256+
{
257+
.adr = 0x000031025D071301ull,
258+
.num_endpoints = 1,
259+
.endpoints = &single_endpoint,
260+
.name_prefix = "rt713"
261+
}
262+
};
263+
246264
static const struct snd_soc_acpi_adr_device rt714_0_adr[] = {
247265
{
248266
.adr = 0x000030025D071401ull,
@@ -378,6 +396,20 @@ static const struct snd_soc_acpi_link_adr lnl_sdw_rt1318_l12_rt714_l0[] = {
378396
{}
379397
};
380398

399+
static const struct snd_soc_acpi_link_adr lnl_sdw_rt713_l0_rt1318_l1[] = {
400+
{
401+
.mask = BIT(0),
402+
.num_adr = ARRAY_SIZE(rt713_0_adr),
403+
.adr_d = rt713_0_adr,
404+
},
405+
{
406+
.mask = BIT(1),
407+
.num_adr = ARRAY_SIZE(rt1318_1_adr),
408+
.adr_d = rt1318_1_adr,
409+
},
410+
{}
411+
};
412+
381413
/* this table is used when there is no I2S codec present */
382414
struct snd_soc_acpi_mach snd_soc_acpi_intel_lnl_sdw_machines[] = {
383415
/* mockup tests need to be first */
@@ -447,6 +479,12 @@ struct snd_soc_acpi_mach snd_soc_acpi_intel_lnl_sdw_machines[] = {
447479
.drv_name = "sof_sdw",
448480
.sof_tplg_filename = "sof-lnl-rt1318-l12-rt714-l0.tplg"
449481
},
482+
{
483+
.link_mask = BIT(0) | BIT(1),
484+
.links = lnl_sdw_rt713_l0_rt1318_l1,
485+
.drv_name = "sof_sdw",
486+
.sof_tplg_filename = "sof-lnl-rt713-l0-rt1318-l1.tplg"
487+
},
450488
{},
451489
};
452490
EXPORT_SYMBOL_GPL(snd_soc_acpi_intel_lnl_sdw_machines);

0 commit comments

Comments
 (0)