From: Takashi Iwai Subject: Re: [RFC] Initialize volumes of HD-audio slave ctls Date: Fri, 09 Mar 2012 07:43:27 +0100 Message-ID: References: Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mx2.suse.de (cantor2.suse.de [195.135.220.15]) by alsa0.perex.cz (Postfix) with ESMTP id 88D8B10BC2E for ; Fri, 9 Mar 2012 07:43:29 +0100 (CET) In-Reply-To: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: alsa-devel-bounces@alsa-project.org Errors-To: alsa-devel-bounces@alsa-project.org To: Raymond Yau Cc: alsa-devel@alsa-project.org List-Id: alsa-devel@alsa-project.org At Fri, 9 Mar 2012 07:04:23 +0800, Raymond Yau wrote: > > 2012/3/8, Takashi Iwai : > > Hi, > > > > the patch below is an attempt to initialize the volume / mutes of > > slave controls (such as "Headphone", "Speaker") with vmaster in > > HD-audio, so that the sound can come out only by changing the master > > volume/mute. > > > > We have thought that such initializations could be done well in > > alsactl init, but it seems that not everyone installs the latest and > > greatest alsactl, and there is always a risk that any new controls may > > be added before alsactl is updated and released. Since the master > > volume is set muted, the risk by this change should be low. > > > > patch_cirrus.c still doesn't support this because it's handling > > vmaster by itself, but it can be fixed later, too. > > > > If anyone has a concern by this, please let me know. > > > > Can you explain the dB calculation of the volume controls when there > is a "virtual master" ? > > The Documentation only mention that all the slaves must have the same dB range Well, more exactly, it'd work if the volume step is the same and the volume range of the first slave covers the all range. Takashi