lkml.org 
[lkml]   [2022]   [Aug]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH 11/13] ASoC: amd: create platform device for acp6.2 machine driver
Date
Create platform device for acp6.2 machine driver.

Signed-off-by: Syed Saba Kareem <Syed.SabaKareem@amd.com>
Signed-off-by: Vijendar Mukunda <Vijendar.Mukunda@amd.com>
---
sound/soc/amd/ps/acp62.h | 2 +-
sound/soc/amd/ps/pci-ps.c | 4 ++++
2 files changed, 5 insertions(+), 1 deletion(-)

diff --git a/sound/soc/amd/ps/acp62.h b/sound/soc/amd/ps/acp62.h
index c5b99e0b81fc..d6ac5781acf9 100644
--- a/sound/soc/amd/ps/acp62.h
+++ b/sound/soc/amd/ps/acp62.h
@@ -11,7 +11,7 @@
#define ACP62_PHY_BASE_ADDRESS 0x1240000
#define ACP6x_REG_START 0x1240000
#define ACP6x_REG_END 0x1250200
-#define ACP6x_DEVS 2
+#define ACP6x_DEVS 3
#define ACP6x_PDM_MODE 1

#define ACP_SOFT_RESET_SOFTRESET_AUDDONE_MASK 0x00010001
diff --git a/sound/soc/amd/ps/pci-ps.c b/sound/soc/amd/ps/pci-ps.c
index 7e2f68d9fc2c..3172db1b728b 100644
--- a/sound/soc/amd/ps/pci-ps.c
+++ b/sound/soc/amd/ps/pci-ps.c
@@ -237,6 +237,10 @@ static int snd_acp62_probe(struct pci_dev *pci,
pdevinfo[1].id = 0;
pdevinfo[1].parent = &pci->dev;

+ pdevinfo[2].name = "acp_ps_mach";
+ pdevinfo[2].id = 0;
+ pdevinfo[2].parent = &pci->dev;
+
for (index = 0; index < ACP6x_DEVS; index++) {
adata->pdev[index] =
platform_device_register_full(&pdevinfo[index]);
--
2.25.1
\
 
 \ /
  Last update: 2022-08-12 14:14    [W:0.029 / U:0.408 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site