From: Takashi Iwai Subject: Re: arecord peak meter for S24_3 format Date: Mon, 10 Oct 2005 14:53:28 +0200 Message-ID: References: <20051008143431.GA7457@palantir8> <20051008170557.GA7723@palantir8> Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII Return-path: In-Reply-To: <20051008170557.GA7723@palantir8> 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: Martin Habets Cc: alsa-devel@lists.sourceforge.net List-Id: alsa-devel@alsa-project.org At Sat, 8 Oct 2005 18:05:57 +0100, Martin Habets wrote: > > Managed to do some more testing with the ua-25 in S16_LE mode and > with plughw. Seems the 16 and 32 bit code was also not working properly. > The patch below fixes these as well, plus some more cleanup in the 24 > bit code. > > It is still not correct calulating the peak for any unsigned format, > but I can't be bothered about that. My guess is the code would become > more complicated. > Also, S24_[BL]E (24 bits in 4 bytes) is not working correctly as the > sign bit is not handled in the 32 bit code. I could fix this if people > feel it's important. > > So please review the patch below, and apply if you feel its okay. Thanks, I applied it to CVS now (with a minor modification for gettext). Takashi ------------------------------------------------------- This SF.Net email is sponsored by: Power Architecture Resource Center: Free content, downloads, discussions, and more. http://solutions.newsforge.com/ibmarch.tmpl