Skip to content

Commit 2f94e6e

Browse files
macchianranj063
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 <mac.chiang@intel.com>
1 parent f6cbfb4 commit 2f94e6e

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,
@@ -540,6 +549,20 @@ static const struct snd_soc_acpi_link_adr ptl_sdw_rt712_vb_l3_rt1320_l2[] = {
540549
{}
541550
};
542551

552+
static const struct snd_soc_acpi_link_adr ptl_sdw_rt712_vb_l3_rt1320_l3[] = {
553+
{
554+
.mask = BIT(3),
555+
.num_adr = ARRAY_SIZE(rt712_vb_3_group1_adr),
556+
.adr_d = rt712_vb_3_group1_adr,
557+
},
558+
{
559+
.mask = BIT(3),
560+
.num_adr = ARRAY_SIZE(rt1320_3_group1_adr),
561+
.adr_d = rt1320_3_group1_adr,
562+
},
563+
{}
564+
};
565+
543566
/* this table is used when there is no I2S codec present */
544567
struct snd_soc_acpi_mach snd_soc_acpi_intel_ptl_sdw_machines[] = {
545568
/* Order Priority: mockup > most links > most bit link-mask > alphabetical */
@@ -605,6 +628,14 @@ struct snd_soc_acpi_mach snd_soc_acpi_intel_ptl_sdw_machines[] = {
605628
.sof_tplg_filename = "sof-ptl-rt712-l3-rt1320-l2.tplg",
606629
.get_function_tplg_files = sof_sdw_get_tplg_files,
607630
},
631+
{
632+
.link_mask = BIT(3),
633+
.links = ptl_sdw_rt712_vb_l3_rt1320_l3,
634+
.drv_name = "sof_sdw",
635+
.machine_check = snd_soc_acpi_intel_sdca_is_device_rt712_vb,
636+
.sof_tplg_filename = "sof-ptl-rt712-l3-rt1320-l3.tplg",
637+
.get_function_tplg_files = sof_sdw_get_tplg_files,
638+
},
608639
{
609640
.link_mask = BIT(0),
610641
.links = ptl_rvp,

0 commit comments

Comments
 (0)