[alsa-devel] Softvol only after device has opened

Ricard Wanderlof ricard.wanderlof at axis.com
Tue Jun 9 14:19:18 CEST 2015


On Tue, 9 Jun 2015, Clemens Ladisch wrote:

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

Can "alsactl restore" be run before the device is opened then?

/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