From: Takashi Iwai Subject: Re: [PATCH 0/4] alsabat: add noise detection Date: Wed, 08 Jun 2016 15:18:36 +0200 Message-ID: References: Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mx2.suse.de (mx2.suse.de [195.135.220.15]) by alsa0.perex.cz (Postfix) with ESMTP id 53BE4265A7F for ; Wed, 8 Jun 2016 15:18:36 +0200 (CEST) In-Reply-To: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: alsa-devel-bounces@alsa-project.org Sender: alsa-devel-bounces@alsa-project.org To: han.lu@intel.com Cc: liam.r.girdwood@linux.intel.com, alsa-devel@alsa-project.org List-Id: alsa-devel@alsa-project.org On Wed, 08 Jun 2016 21:42:45 +0200, han.lu@intel.com wrote: > > From: "Lu, Han" > > Add noise detection for alsabat. > Alsabat reports error when noise above threshold be detected. > Use either of the options below to designate the threshold. (e.g. > if the ratio of noise to signal is 5%, the snr is about 26dB.) > --snr-db > --snr-pc > > The noise detection is performed in time domain. On each period > of the sine wave being analyzed, alsabat substracts a clean sine > wave from the source, calculates the RMS value of the residual, > and compares the result with the threshold. At last, alsabat > returns the number of periods with noise above threshold. 0 is > returned when the source is clean. > > patch content: > 1. align the data type and process on float > 2. add a parameter for adjust_waveform() > 3. add a single channel sine wave generator > 4. add noise detection > > Lu, Han (4): > alsabat: align the data type on float > alsabat: add channels parameter for adjust_waveform() > alsabat: add a single channel sine wave generator > alsabat: add noise detection Applied all patches now. Thanks. Takashi