* question on snd_power_change_state()
@ 2011-03-11 12:12 Oliver Neukum
2011-03-11 12:15 ` Takashi Iwai
0 siblings, 1 reply; 8+ messages in thread
From: Oliver Neukum @ 2011-03-11 12:12 UTC (permalink / raw)
To: alsa-devel, Takashi Iwai
Hi,
will calling snd_power_change_state() reset all mixer settings?
Regards
Oliver
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: question on snd_power_change_state()
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
0 siblings, 1 reply; 8+ messages in thread
From: Takashi Iwai @ 2011-03-11 12:15 UTC (permalink / raw)
To: Oliver Neukum; +Cc: alsa-devel
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.
Takashi
^ permalink raw reply [flat|nested] 8+ messages in thread* Re: question on snd_power_change_state()
2011-03-11 12:15 ` Takashi Iwai
@ 2011-03-11 12:20 ` Oliver Neukum
2011-03-11 12:34 ` Takashi Iwai
0 siblings, 1 reply; 8+ messages in thread
From: Oliver Neukum @ 2011-03-11 12:20 UTC (permalink / raw)
To: Takashi Iwai; +Cc: alsa-devel
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?
Regards
Oliver
^ permalink raw reply [flat|nested] 8+ messages in thread* Re: question on snd_power_change_state()
2011-03-11 12:20 ` Oliver Neukum
@ 2011-03-11 12:34 ` Takashi Iwai
2011-03-11 12:42 ` Oliver Neukum
0 siblings, 1 reply; 8+ messages in thread
From: Takashi Iwai @ 2011-03-11 12:34 UTC (permalink / raw)
To: Oliver Neukum; +Cc: alsa-devel
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?
Takashi
_______________________________________________
Alsa-devel mailing list
Alsa-devel@alsa-project.org
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel
^ permalink raw reply [flat|nested] 8+ messages in thread* Re: question on snd_power_change_state()
2011-03-11 12:34 ` Takashi Iwai
@ 2011-03-11 12:42 ` Oliver Neukum
2011-03-11 13:13 ` Takashi Iwai
0 siblings, 1 reply; 8+ messages in thread
From: Oliver Neukum @ 2011-03-11 12:42 UTC (permalink / raw)
To: Takashi Iwai; +Cc: alsa-devel
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
^ permalink raw reply [flat|nested] 8+ messages in thread* Re: question on snd_power_change_state()
2011-03-11 12:42 ` Oliver Neukum
@ 2011-03-11 13:13 ` Takashi Iwai
2011-03-11 13:53 ` Mark Brown
0 siblings, 1 reply; 8+ messages in thread
From: Takashi Iwai @ 2011-03-11 13:13 UTC (permalink / raw)
To: Oliver Neukum; +Cc: alsa-devel
At Fri, 11 Mar 2011 13:42:44 +0100,
Oliver Neukum wrote:
>
> 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.
No. It's driver-specific.
Takashi
_______________________________________________
Alsa-devel mailing list
Alsa-devel@alsa-project.org
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel
^ permalink raw reply [flat|nested] 8+ messages in thread* Re: question on snd_power_change_state()
2011-03-11 13:13 ` Takashi Iwai
@ 2011-03-11 13:53 ` Mark Brown
2011-03-11 13:56 ` Takashi Iwai
0 siblings, 1 reply; 8+ messages in thread
From: Mark Brown @ 2011-03-11 13:53 UTC (permalink / raw)
To: Takashi Iwai; +Cc: Oliver Neukum, alsa-devel
On Fri, Mar 11, 2011 at 02:13:12PM +0100, Takashi Iwai wrote:
> Oliver Neukum wrote:
> > A helper for restoring all mixer settings that a device has lost due to a loss
> > of power.
> No. It's driver-specific.
If you're working within ASoC the register cache code has support for
syncing back to hardware.
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: question on snd_power_change_state()
2011-03-11 13:53 ` Mark Brown
@ 2011-03-11 13:56 ` Takashi Iwai
0 siblings, 0 replies; 8+ messages in thread
From: Takashi Iwai @ 2011-03-11 13:56 UTC (permalink / raw)
To: Mark Brown; +Cc: Oliver Neukum, alsa-devel
At Fri, 11 Mar 2011 13:53:13 +0000,
Mark Brown wrote:
>
> On Fri, Mar 11, 2011 at 02:13:12PM +0100, Takashi Iwai wrote:
> > Oliver Neukum wrote:
>
> > > A helper for restoring all mixer settings that a device has lost due to a loss
> > > of power.
>
> > No. It's driver-specific.
>
> If you're working within ASoC the register cache code has support for
> syncing back to hardware.
Right.
But usb-audio has no register (not only it doesn't using ASoC :)
Takashi
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2011-03-11 13:57 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
2011-03-11 13:13 ` Takashi Iwai
2011-03-11 13:53 ` Mark Brown
2011-03-11 13:56 ` Takashi Iwai
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.