OSDN Git Service

ASoc: amd: create platform device for VG machine driver
authorVijendar Mukunda <Vijendar.Mukunda@amd.com>
Thu, 14 Oct 2021 07:17:08 +0000 (12:47 +0530)
committerMark Brown <broonie@kernel.org>
Fri, 15 Oct 2021 15:10:54 +0000 (16:10 +0100)
Create platform device for Vangogh machine driver.

Signed-off-by: Vijendar Mukunda <Vijendar.Mukunda@amd.com>
Link: https://lore.kernel.org/r/20211014071714.836410-1-Vijendar.Mukunda@amd.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/amd/vangogh/acp5x.h
sound/soc/amd/vangogh/pci-acp5x.c

index a808635..fe5e1fa 100644 (file)
@@ -23,7 +23,7 @@
 #define ACP_ERR_INTR_MASK      0x20000000
 #define ACP_EXT_INTR_STAT_CLEAR_MASK 0xFFFFFFFF
 
-#define ACP5x_DEVS 3
+#define ACP5x_DEVS 4
 #define        ACP5x_REG_START 0x1240000
 #define        ACP5x_REG_END   0x1250200
 #define ACP5x_I2STDM_REG_START 0x1242400
index a57b762..2b6b9ed 100644 (file)
@@ -213,6 +213,9 @@ static int snd_acp5x_probe(struct pci_dev *pci,
                pdevinfo[2].num_res = 1;
                pdevinfo[2].res = &adata->res[2];
 
+               pdevinfo[3].name = "acp5x_mach";
+               pdevinfo[3].id = 0;
+               pdevinfo[3].parent = &pci->dev;
                for (i = 0; i < ACP5x_DEVS; i++) {
                        adata->pdev[i] =
                                platform_device_register_full(&pdevinfo[i]);