From: Oliver Neukum <oneukum@suse.de>
To: Takashi Iwai <tiwai@suse.de>
Cc: alsa-devel@alsa-project.org
Subject: Re: question on snd_power_change_state()
Date: Fri, 11 Mar 2011 13:42:44 +0100 [thread overview]
Message-ID: <201103111342.44722.oneukum@suse.de> (raw)
In-Reply-To: <s5hmxl1kf92.wl%tiwai@suse.de>
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
_______________________________________________
Alsa-devel mailing list
Alsa-devel@alsa-project.org
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel
next prev parent reply other threads:[~2011-03-11 12:42 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-03-11 12:12 question on snd_power_change_state() Oliver Neukum
2011-03-11 12:15 ` Takashi Iwai
2011-03-11 12:20 ` Oliver Neukum
2011-03-11 12:34 ` Takashi Iwai
2011-03-11 12:42 ` Oliver Neukum [this message]
2011-03-11 13:13 ` Takashi Iwai
2011-03-11 13:53 ` Mark Brown
2011-03-11 13:56 ` Takashi Iwai
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=201103111342.44722.oneukum@suse.de \
--to=oneukum@suse.de \
--cc=alsa-devel@alsa-project.org \
--cc=tiwai@suse.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.