ASoC: amd: ps: add acp_reset flag check in acp pci driver pm ops.
authorVijendar Mukunda <Vijendar.Mukunda@amd.com>
Mon, 12 Jun 2023 09:59:03 +0000 (15:29 +0530)
committerMark Brown <broonie@kernel.org>
Tue, 20 Jun 2023 22:30:32 +0000 (23:30 +0100)
commit198c93e2fc0b74ae520393118d7cb02762c04bf3
treea9075b3b8f3aa88c9311f20bdc7317ed7deb3e30
parent6e8f7cb4cbae8e2b03190d26674a14be22d7df53
ASoC: amd: ps: add acp_reset flag check in acp pci driver pm ops.

AMD SoundWire manager supports different power modes.
acp_reset flag will be set to false only when SoundWire manager power
mode is selected as ClockStop Mode. For rest of the combinations
(ACP PDM + SDW), acp_reset flag will be set to true.
When acp_reset flag is set, acp de-init and acp init sequence should
be invoked during suspend/resume callbacks.

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