Skip to content

Commit 804aaa9

Browse files
vijendarmukundabroonie
authored andcommitted
ASoC: amd: acp: add rt722 based soundwire machines
Add RT722 based soundwire machines for legacy(NO DSP) stack for acp 6.3 platform. Signed-off-by: Vijendar Mukunda <Vijendar.Mukunda@amd.com> Link: https://patch.msgid.link/20241113115223.3274868-2-Vijendar.Mukunda@amd.com Signed-off-by: Mark Brown <broonie@kernel.org>
1 parent add2332 commit 804aaa9

File tree

2 files changed

+50
-0
lines changed

2 files changed

+50
-0
lines changed

sound/soc/amd/acp/amd-acp63-acpi-match.c

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,45 @@ static const struct snd_soc_acpi_link_adr acp63_4_in_1_sdca[] = {
7373
{}
7474
};
7575

76+
static const struct snd_soc_acpi_endpoint rt722_endpoints[] = {
77+
{
78+
.num = 0,
79+
.aggregated = 0,
80+
.group_position = 0,
81+
.group_id = 0,
82+
},
83+
{
84+
.num = 1,
85+
.aggregated = 0,
86+
.group_position = 0,
87+
.group_id = 0,
88+
},
89+
{
90+
.num = 2,
91+
.aggregated = 0,
92+
.group_position = 0,
93+
.group_id = 0,
94+
},
95+
};
96+
97+
static const struct snd_soc_acpi_adr_device rt722_0_single_adr[] = {
98+
{
99+
.adr = 0x000030025d072201ull,
100+
.num_endpoints = ARRAY_SIZE(rt722_endpoints),
101+
.endpoints = rt722_endpoints,
102+
.name_prefix = "rt722"
103+
}
104+
};
105+
106+
static const struct snd_soc_acpi_link_adr acp63_rt722_only[] = {
107+
{
108+
.mask = BIT(0),
109+
.num_adr = ARRAY_SIZE(rt722_0_single_adr),
110+
.adr_d = rt722_0_single_adr,
111+
},
112+
{}
113+
};
114+
76115
struct snd_soc_acpi_mach snd_soc_acpi_amd_acp63_sof_sdw_machines[] = {
77116
{
78117
.link_mask = BIT(0) | BIT(1),
@@ -85,6 +124,16 @@ struct snd_soc_acpi_mach snd_soc_acpi_amd_acp63_sof_sdw_machines[] = {
85124
};
86125
EXPORT_SYMBOL(snd_soc_acpi_amd_acp63_sof_sdw_machines);
87126

127+
struct snd_soc_acpi_mach snd_soc_acpi_amd_acp63_sdw_machines[] = {
128+
{
129+
.link_mask = BIT(0),
130+
.links = acp63_rt722_only,
131+
.drv_name = "amd_sdw",
132+
},
133+
{},
134+
};
135+
EXPORT_SYMBOL(snd_soc_acpi_amd_acp63_sdw_machines);
136+
88137
MODULE_DESCRIPTION("AMD ACP6.3 tables and support for ACPI enumeration");
89138
MODULE_LICENSE("GPL");
90139
MODULE_AUTHOR("Vijendar.Mukunda@amd.com");

sound/soc/amd/mach-config.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ extern struct snd_soc_acpi_mach snd_soc_acpi_amd_sof_machines[];
2323
extern struct snd_soc_acpi_mach snd_soc_acpi_amd_rmb_sof_machines[];
2424
extern struct snd_soc_acpi_mach snd_soc_acpi_amd_vangogh_sof_machines[];
2525
extern struct snd_soc_acpi_mach snd_soc_acpi_amd_acp63_sof_machines[];
26+
extern struct snd_soc_acpi_mach snd_soc_acpi_amd_acp63_sdw_machines[];
2627
extern struct snd_soc_acpi_mach snd_soc_acpi_amd_acp63_sof_sdw_machines[];
2728
extern struct snd_soc_acpi_mach snd_soc_acpi_amd_acp70_sof_machines[];
2829

0 commit comments

Comments
 (0)