Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

ASoC: amd: acp: add PX13 SoundWire machine link for rt721+tas2783x2

Add an ACP70 SoundWire machine entry for ASUS PX13
(HN7306EA/HN7306EAC) with rt721 and two TAS2783 amps on link1.

Describe rt721 with jack/DMIC endpoints on this platform and add
explicit left/right TAS2783 speaker endpoint mapping via name prefixes.

Signed-off-by: Hasun Park <hasunpark@gmail.com>
Link: https://patch.msgid.link/20260308151654.29059-3-hasunpark@gmail.com
Signed-off-by: Mark Brown <broonie@kernel.org>

authored by

Hasun Park and committed by
Mark Brown
399b6fd3 d0426510

+61
+61
sound/soc/amd/acp/amd-acp70-acpi-match.c
··· 69 69 }, 70 70 }; 71 71 72 + static const struct snd_soc_acpi_endpoint jack_dmic_endpoints[] = { 73 + /* Jack Endpoint */ 74 + { 75 + .num = 0, 76 + .aggregated = 0, 77 + .group_position = 0, 78 + .group_id = 0, 79 + }, 80 + /* DMIC Endpoint */ 81 + { 82 + /* 83 + * rt721 endpoint #2 maps to AIF3 (internal DMIC capture). 84 + * Endpoint #1 is AIF2 amp path and is handled by external amps 85 + * on this platform. 86 + */ 87 + .num = 2, 88 + .aggregated = 0, 89 + .group_position = 0, 90 + .group_id = 0, 91 + }, 92 + }; 93 + 72 94 static const struct snd_soc_acpi_adr_device rt712_vb_1_group1_adr[] = { 73 95 { 74 96 .adr = 0x000130025D071201ull, ··· 585 563 {} 586 564 }; 587 565 566 + static const struct snd_soc_acpi_adr_device rt721_l1u0_tas2783x2_l1u8b_adr[] = { 567 + { 568 + .adr = 0x000130025D072101ull, 569 + /* 570 + * On this platform speakers are provided by two TAS2783 amps. 571 + * Keep rt721 as UAJ + DMIC only. 572 + */ 573 + .num_endpoints = ARRAY_SIZE(jack_dmic_endpoints), 574 + .endpoints = jack_dmic_endpoints, 575 + .name_prefix = "rt721", 576 + }, 577 + { 578 + .adr = 0x0001380102000001ull, 579 + .num_endpoints = 1, 580 + .endpoints = &spk_l_endpoint, 581 + .name_prefix = "tas2783-1", 582 + }, 583 + { 584 + .adr = 0x00013B0102000001ull, 585 + .num_endpoints = 1, 586 + .endpoints = &spk_r_endpoint, 587 + .name_prefix = "tas2783-2", 588 + }, 589 + }; 590 + 591 + static const struct snd_soc_acpi_link_adr acp70_rt721_l1u0_tas2783x2_l1u8b[] = { 592 + { 593 + .mask = BIT(1), 594 + .num_adr = ARRAY_SIZE(rt721_l1u0_tas2783x2_l1u8b_adr), 595 + .adr_d = rt721_l1u0_tas2783x2_l1u8b_adr, 596 + }, 597 + {} 598 + }; 599 + 588 600 struct snd_soc_acpi_mach snd_soc_acpi_amd_acp70_sdw_machines[] = { 589 601 { 590 602 .link_mask = BIT(0) | BIT(1), ··· 704 648 .link_mask = BIT(1), 705 649 .links = acp70_alc712_vb_l1, 706 650 .machine_check = snd_soc_acpi_amd_sdca_is_device_rt712_vb, 651 + .drv_name = "amd_sdw", 652 + }, 653 + { 654 + .link_mask = BIT(1), 655 + .links = acp70_rt721_l1u0_tas2783x2_l1u8b, 707 656 .drv_name = "amd_sdw", 708 657 }, 709 658 {},