From: Takashi Iwai Subject: Re: [PATCH] Add support for gain in softvol plugin Date: Wed, 09 May 2007 14:46:59 +0200 Message-ID: References: <463A33D8.3090907@embeddedalley.com> <463A6100.3070708@embeddedalley.com> <463B5EFC.6080801@embeddedalley.com> <463B6E5C.70802@embeddedalley.com> 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 mx1.suse.de (cantor.suse.de [195.135.220.2]) by alsa0.perex.cz (Postfix) with ESMTP id 67E4B24446 for ; Wed, 9 May 2007 14:47:04 +0200 (CEST) In-Reply-To: <463B6E5C.70802@embeddedalley.com> 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: Steve Longerbeam Cc: alsa-devel@alsa-project.org, Jaroslav Kysela List-Id: alsa-devel@alsa-project.org At Fri, 04 May 2007 10:33:16 -0700, Steve Longerbeam wrote: > > Steve Longerbeam wrote: > > Jaroslav Kysela wrote: > >> > >> > >> Please, resend your patch with this modification. Thanks. > >> > > > > ok, here it is again, with CARD/DEV defaults moved out of alsa.conf > > and into dsnoop_softvol.conf. > > > > I realized I wasn't handling max_dB < 0 (svol->zero_dB_val = 0) in all > cases. > > Patch attached again along with an interdiff from my last patch. Thanks for the patch. Now I checked this thread. Some suggestions: - "Capture SoftVol" doesn't sound like a valid mixer name. "Digital Capture Volume" would be more suitable, IMO. - The range from -30 to 40dB seems too big. - We don't need a new definition of dsnoop_softvol PCM there as it's specific to HDA-Intel right now. Let's define locally like: # default with dmix+softvol & dsnoop HDA-Intel.pcm.default { @args [ CARD ] @args.CARD { type string } type asym playback.pcm { ... } capture.pcm { type plug slave.pcm { type softvol slave.pcm { @func concat strings [ "dsnoop:" $CARD ] } control { name "Digital Capture Volume" card $CARD } min_dB -30.0 max_dB 40.0 } } } Takashi