Commit 9393bfb4 authored by Syed Saba Kareem's avatar Syed Saba Kareem Committed by Mark Brown

ASoC: amd: acp: add machine driver support for acp6.3 platform

add legacy machine driver support for acp6.3 based platform.
Signed-off-by: default avatarSyed Saba Kareem <Syed.SabaKareem@amd.com>
Link: https://lore.kernel.org/r/20231021145110.478744-4-Syed.SabaKareem@amd.comSigned-off-by: default avatarMark Brown <broonie@kernel.org>
parent c7bf9156
...@@ -1260,6 +1260,12 @@ static struct snd_soc_dai_link_component platform_rmb_component[] = { ...@@ -1260,6 +1260,12 @@ static struct snd_soc_dai_link_component platform_rmb_component[] = {
} }
}; };
static struct snd_soc_dai_link_component platform_acp63_component[] = {
{
.name = "acp_asoc_acp63.0",
}
};
static struct snd_soc_dai_link_component sof_component[] = { static struct snd_soc_dai_link_component sof_component[] = {
{ {
.name = "0000:04:00.5", .name = "0000:04:00.5",
...@@ -1570,6 +1576,9 @@ int acp_legacy_dai_links_create(struct snd_soc_card *card) ...@@ -1570,6 +1576,9 @@ int acp_legacy_dai_links_create(struct snd_soc_card *card)
if (drv_data->platform == REMBRANDT) { if (drv_data->platform == REMBRANDT) {
links[i].platforms = platform_rmb_component; links[i].platforms = platform_rmb_component;
links[i].num_platforms = ARRAY_SIZE(platform_rmb_component); links[i].num_platforms = ARRAY_SIZE(platform_rmb_component);
} else if (drv_data->platform == ACP63) {
links[i].platforms = platform_acp63_component;
links[i].num_platforms = ARRAY_SIZE(platform_acp63_component);
} else { } else {
links[i].platforms = platform_component; links[i].platforms = platform_component;
links[i].num_platforms = ARRAY_SIZE(platform_component); links[i].num_platforms = ARRAY_SIZE(platform_component);
...@@ -1634,6 +1643,9 @@ int acp_legacy_dai_links_create(struct snd_soc_card *card) ...@@ -1634,6 +1643,9 @@ int acp_legacy_dai_links_create(struct snd_soc_card *card)
if (drv_data->platform == REMBRANDT) { if (drv_data->platform == REMBRANDT) {
links[i].platforms = platform_rmb_component; links[i].platforms = platform_rmb_component;
links[i].num_platforms = ARRAY_SIZE(platform_rmb_component); links[i].num_platforms = ARRAY_SIZE(platform_rmb_component);
} else if (drv_data->platform == ACP63) {
links[i].platforms = platform_acp63_component;
links[i].num_platforms = ARRAY_SIZE(platform_acp63_component);
} else { } else {
links[i].platforms = platform_component; links[i].platforms = platform_component;
links[i].num_platforms = ARRAY_SIZE(platform_component); links[i].num_platforms = ARRAY_SIZE(platform_component);
...@@ -1677,6 +1689,9 @@ int acp_legacy_dai_links_create(struct snd_soc_card *card) ...@@ -1677,6 +1689,9 @@ int acp_legacy_dai_links_create(struct snd_soc_card *card)
if (drv_data->platform == REMBRANDT) { if (drv_data->platform == REMBRANDT) {
links[i].platforms = platform_rmb_component; links[i].platforms = platform_rmb_component;
links[i].num_platforms = ARRAY_SIZE(platform_rmb_component); links[i].num_platforms = ARRAY_SIZE(platform_rmb_component);
} else if (drv_data->platform == ACP63) {
links[i].platforms = platform_acp63_component;
links[i].num_platforms = ARRAY_SIZE(platform_acp63_component);
} else { } else {
links[i].platforms = platform_component; links[i].platforms = platform_component;
links[i].num_platforms = ARRAY_SIZE(platform_component); links[i].num_platforms = ARRAY_SIZE(platform_component);
......
...@@ -53,6 +53,7 @@ enum codec_endpoints { ...@@ -53,6 +53,7 @@ enum codec_endpoints {
enum platform_end_point { enum platform_end_point {
RENOIR = 0, RENOIR = 0,
REMBRANDT, REMBRANDT,
ACP63,
}; };
struct acp_mach_ops { struct acp_mach_ops {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment