Skip to content

Commit 62a5897

Browse files
macchianbroonie
authored andcommitted
ASoC: Intel: soc-acpi-intel-ptl-match: Add rt713_vb_l3_rt1320_l3 support
This patch adds support for the rt712_vb multi-function codec and rt1320 amplifier. Both devices are connected via a single Soundwire link 3, sharing the sdw3-clock, sdw3-data[0] and sdw3-data[1] data lanes respectively. Signed-off-by: Mac Chiang <[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 e79cc43 commit 62a5897

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

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

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -321,6 +321,15 @@ static const struct snd_soc_acpi_adr_device rt713_vb_3_adr[] = {
321321
}
322322
};
323323

324+
static const struct snd_soc_acpi_adr_device rt1320_3_group1_adr[] = {
325+
{
326+
.adr = 0x000330025D132001ull,
327+
.num_endpoints = 1,
328+
.endpoints = &spk_r_endpoint,
329+
.name_prefix = "rt1320-1"
330+
}
331+
};
332+
324333
static const struct snd_soc_acpi_adr_device rt721_3_single_adr[] = {
325334
{
326335
.adr = 0x000330025d072101ull,
@@ -541,6 +550,20 @@ static const struct snd_soc_acpi_link_adr ptl_sdw_rt712_vb_l3_rt1320_l2[] = {
541550
{}
542551
};
543552

553+
static const struct snd_soc_acpi_link_adr ptl_sdw_rt712_vb_l3_rt1320_l3[] = {
554+
{
555+
.mask = BIT(3),
556+
.num_adr = ARRAY_SIZE(rt712_vb_3_group1_adr),
557+
.adr_d = rt712_vb_3_group1_adr,
558+
},
559+
{
560+
.mask = BIT(3),
561+
.num_adr = ARRAY_SIZE(rt1320_3_group1_adr),
562+
.adr_d = rt1320_3_group1_adr,
563+
},
564+
{}
565+
};
566+
544567
/* this table is used when there is no I2S codec present */
545568
struct snd_soc_acpi_mach snd_soc_acpi_intel_ptl_sdw_machines[] = {
546569
/* Order Priority: mockup > most links > most bit link-mask > alphabetical */
@@ -633,6 +656,14 @@ struct snd_soc_acpi_mach snd_soc_acpi_intel_ptl_sdw_machines[] = {
633656
.sof_tplg_filename = "sof-ptl-cs42l43-l3.tplg",
634657
.get_function_tplg_files = sof_sdw_get_tplg_files,
635658
},
659+
{
660+
.link_mask = BIT(3),
661+
.links = ptl_sdw_rt712_vb_l3_rt1320_l3,
662+
.drv_name = "sof_sdw",
663+
.machine_check = snd_soc_acpi_intel_sdca_is_device_rt712_vb,
664+
.sof_tplg_filename = "sof-ptl-rt712-l3-rt1320-l3.tplg",
665+
.get_function_tplg_files = sof_sdw_get_tplg_files,
666+
},
636667
{
637668
.link_mask = BIT(3),
638669
.links = ptl_rt721_l3,

0 commit comments

Comments
 (0)