OSDN Git Service

ASoC: amd: ps: update dev index value in irq handler
authorVijendar Mukunda <Vijendar.Mukunda@amd.com>
Wed, 21 Dec 2022 17:28:50 +0000 (22:58 +0530)
committerMark Brown <broonie@kernel.org>
Sun, 25 Dec 2022 23:33:37 +0000 (23:33 +0000)
commit9d327a4443bffe8d48acc6a31c0198f251fca08b
tree22588abcbee5c7edd5b42c3259b676257e658256
parent1d325cdaf7a2747df42b43eed8b3de2e2d6c69bb
ASoC: amd: ps: update dev index value in irq handler

Instead of using hard coded index value for platform device index,
retrieve the device index based on platform devices created.
In PDM config case, ACP PCI driver retrieves dev index from
pdm_dev_index variable.
This will avoid overhead when multiple endpoint combinations
support is added later.
platform device index will vary based on audio endpoint
configuration.

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