9 Jun
2015
9 Jun
'15
1:52 p.m.
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