From: Takashi Iwai Subject: Re: [PATCH] alsabat: add round trip audio latency test Date: Wed, 08 Jun 2016 15:18:20 +0200 Message-ID: References: <1464919508-8607-1-git-send-email-vivian.zhang@intel.com> 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 580282654D0 for ; Wed, 8 Jun 2016 15:18:21 +0200 (CEST) In-Reply-To: <1464919508-8607-1-git-send-email-vivian.zhang@intel.com> 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: vivian.zhang@intel.com Cc: liam.r.girdwood@linux.intel.com, han.lu@intel.com, alsa-devel@alsa-project.org List-Id: alsa-devel@alsa-project.org On Fri, 03 Jun 2016 04:05:08 +0200, vivian.zhang@intel.com wrote: > > From: "vivian,zhang" > > Audio latency is the time delay as an audio signal passes through > a system. There are many kinds of audio latency metrics. One useful > metric is the round trip latency, which is the sum of output latency > and input latency. > > The measurement step works like below: > 1. Listen and measure the average loudness of the environment for > one second; > 2. Create a threshold value 16 decibels higher than the average > loudness; > 3. Begin playing a ~1000 Hz sine wave and start counting the samples > elapsed; > 4. Stop counting and playing if the input's loudness is higher than > the threshold, as the output wave is probably coming back; > 5. Calculate the audio latency value in milliseconds. > > Signed-off-by: Zhang Vivian Applied now. Thanks. Takashi