ASoC suspend/resume
Hi,
I'm trying to clean up spitz ASoC driver: I need to put some GPIO pins to low during suspend and restore them during resume. What is the most logical place to do that? I can't find any suitable suspend hook.
Signature · 2 lines
With best wishes Dmitry
Quoted 3 lines · Dmitry Baryshkov
I'm trying to clean up spitz ASoC driver: I need to put some GPIO pins to low during suspend and restore them during resume. What is the most logical place to do that? I can't find any suitable suspend hook.
The machine driver has suspend and resume callbacks, as well as a bias level callback which should be usable for the same purprose (force the GPIOs low when bias is off and set up normally otherwise). The suspend and resume hooks can run either before or after the main ASoC infrastructure suspends (the _pre and _post variants).