[alsa-devel] Softvol only after device has opened

Clemens Ladisch clemens at ladisch.de
Tue Jun 9 14:39:07 CEST 2015


Ricard Wanderlof wrote:
> What I was getting at was that although I can't do:
>
> $ amixer sset Capture 192
>
> if Capture is defined by the softvol plugin, and I haven't opened the
> device prior to running amixer, however
>
> $ alsactl restore 0:
>
> works, assuming that I've saved the settings previously, even before the
> device is opened. I can understand that this is very useful and desired,
> but given that the underlying control does not yet exist, it puzzles me
> that it actually works.

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.


Regards,
Clemens


More information about the Alsa-devel mailing list