From: Mark Brown Subject: Re: RFC: new TLV types for dB range with min/max Date: Fri, 19 Jun 2009 10:33:46 +0100 Message-ID: <20090619093345.GB5270@sirena.org.uk> References: Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from cassiel.sirena.org.uk (cassiel.sirena.org.uk [80.68.93.111]) by alsa0.perex.cz (Postfix) with ESMTP id 62ED8244B7 for ; Fri, 19 Jun 2009 11:33:52 +0200 (CEST) Content-Disposition: inline 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: Takashi Iwai Cc: alsa-devel@alsa-project.org List-Id: alsa-devel@alsa-project.org On Fri, Jun 19, 2009 at 09:47:05AM +0200, Takashi Iwai wrote: > Since the step size may have a rounding error, this can accumulate to > a significant amount at the max value. > A simple way to avoid this is to just give min and max values instead > of min and step values, and interpolate the middle. For that, I > create two new TLV types. This is a good idea - it is also helpful for some of the ASoC devices which have dB scales with steps with 3 decimal places of resolution, using this makes writing the driver a bit easier. Thanks for doing it.