[alsa-devel] question on snd_power_change_state()

Oliver Neukum oneukum at suse.de
Fri Mar 11 13:42:44 CET 2011


Am Freitag, 11. März 2011, 13:34:17 schrieb Takashi Iwai:
> At Fri, 11 Mar 2011 13:20:46 +0100,
> Oliver Neukum wrote:
> > 
> > Am Freitag, 11. März 2011, 13:15:28 schrieb Takashi Iwai:
> > > At Fri, 11 Mar 2011 13:12:17 +0100,
> > > Oliver Neukum wrote:
> > > > 
> > > > Hi,
> > > > 
> > > > will calling snd_power_change_state() reset all mixer settings?
> > > 
> > > No, it's a simple inline function defined in include/sound/core.h.
> > > 
> > > static inline void snd_power_change_state(struct snd_card *card, unsigned int state)
> > > {
> > > 	card->power_state = state;
> > > 	wake_up(&card->power_sleep);
> > > }
> > > 
> > > It's present mostly for historical reasons.
> > 
> > Is there a helper that will do that?
> 
> A helper for what?

A helper for restoring all mixer settings that a device has lost due to a loss
of power.

	Regards
		Oliver


More information about the Alsa-devel mailing list