Return-Path: Received: from mx2.suse.de (mx2.suse.de [195.135.220.15]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "mx2.suse.de", Issuer "Thawte Premium Server CA" (verified OK)) by ozlabs.org (Postfix) with ESMTP id B3F31679F7 for ; Wed, 17 May 2006 22:37:38 +1000 (EST) Date: Wed, 17 May 2006 14:37:33 +0200 Message-ID: From: Takashi Iwai To: Johannes Berg Subject: Re: [Alsa-devel] [RFC] alsa integer control ranges In-Reply-To: <1147868274.15507.6.camel@johannes> References: <1147780945.29795.110.camel@johannes> <1147868274.15507.6.camel@johannes> MIME-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII Cc: linuxppc-dev list , ALSA development , Benjamin Berg List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , At Wed, 17 May 2006 14:17:54 +0200, Johannes Berg wrote: > > On Tue, 2006-05-16 at 14:27 +0200, Takashi Iwai wrote: > > > I don't think it's alsa-lib that prevents the negative or non-zero > > integer range. The fact amixer works implies that it's an > > app-specific bug. But I'm not 100% sure and need more > > inside-looking. > > Basically, I think what I'm saying is: "why doesn't alsa-lib shift the > range to start at zero?" > It already does so many manipulations, that one wouldn't hurt... True, but then it's a workaround only for your driver right now :) The API clearly defines the non-zero minimum value, so manipulating it in alsa-lib sounds self-inconsistent. Takashi