Skip to content

Commit

Permalink
ASoC: amd: create platform device for acp6x machine driver
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Vijendar Mukunda authored and Mark Brown committed Oct 18, 2021
1 parent 89728d9 commit 058dfdf
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion sound/soc/amd/yc/acp6x.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 4 additions & 0 deletions sound/soc/amd/yc/pci-acp6x.c
Original file line number Diff line number Diff line change
Expand Up @@ -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]);
Expand Down

0 comments on commit 058dfdf

Please sign in to comment.