From mboxrd@z Thu Jan 1 00:00:00 1970 From: Clemens Ladisch Subject: Re: Softvol only after device has opened Date: Tue, 09 Jun 2015 13:52:44 +0200 Message-ID: <5576D38C.4030907@ladisch.de> References: Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from dehamd003.servertools24.de (dehamd003.servertools24.de [31.47.254.18]) by alsa0.perex.cz (Postfix) with ESMTP id E6A8E26528B for ; Tue, 9 Jun 2015 13:52:46 +0200 (CEST) In-Reply-To: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: alsa-devel-bounces@alsa-project.org Sender: alsa-devel-bounces@alsa-project.org To: Ricard Wanderlof , alsa-devel@alsa-project.org List-Id: alsa-devel@alsa-project.org 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