OSDN Git Service

ASoC: amd: ps: implement api to retrieve acp device config
authorVijendar Mukunda <Vijendar.Mukunda@amd.com>
Wed, 21 Dec 2022 17:28:48 +0000 (22:58 +0530)
committerMark Brown <broonie@kernel.org>
Sun, 25 Dec 2022 23:33:35 +0000 (23:33 +0000)
commit2cdabbde0c24bb76978d57856cba958b85584c32
tree4a7446040c79872deada7b8e2dec7c448370d2d4
parentc71f5fa07202849dc7b2f00980833b8752484601
ASoC: amd: ps: implement api to retrieve acp device config

Implement API to retrieve acp device config and calculate platform
device count and dev mask for platform device node creation.

Currently for DMIC configuration, mask and dev count are calculated.
Same api will be used to extend support for different ACP device
configurations.

Signed-off-by: Vijendar Mukunda <Vijendar.Mukunda@amd.com>
Link: https://lore.kernel.org/r/20221221172855.1618766-1-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