ASoC: amd: acp: add machine driver support for acp6.3 platform
authorSyed Saba Kareem <Syed.SabaKareem@amd.com>
Sat, 21 Oct 2023 14:50:45 +0000 (20:20 +0530)
committerMark Brown <broonie@kernel.org>
Wed, 25 Oct 2023 16:21:46 +0000 (17:21 +0100)
add legacy machine driver support for acp6.3 based platform.

Signed-off-by: Syed Saba Kareem <Syed.SabaKareem@amd.com>
Link: https://lore.kernel.org/r/20231021145110.478744-4-Syed.SabaKareem@amd.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/amd/acp/acp-mach-common.c
sound/soc/amd/acp/acp-mach.h

index 9def77bfc608dc19b8c3953dffc27288bf01121e..88e91af475324d5e637e3e52312a736b2ccf6731 100644 (file)
@@ -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[] = {
        {
                 .name = "0000:04:00.5",
@@ -1570,6 +1576,9 @@ int acp_legacy_dai_links_create(struct snd_soc_card *card)
                if (drv_data->platform == REMBRANDT) {
                        links[i].platforms = 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 {
                        links[i].platforms = 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)
                if (drv_data->platform == REMBRANDT) {
                        links[i].platforms = 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 {
                        links[i].platforms = 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)
                if (drv_data->platform == REMBRANDT) {
                        links[i].platforms = 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 {
                        links[i].platforms = platform_component;
                        links[i].num_platforms = ARRAY_SIZE(platform_component);
index b0a3f6bd172f8efd1b4da7a6e0fdaa9314851e18..69db61f12eca4be471dfcb1ba98f3ece11fdcce4 100644 (file)
@@ -53,6 +53,7 @@ enum codec_endpoints {
 enum platform_end_point {
        RENOIR = 0,
        REMBRANDT,
+       ACP63,
 };
 
 struct acp_mach_ops {