Skip to content

Commit 9393bfb

Browse files
saba-kareembroonie
authored andcommitted
ASoC: amd: acp: add machine driver support for acp6.3 platform
add legacy machine driver support for acp6.3 based platform. Signed-off-by: Syed Saba Kareem <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Mark Brown <[email protected]>
1 parent c7bf915 commit 9393bfb

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

sound/soc/amd/acp/acp-mach-common.c

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1260,6 +1260,12 @@ static struct snd_soc_dai_link_component platform_rmb_component[] = {
12601260
}
12611261
};
12621262

1263+
static struct snd_soc_dai_link_component platform_acp63_component[] = {
1264+
{
1265+
.name = "acp_asoc_acp63.0",
1266+
}
1267+
};
1268+
12631269
static struct snd_soc_dai_link_component sof_component[] = {
12641270
{
12651271
.name = "0000:04:00.5",
@@ -1570,6 +1576,9 @@ int acp_legacy_dai_links_create(struct snd_soc_card *card)
15701576
if (drv_data->platform == REMBRANDT) {
15711577
links[i].platforms = platform_rmb_component;
15721578
links[i].num_platforms = ARRAY_SIZE(platform_rmb_component);
1579+
} else if (drv_data->platform == ACP63) {
1580+
links[i].platforms = platform_acp63_component;
1581+
links[i].num_platforms = ARRAY_SIZE(platform_acp63_component);
15731582
} else {
15741583
links[i].platforms = platform_component;
15751584
links[i].num_platforms = ARRAY_SIZE(platform_component);
@@ -1634,6 +1643,9 @@ int acp_legacy_dai_links_create(struct snd_soc_card *card)
16341643
if (drv_data->platform == REMBRANDT) {
16351644
links[i].platforms = platform_rmb_component;
16361645
links[i].num_platforms = ARRAY_SIZE(platform_rmb_component);
1646+
} else if (drv_data->platform == ACP63) {
1647+
links[i].platforms = platform_acp63_component;
1648+
links[i].num_platforms = ARRAY_SIZE(platform_acp63_component);
16371649
} else {
16381650
links[i].platforms = platform_component;
16391651
links[i].num_platforms = ARRAY_SIZE(platform_component);
@@ -1677,6 +1689,9 @@ int acp_legacy_dai_links_create(struct snd_soc_card *card)
16771689
if (drv_data->platform == REMBRANDT) {
16781690
links[i].platforms = platform_rmb_component;
16791691
links[i].num_platforms = ARRAY_SIZE(platform_rmb_component);
1692+
} else if (drv_data->platform == ACP63) {
1693+
links[i].platforms = platform_acp63_component;
1694+
links[i].num_platforms = ARRAY_SIZE(platform_acp63_component);
16801695
} else {
16811696
links[i].platforms = platform_component;
16821697
links[i].num_platforms = ARRAY_SIZE(platform_component);

sound/soc/amd/acp/acp-mach.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ enum codec_endpoints {
5353
enum platform_end_point {
5454
RENOIR = 0,
5555
REMBRANDT,
56+
ACP63,
5657
};
5758

5859
struct acp_mach_ops {

0 commit comments

Comments
 (0)