[alsa-devel] ASoC suspend/resume

Mark Brown broonie at sirena.org.uk
Tue Aug 12 16:36:54 CEST 2008

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).

More information about the Alsa-devel mailing list