On Wed, Apr 27, 2022 at 04:48:25PM +0000, Charles Keepax wrote:
Yeah in my head snd_soc_suspend would have been called which would (assuming the DAI doesn't have ignore_suspend set) shut down the DAPM graph for the audio route, causing the runtime references to all be released and the CODEC to be suspended through runtime_pm. Not sure if I missed something there, and
Runtime suspend won't do anything beyond tracking the reference count when we're in the middle of system suspend IIRC, it won't actually call the operations.
that also allows for systems where the CODEC doesn't suspend during system suspend. That said guess there probably arn't any use-cases for that on wm8962 and I am more than happy to use the force_suspend ops if you are happy with it.
The other option would be to move the runtime PM stuff into the bias level configuration I guess.