Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp488836pxa; Tue, 11 Aug 2020 07:58:05 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwydN1LVnbBEK/Gw3QWdibAwFcDWxvBU92TWlf5rViH7SyOqFkcthGy23Oo0U3lZejDwUCO X-Received: by 2002:aa7:dcd2:: with SMTP id w18mr27529654edu.307.1597157884814; Tue, 11 Aug 2020 07:58:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1597157884; cv=none; d=google.com; s=arc-20160816; b=wALq04E7jeicrsqIXKF2N8d+PaEmr+TA1VyFBQ0SsWyib4Ty3wK02jxdT00Oe6MPip RFU0tCooSw9PYTA03URZLMDx3JMDCYSY2V60b1vHtX1Ys+YTweWtzzvvVQGhJMHTawIv SAcVSVqgY9CSWOpVUOIOrKDLN3ONyh1LZPiOVFnpCFCVfzb4AZYdO/VJK2PGGBVIFUQ1 TFfAs0E1lJRhQq8YAxd+xV25dpNfUXPxIraN5lyO7M0v9Xv8FwyXqUAz9i+DCSI1V3m0 V6PknTGKrCAIRBPqYMd/jpC/uJbd3yC6NP0ptBPOLpjjZLu2j9dSHVDkklhnqKkZlh28 LPdQ== 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; bh=jWbR3/LiuSmZumt8KqjOFRLj2tBXA818e8VC6MGE1Ks=; b=UAH3XqlPjifnvziyb1lqhSr8H9C8e7USTx2QJLhb+qJgngdSy6cnHeyWlhQAG8F+pB 9tEyAIZsTweBLpCrD4daJguE4qLUAvMuc40VuajGQ2WQP4CImtksiF2CMEj820IzQZjz fFqJvtfr72zwPbxGhlVkuUXjg6DcygI/FjmaMQMP3qGQkF+YRPd+dIb/gP/YRXlC9wVR w8KURBs698VD1D4yoZwMTWbFRWyrQ/dkbkJLmt/cTIk30FP/iV4eIXprbcfhp7rfZrUp TEuT9RM00rj158QsL20FYG9QmH/Q5q51ebZj/H0h542NsRyI0bWUt2QIO/BpjO/aS/nv V32w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=iH7qbb0G; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id ba17si12589906edb.3.2020.08.11.07.57.40; Tue, 11 Aug 2020 07:58:04 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=iH7qbb0G; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728887AbgHKOyY (ORCPT + 99 others); Tue, 11 Aug 2020 10:54:24 -0400 Received: from mail.kernel.org ([198.145.29.99]:56534 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728802AbgHKOyW (ORCPT ); Tue, 11 Aug 2020 10:54:22 -0400 Received: from localhost (fw-tnat.cambridge.arm.com [217.140.96.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id B3B492083B; Tue, 11 Aug 2020 14:54:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1597157661; bh=Zl1pJ2DFMmfKMyJErLFYhmOgyXO6PRB0VQI/KuGEDw0=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=iH7qbb0GzuMV9fPw7/HNe4Txfq+eGeS0iW+h2zR9twWkwrCwj6bRX/czJr6xvZmxO BJhNNJLU0wdnPYenJjKjIfSaNWPOJfypoLhQb4DrxzJtSR5eW4EKVvcU3DmrjWI4kE ZJXvf1YeXxKuNSeNN5/3K+lEqj30omp1+1UMbIKw= Date: Tue, 11 Aug 2020 15:53:53 +0100 From: Mark Brown To: Yu-Hsuan Hsu Cc: Takashi Iwai , "Lu, Brent" , Guennadi Liakhovetski , "alsa-devel@alsa-project.org" , Andy Shevchenko , Kuninori Morimoto , Kai Vehmanen , "linux-kernel@vger.kernel.org" , "Rojewski, Cezary" , Jie Yang , Pierre-Louis Bossart , Takashi Iwai , Liam Girdwood , Sam McNally , Ranjani Sridharan , Daniel Stuart , "yuhsuan@google.com" , Damian van Soelen Subject: Re: [PATCH v3 2/2] ASoC: Intel: Add period size constraint on strago board Message-ID: <20200811145353.GG6967@sirena.org.uk> References: <6466847a-8aae-24f7-d727-36ba75e95f98@linux.intel.com> <3f3baf5e-f73d-9cd6-cbfb-36746071e126@linux.intel.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="5L6AZ1aJH5mDrqCQ" Content-Disposition: inline In-Reply-To: X-Cookie: Gravity is a myth, the Earth sucks. User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --5L6AZ1aJH5mDrqCQ Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Aug 11, 2020 at 05:35:45PM +0800, Yu-Hsuan Hsu wrote: > Takashi Iwai =E6=96=BC 2020=E5=B9=B48=E6=9C=8811=E6=97=A5= =E9=80=B1=E4=BA=8C =E4=B8=8B=E5=8D=884:39=E5=AF=AB=E9=81=93=EF=BC=9A > > ... Why only 240? That's the next logical question. > > If you have a clarification for it, it may be the rigid reason to > > introduce such a hw constraint. > According to Brent, the DSP is using 240 period regardless the > hw_param. If the period size is 256, DSP will read 256 samples each > time but only consume 240 samples until the ring buffer of DSP is > full. This behavior makes the samples in the ring buffer of kernel > consumed quickly. > Not sure whether the explanation is correct. Hi Brent, can you confirm it? This seems to be going round and round in circles. Userspace lets the kernel pick the period size, if the period size isn't 240 (or a multiple of it?) the DSP doesn't properly pay attention to that apparently due to internal hard coding in the DSP firmware which we can't change so the constraint logic needs to know about this DSP limitation - it seems like none of this is going to change without something new going into the mix? We at least need a new question to ask about the DSP firmware I think. --5L6AZ1aJH5mDrqCQ Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEreZoqmdXGLWf4p/qJNaLcl1Uh9AFAl8ysQAACgkQJNaLcl1U h9AeeAf/UWVHZwuLSbdU4F24gTh9Evg65nXjOQ/J9iQI9FUTAWaZmBBgfnbWlbRx 1sqvxQ03kOtC40oS9jFz0hYMwDMQm4seHQfg9Zy0gr6DUHcZBnh+eTmn//6u6Xto W68Wr61drakKTT+9jqC5j694fxtAl1uAvrySfjiIoAJFUg+JRsytjzaeUWRGY1+z 9EjA+q5dX7LuwPKxUmkPkSipJwxXF4zateJ3VnKK2dmNvtnFbYAYD+b7FK2x+9sK Q30ZaYcs5rlAif136+aUFKABTBjVBjxzE1yGlD66ZipYapXuFo1IyGiQWwq2phPT ZRU1vj4Zn9eW/Ma7XKCxMWgxJHEoOg== =CfWE -----END PGP SIGNATURE----- --5L6AZ1aJH5mDrqCQ--