[alsa-devel] Softvol only after device has opened

Clemens Ladisch clemens at ladisch.de
Tue Jun 9 13:52:44 CEST 2015


Ricard Wanderlof wrote:
> One thing though, the 'softvol' plugin very correctly creates a mixer
> control and it all works fine, but only after the device has been opened.
> Before that the mixer control doesn't seem to exist, which means that we
> cannot adjust the gain until the device is opened by some application.

Before a device using a plugin is opened, no code from that plugin is
run.

Anyway, softvol mixer controls can be saved and restored with the usual
"alsactl store" and "alsactl restore" mechanism.  If you do not want to
save all mixer controls, or if your system does not have nonvolatile
storage, create a file containing only that control and tell alsactl to
restore from it.


Regards,
Clemens


More information about the Alsa-devel mailing list