Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp5180662imm; Tue, 31 Jul 2018 06:53:02 -0700 (PDT) X-Google-Smtp-Source: AAOMgpeWIcFA5h269SJgcaJlTH6alZOar/qg6YIAwrjcORCbd0tbl69ZCDdNHuz4k8t5KBJBXef9 X-Received: by 2002:a63:6243:: with SMTP id w64-v6mr20556692pgb.179.1533045182301; Tue, 31 Jul 2018 06:53:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1533045182; cv=none; d=google.com; s=arc-20160816; b=Gn9B5lQq17yf5U/9eSU/PJA10naJ/sV0vcurNoUiki4Oag6AMlyh6PxYST0HIyeOio GkNtMTPvNfoc0fNBqYXK8/dUX2YMOAbvtxgZQlq440bJsyat66LRp1VboWYIDAAU2tKP aTmJJKD9VSlrYdM4Cbf3mSFIXgfc61rwZuUG43i+j9VcPmP51ZMXlYadn1h2RAPpCaym eOGjqRO/XU1cRnZP2vzkgk3BeYjuMBj7NO381jGhyXDEZO1PE78SG/QbMrPowCUA90ig FlyMs5gJQ9Oq49IZRBV6fiA4NvP05crSw4sflTg97ZBJfuVY/uCCJMxwbsWmwarYqDNQ lZUA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature:arc-authentication-results; bh=tc8bnuCp2VlhJ2A1pqvCxDo9L3yX7cq0oruy0L9vN0s=; b=Ccirinc6J26gN2rZTnwkeDqoQ/CyG75JUzL705MCAtmBEXZKo9TIOCaDGEygzuHdU1 Noge8Q7D7Qp23wpkRTYt2+SdFXOlysy6ORGSm/7DBw4jewDo+Nr72L2V9RjzSIwIug4d jJqkmlhRWz1U/X1JS3ABKHz+Xh+umLF8r4qApCxcz2EgW8ahi6RDCWdd+R7bQkMO5Frq MZVpuUUvR9auyRXfWS63Tw4WDkcuRBVdfvm11o624bp4YqkYkf4QxbH9bsn3AM5TUndX SXBW7o6yPOkufM/9nAx4EbrkgmhIDighy3WpLy0GR2M9YujftfbOKXpL1wNeo49htFOZ OuRw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@sirena.org.uk header.s=20170815-heliosphere header.b=xcmSEWSh; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y9-v6si13271265pll.291.2018.07.31.06.52.47; Tue, 31 Jul 2018 06:53:02 -0700 (PDT) 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; dkim=fail header.i=@sirena.org.uk header.s=20170815-heliosphere header.b=xcmSEWSh; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732272AbeGaPbs (ORCPT + 99 others); Tue, 31 Jul 2018 11:31:48 -0400 Received: from heliosphere.sirena.org.uk ([172.104.155.198]:38326 "EHLO heliosphere.sirena.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732194AbeGaPbr (ORCPT ); Tue, 31 Jul 2018 11:31:47 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sirena.org.uk; s=20170815-heliosphere; h=In-Reply-To:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=tc8bnuCp2VlhJ2A1pqvCxDo9L3yX7cq0oruy0L9vN0s=; b=xcmSEWShvnpOrMEAyqRZlBCLf qgQsc/HdTGlHZ4rKBJhb0boOg1nr7yIsLtB3zichXglgsJJw7VxVB3XUgAfUXnrIggx0Qf7Fkz2Jo LbEDqSqzIZZvglPbCs6Ib8J45M7FrDHzw00DuzE3XBC/WCzk8sJTQIdIECVzDz6yFMaN4=; Received: from cpc102320-sgyl38-2-0-cust46.18-2.cable.virginm.net ([82.37.168.47] helo=debutante.sirena.org.uk) by heliosphere.sirena.org.uk with esmtpa (Exim 4.89) (envelope-from ) id 1fkV3T-0007BJ-LV; Tue, 31 Jul 2018 13:51:15 +0000 Received: by debutante.sirena.org.uk (Postfix, from userid 1000) id 2D19011242BD; Tue, 31 Jul 2018 14:51:15 +0100 (BST) Date: Tue, 31 Jul 2018 14:51:15 +0100 From: Mark Brown To: Takashi Iwai Cc: "Agrawal, Akshu" , Pierre-Louis Bossart , "moderated list:SOUND - SOC LAYER / DYNAMIC AUDIO POWER MANAGEM..." , Alexander.Deucher@amd.com, djkurtz@chromium.org, Liam Girdwood , open list Subject: Re: [alsa-devel] [PATCH] ASoC: soc-pcm: Use delay set in pointer function Message-ID: <20180731135115.GD5719@sirena.org.uk> References: <20180730155030.GP5789@sirena.org.uk> <7a88c7b4-d31d-b044-bb8e-a866d49d1256@amd.com> <5b3249cb-6212-6a14-b644-7548cf0ad00c@amd.com> <20180731101943.GB5719@sirena.org.uk> <20180731131246.GC5719@sirena.org.uk> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="sgneBHv3152wZ8jf" Content-Disposition: inline In-Reply-To: X-Cookie: Save the bales! User-Agent: Mutt/1.10.0 (2018-05-17) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --sgneBHv3152wZ8jf Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Tue, Jul 31, 2018 at 03:29:35PM +0200, Takashi Iwai wrote: > Mark Brown wrote: > > > > However since it's not supposed to be providing any DMA a CPU DAI really > > > > shouldn't be doing this... > > > Well, if so, the CPU dai also cannot get the exact base delay > > > corresponding to the reported position, either, no? > > It can know how much delay it's adding internally between its input and > > output, which feeds into the overall delay experienced by the user. > But isn't it merely the additional delay that should be applied on top > of the existing runtime->delay? Yes. I'm saying that if the CPU DAI thinks it can figure out the base delay something is confused. --sgneBHv3152wZ8jf Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEreZoqmdXGLWf4p/qJNaLcl1Uh9AFAltgaVIACgkQJNaLcl1U h9Dc/gf8DM00LYsmfSfREWDEZOQ1LLvo4bi8nuYkoSUTGC/fkCvSgUj732kSvkAY aPaZqrlhMZf+aedlU2+8TCRu/MMUszefetX6N8/gYBAmHWS2Bo2mEnljNZD+zrP/ oisktLeeIK0W5HX7Rafoij3KM79QqD2VZusExUGH+GIVKuj6bWmIx2kBjULSsuft XCJWmWiYx9KlM2WQR0djpW+5NPKbymLVmcYgPRcR21reY8umeG2z9noMrtIcaNYy mdH7ioFzJ5aqdgK90AMoFgj+apDhcdhC8D8gkxQhV6EmiwxrelanrTSnQ7N6EtMh LcM8hvc1692eypMzlAYeCRBrEbF+OQ== =baWl -----END PGP SIGNATURE----- --sgneBHv3152wZ8jf--