]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
ASoC: amd: create platform device for acp6x machine driver
authorVijendar Mukunda <Vijendar.Mukunda@amd.com>
Mon, 18 Oct 2021 11:20:42 +0000 (16:50 +0530)
committerMark Brown <broonie@kernel.org>
Mon, 18 Oct 2021 20:11:45 +0000 (21:11 +0100)
Create platform device for acp6x machine driver.

Signed-off-by: Vijendar Mukunda <Vijendar.Mukunda@amd.com>
Link: https://lore.kernel.org/r/20211018112044.1705805-12-Vijendar.Mukunda@amd.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/amd/yc/acp6x.h
sound/soc/amd/yc/pci-acp6x.c

index b0d3f6a9d0ce4f23c8d0c35cabf7ccd3e387db04..74b596e6807ade82e42900861ed7655c4b16abbe 100644 (file)
@@ -11,7 +11,7 @@
 #define ACP6x_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
index cf02c542cf88d2be02a73d2b7d3475fd58d03e5a..957eeb6fb8e379d7fa8b821120d52ac5d4d0726c 100644 (file)
@@ -223,6 +223,10 @@ static int snd_acp6x_probe(struct pci_dev *pci,
                pdevinfo[1].id = 0;
                pdevinfo[1].parent = &pci->dev;
 
+               pdevinfo[2].name = "acp_yc_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]);