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 14:39:07 +0200 Message-ID: <5576DE6B.4050301@ladisch.de> References: <5576D38C.4030907@ladisch.de> <5576DA39.7090105@ladisch.de> 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 80D4C26528B for ; Tue, 9 Jun 2015 14:39:09 +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 Cc: "alsa-devel@alsa-project.org" List-Id: alsa-devel@alsa-project.org 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