• Vijendar Mukunda's avatar
    ASoC: amd: ps: remove acp_reset flag · 3c697ced
    Vijendar Mukunda authored
    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: default avatarVijendar Mukunda <Vijendar.Mukunda@amd.com>
    Link: https://msgid.link/r/20240214104014.1144668-3-Vijendar.Mukunda@amd.comSigned-off-by: default avatarMark Brown <broonie@kernel.org>
    3c697ced
acp63.h 7.02 KB