Skip to content

Commit 6fe0c82

Browse files
committed
ASoC: Intel: soc-acpi-intel-lnl-match: add rt712_vb_l1_rt1320_l1 support
Add rt712_vb and rt1320 both on SoundWire link1 support. Signed-off-by: Bard Liao <yung-chuan.liao@linux.intel.com>
1 parent 1885bb7 commit 6fe0c82

1 file changed

Lines changed: 29 additions & 0 deletions

File tree

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

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -223,6 +223,15 @@ static const struct snd_soc_acpi_adr_device rt1712_3_single_adr[] = {
223223
}
224224
};
225225

226+
static const struct snd_soc_acpi_adr_device rt712_vb_1_group1_adr[] = {
227+
{
228+
.adr = 0x000130025D071201ull,
229+
.num_endpoints = ARRAY_SIZE(jack_amp_g1_dmic_endpoints_endpoints),
230+
.endpoints = jack_amp_g1_dmic_endpoints_endpoints,
231+
.name_prefix = "rt712"
232+
}
233+
};
234+
226235
static const struct snd_soc_acpi_adr_device rt712_vb_2_group1_adr[] = {
227236
{
228237
.adr = 0x000230025D071201ull,
@@ -467,6 +476,20 @@ static const struct snd_soc_acpi_link_adr lnl_sdw_rt712_vb_l2_rt1320_l1[] = {
467476
{}
468477
};
469478

479+
static const struct snd_soc_acpi_link_adr lnl_sdw_rt712_vb_l1_rt1320_l1[] = {
480+
{
481+
.mask = BIT(1),
482+
.num_adr = ARRAY_SIZE(rt712_vb_1_group1_adr),
483+
.adr_d = rt712_vb_1_group1_adr,
484+
},
485+
{
486+
.mask = BIT(1),
487+
.num_adr = ARRAY_SIZE(rt1320_1_group1_adr),
488+
.adr_d = rt1320_1_group1_adr,
489+
},
490+
{}
491+
};
492+
470493
/* this table is used when there is no I2S codec present */
471494
/* this table is used when there is no I2S codec present */
472495
struct snd_soc_acpi_mach snd_soc_acpi_intel_lnl_sdw_machines[] = {
@@ -550,6 +573,12 @@ struct snd_soc_acpi_mach snd_soc_acpi_intel_lnl_sdw_machines[] = {
550573
.machine_check = snd_soc_acpi_intel_sdca_is_device_rt712_vb,
551574
.sof_tplg_filename = "sof-lnl-rt712-l2-rt1320-l1.tplg"
552575
},
576+
{
577+
.link_mask = BIT(1),
578+
.links = lnl_sdw_rt712_vb_l1_rt1320_l1,
579+
.drv_name = "sof_sdw",
580+
.sof_tplg_filename = "sof-lnl-rt712-l1-rt1320-l1.tplg"
581+
},
553582
{},
554583
};
555584
EXPORT_SYMBOL_GPL(snd_soc_acpi_intel_lnl_sdw_machines);

0 commit comments

Comments
 (0)