12 Aug
2008
12 Aug
'08
4:36 p.m.
On Tue, Aug 12, 2008 at 02:22:27PM +0000, Dmitry Baryshkov wrote:
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).