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 CC59B679E2 for ; Tue, 16 May 2006 22:27:17 +1000 (EST) Date: Tue, 16 May 2006 14:27:12 +0200 Message-ID: From: Takashi Iwai To: Johannes Berg Subject: Re: [Alsa-devel] [RFC] alsa integer control ranges In-Reply-To: <1147780945.29795.110.camel@johannes> References: <1147780945.29795.110.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 List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , At Tue, 16 May 2006 14:02:20 +0200, Johannes Berg wrote: > > Apparently all alsa userspace programs including alsamixer suck. Hence, > this patch is required to make them work properly. Why is it so hard to > do these additions/subtractions in the program or maybe even in the alsa > library? The alsa libraries already think they know better and mess up > all kinds of things. It's a pretty stupid question to ask why you are stupid :) 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. > What are your opinions on this? Should this be required? And if so, why > do we even have the value.integer.min when we can't use it anyway? Right now, the range 0-max would make your life easier, I guess. The min value is an API definition, and implemented and worked once. But no drivers used yet. So, there might be a breakage. It's of course to be fixed. Takashi