[alsa-devel] Softvol only after device has opened
Takashi Iwai
tiwai at suse.de
Tue Jun 9 16:51:14 CEST 2015
At Tue, 9 Jun 2015 16:45:32 +0200,
Ricard Wanderlof wrote:
>
>
> On Tue, 9 Jun 2015, Takashi Iwai wrote:
>
> > > > Have a look at /var/lib/asound.state. "alsactl store" marks any user-
> > > > space controls; when "alsactl restore" sees this flag, it will explicitly
> > > > recreate the control.
> > >
> > > And there is no other way to recreate the control using an application
> > > than to use alsactl then?
> >
> > There is other way, of course. It's no magic. alsactl just creates a
> > user-space control element using the normal API.
>
> Yes, of course that's doable, I was wondering if there's some other
> application that I don't know about that could do it. I.e. if there's a
> startup script that normally uses amixer to set up default settings, is it
> possible to add something to that script rather than to write a separate
> application to create the user control, which of course is doable too.
Just open PCM once and close. That should suffice :)
Other than that, an easy way is to run alsactl restore with a snippet
of user-space ctl element definition as Clemens suggested.
Takashi
More information about the Alsa-devel
mailing list