ASoC: amd: ps: remove acp_reset flag
authorVijendar Mukunda <Vijendar.Mukunda@amd.com>
Wed, 14 Feb 2024 10:40:03 +0000 (16:10 +0530)
committerMark Brown <broonie@kernel.org>
Mon, 19 Feb 2024 17:02:13 +0000 (17:02 +0000)
commit3c697ced399cac295c34c9611f05d04f4c951aa9
tree17490061caefee588817046a30047dc2ff6d94fd
parenteaf825037d6df89811d43391be920bf6ad731463
ASoC: amd: ps: remove acp_reset flag

The earlier acp_reset flag is set to true in two instances as mentioned
below.
1. When active SoundWire manager instances power mode is set to
Power off mode when SoundWire configuration is selected.
2. For other acp configurations

As code being refactored and common function being used for scanning
SoundWire controller, acp_reset flag update logic is dropped.

Instead of it, check the SoundWire manager instance enable state, based on
it update sdw_en_stat flag which will be used to apply ACP init/de-init
sequence during suspend/resume callbacks based on flag set value when
SoundWire configuration is selected.
For other acp configurations, acp init/de-init will be called by default.

Refactor existing pm ops logic for SoundWire configuration and use
sdw_en_stat flag for invoking acp init/de-init sequence.

Signed-off-by: Vijendar Mukunda <Vijendar.Mukunda@amd.com>
Link: https://msgid.link/r/20240214104014.1144668-3-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