diff options
author | Vijendar Mukunda <Vijendar.Mukunda@amd.com> | 2021-10-14 12:47:08 +0530 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2021-10-15 16:10:54 +0100 |
commit | 832a5cd2d3d9e195af2fe272999af8948383ce9b (patch) | |
tree | 52a1bf5a46c784430d4cfe54e3b46819add9a9f1 /sound/soc/amd/vangogh | |
parent | 4b19e4a77cc6baa0f840e8bae62ab974667f6207 (diff) | |
download | linux-stable-832a5cd2d3d9e195af2fe272999af8948383ce9b.tar.gz linux-stable-832a5cd2d3d9e195af2fe272999af8948383ce9b.tar.bz2 linux-stable-832a5cd2d3d9e195af2fe272999af8948383ce9b.zip |
ASoc: amd: create platform device for VG machine driver
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>
Diffstat (limited to 'sound/soc/amd/vangogh')
-rw-r--r-- | sound/soc/amd/vangogh/acp5x.h | 2 | ||||
-rw-r--r-- | sound/soc/amd/vangogh/pci-acp5x.c | 3 |
2 files changed, 4 insertions, 1 deletions
diff --git a/sound/soc/amd/vangogh/acp5x.h b/sound/soc/amd/vangogh/acp5x.h index a808635f9740..fe5e1fa98974 100644 --- a/sound/soc/amd/vangogh/acp5x.h +++ b/sound/soc/amd/vangogh/acp5x.h @@ -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 diff --git a/sound/soc/amd/vangogh/pci-acp5x.c b/sound/soc/amd/vangogh/pci-acp5x.c index a57b762d9f2e..2b6b9edc36e2 100644 --- a/sound/soc/amd/vangogh/pci-acp5x.c +++ b/sound/soc/amd/vangogh/pci-acp5x.c @@ -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]); |