Skip to content
This repository was archived by the owner on Nov 8, 2023. It is now read-only.

Commit 3e0a99c

Browse files
macchianNorman Bintang
authored andcommitted
ANDROID: ASoC: Intel: common: add rt721_l3_rt1320_l3 support
This patch adds multi-lane support for the RT721 multi-function codec and the RT1320 amplifier when sharing SoundWire link 3. Bug: 443905714 Bug: 435094908 Test: run #cat /proc/asound/cards to check sound card is registered. Upstream-Task: 455997202 Link: thesofproject/linux#5577 Signed-off-by: Mac Chiang <[email protected]> Change-Id: I03a1bb4077523972f02407953a90cf586f5094c4
1 parent 39bcd71 commit 3e0a99c

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

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

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -363,6 +363,15 @@ static const struct snd_soc_acpi_adr_device rt721_3_single_adr[] = {
363363
}
364364
};
365365

366+
static const struct snd_soc_acpi_adr_device rt721_3_group1_adr[] = {
367+
{
368+
.adr = 0x000330025d072101ull,
369+
.num_endpoints = ARRAY_SIZE(jack_amp_g1_dmic_endpoints),
370+
.endpoints = jack_amp_g1_dmic_endpoints,
371+
.name_prefix = "rt721"
372+
}
373+
};
374+
366375
static const struct snd_soc_acpi_link_adr ptl_rt721_l3[] = {
367376
{
368377
.mask = BIT(3),
@@ -541,6 +550,20 @@ static const struct snd_soc_acpi_link_adr ptl_rt722_l0_rt1320_l23[] = {
541550
{}
542551
};
543552

553+
static const struct snd_soc_acpi_link_adr ptl_sdw_rt721_l3_rt1320_l3[] = {
554+
{
555+
.mask = BIT(3),
556+
.num_adr = ARRAY_SIZE(rt721_3_group1_adr),
557+
.adr_d = rt721_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
static const struct snd_soc_acpi_link_adr ptl_rvp[] = {
545568
{
546569
.mask = BIT(0),
@@ -743,6 +766,13 @@ struct snd_soc_acpi_mach snd_soc_acpi_intel_ptl_sdw_machines[] = {
743766
.sof_tplg_filename = "sof-ptl-rt712-l3-rt1320-l3.tplg",
744767
.get_function_tplg_files = sof_sdw_get_tplg_files,
745768
},
769+
{
770+
.link_mask = BIT(3),
771+
.links = ptl_sdw_rt721_l3_rt1320_l3,
772+
.drv_name = "sof_sdw",
773+
.sof_tplg_filename = "sof-ptl-rt721-l3-rt1320-l3.tplg",
774+
.get_function_tplg_files = sof_sdw_get_tplg_files,
775+
},
746776
{
747777
.link_mask = BIT(3),
748778
.links = ptl_rt721_l3,

0 commit comments

Comments
 (0)