ASoC: amd: ps: create platform devices based on acp config
authorVijendar Mukunda <Vijendar.Mukunda@amd.com>
Mon, 12 Jun 2023 09:58:55 +0000 (15:28 +0530)
committerMark Brown <broonie@kernel.org>
Tue, 20 Jun 2023 22:30:25 +0000 (23:30 +0100)
commitd1351c30ac8a6cf61b0bbe9fcbc8d2851cd44f3c
tree247bbdcad60bd3ca738e053068f3676343bc8710
parent0a08778126284481c300336f1ba3d7b1906851a5
ASoC: amd: ps: create platform devices based on acp config

Based on ACP pin configuration and scanning child devices
under ACP pci device ACPI scope, platform device configuration
(pdev_config) and platform device count(pdev_count) will be
calculated.

Using pdev_config and pdev_count values, ACP PCI driver will
create platform devices for Pink Sardine platform.

Signed-off-by: Vijendar Mukunda <Vijendar.Mukunda@amd.com>
Link: https://lore.kernel.org/r/20230612095903.2113464-2-Vijendar.Mukunda@amd.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/amd/ps/acp63.h
sound/soc/amd/ps/pci-ps.c