From mboxrd@z Thu Jan 1 00:00:00 1970 From: Liam Girdwood Subject: Re: [PATCH] Adds dB gain to alsa-driver, alsa-lib. Date: Fri, 16 Dec 2005 14:55:18 +0000 Message-ID: <1134744918.22774.62.camel@cearnarfon> References: <43A1B744.2050703@superbug.co.uk> <43A1C7F5.6070307@superbug.co.uk> <43A29B2A.1000406@superbug.co.uk> <43A2B669.1080602@superbug.co.uk> <43A2C57F.6020503@superbug.co.uk> Mime-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: Sender: alsa-devel-admin@lists.sourceforge.net Errors-To: alsa-devel-admin@lists.sourceforge.net List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , List-Archive: To: Jaroslav Kysela Cc: Takashi Iwai , James Courtier-Dutton , alsa-devel List-Id: alsa-devel@alsa-project.org On Fri, 2005-12-16 at 15:11 +0100, Jaroslav Kysela wrote: > On Fri, 16 Dec 2005, Takashi Iwai wrote: > > > The trick is to define "step". Then min/max can be usually within > > 8 bits. I recommend you to take a look at HD-audio specification, for > > example. > > Just short note: Wouldn't be better to use a RPN expression to describe dB > <-> raw conversions like rrdtool uses? Just idea (of course that everybody > tells me that it's overkill). > I think it might just be overkill :) as whoever is writing the driver code will probably just lift the values from the codec data sheet. The data sheets I've seen typically just specify the dB range and step size. Liam ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click