Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp749845imu; Mon, 5 Nov 2018 08:14:09 -0800 (PST) X-Google-Smtp-Source: AJdET5cPHmQ5au+wt5HYBqbI+Za6+5AxvJr0o6FI381jKkDFj5p/IwE9Gb9Gx3y9p4C3K/47PRQJ X-Received: by 2002:a17:902:8f8f:: with SMTP id z15-v6mr22790085plo.257.1541434449601; Mon, 05 Nov 2018 08:14:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1541434449; cv=none; d=google.com; s=arc-20160816; b=zH1DYB15xMBjDsWLeVmY4oYbO3nBiGMeeSH3XJHFXJytZXejwmE239U33pOd7max4+ uZWCvnM2Hq1qV7BNkd7eSO5ef4q90QRI1MCnYoeieMFbaoAax6+zhhW1y63YGbTPnm7X upt8nS2AyY90RVfuDXlpJrKvopCgrZpPs2ZoygWzHoWCOBmL0fFCrXr4gDkM+5BFrHVM mgtJT51++d/kgZoLOKvGXRcjH+WpQUWRAexVOT0b/4PHBoV8tEhG5PnvLyrzJ9zhU9Ci qGprKGFRvhUgAZccbImX0bcDst9FbJ9G0Zj6ut8KgDyvTqONSXagHoMHxmd92CFbVXIa TnNA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:subject:cc:to:from:message-id :date; bh=w/w9ZfccRH6vp1ACwfqpNC8mfVq4VczScYcf7R/8USI=; b=GbYyfr80/yTM7lK27ugjx3p5F/MQNI281/r1FL06FflS1+sH0R24Ukzh7VtUULGHaJ lXDqR5kF4mgipS0jmQWnsT5E6NvWfv1FiMo+NB//e5diYBAv8dDq8FPiVAE0UsedJobe IDtK2A6VQbPQZ7FleH289ltORJtzfjfvUw3g8zalmom3HGGo2y64RLmRoAb4t3ydYm/p tytnEoii2nikmDe+8W7nw6H9J5Xu4mgbY+Vuu62OJ9ifKPu2sc/30MmZxhtXHtt76V3L U4KrYxrkwULXHSWPZUW8r8tja1Eau+0npAwpHX4iMzU5looBAyfFdG4SP6jUSMr7EESq FA4Q== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e16-v6si43780001pfn.124.2018.11.05.08.13.52; Mon, 05 Nov 2018 08:14:09 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2387475AbeKFBcO (ORCPT + 99 others); Mon, 5 Nov 2018 20:32:14 -0500 Received: from mx2.suse.de ([195.135.220.15]:48400 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1729019AbeKFBcO (ORCPT ); Mon, 5 Nov 2018 20:32:14 -0500 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id C79C9B06C; Mon, 5 Nov 2018 16:11:48 +0000 (UTC) Date: Mon, 05 Nov 2018 17:11:47 +0100 Message-ID: From: Takashi Iwai To: Mike Brady Cc: Stefan Wahren , devel@driverdev.osuosl.org, alsa-devel@alsa-project.org, f.fainelli@gmail.com, julia.lawall@lip6.fr, gregkh@linuxfoundation.org, linux-kernel@vger.kernel.org, eric@anholt.net, linux-rpi-kernel@lists.infradead.org, nishka.dasgupta_ug18@ashoka.edu.in, Kirill Marinushkin , linux-arm-kernel@lists.infradead.org Subject: Re: [alsa-devel] [PATCH v2] staging: bcm2835-audio: interpolate audio delay In-Reply-To: References: <20181022191708.GA4659@ubuntu> <046aea96-e0d3-60f4-c61a-c26bb1b5c193@gmail.com> <9884c4f5-2343-e3a4-8d8b-dd2db404ef27@gmail.com> <126FA055-050B-4AAC-9392-CA8CCA821768@eircom.net> User-Agent: Wanderlust/2.15.9 (Almost Unreal) SEMI/1.14.6 (Maruoka) FLIM/1.14.9 (=?UTF-8?B?R29qxY0=?=) APEL/10.8 Emacs/26 (x86_64-suse-linux-gnu) MULE/6.0 (HANACHIRUSATO) MIME-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 05 Nov 2018 16:57:07 +0100, Mike Brady wrote: > > > One another thing I'd like to point out is that the value given in the > > patch is nothing but an estimated position, optimistically calculated > > via the system timer. Mike and I had already discussion in another > > thread, and another possible option would be to provide the proper > > timestamp-vs-hwptr pair, instead of updating the timestamp always at > > the status read. > > Agreed — that would give the caller the information needed to do the > interpolation for themselves if desired. And now I wonder whether the problem is still present with the latest code. There was a (kind of) regression in this regard when we introduced the fine-grained hardware timestamping, but it should have been addressed by the commit 20e3f985bb875fea4f86b04eba4b6cc29bfd6b71 ALSA: pcm: update tstamp only if audio_tstamp changed Could you double-check whether the tstamp field gets still updated even if no hwptr (and delay) is changed? thanks, Takashi