[alsa-devel] Softvol only after device has opened

Ricard Wanderlof ricard.wanderlof at axis.com
Tue Jun 9 17:53:12 CEST 2015


On Tue, 9 Jun 2015, Takashi Iwai wrote:

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

Ok. Thanks!

/Ricard
-- 
Ricard Wolf Wanderlöf                           ricardw(at)axis.com
Axis Communications AB, Lund, Sweden            www.axis.com
Phone +46 46 272 2016                           Fax +46 46 13 61 30


More information about the Alsa-devel mailing list