Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp2023737ybh; Tue, 14 Jul 2020 13:31:44 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyiN4ZvhOgHdm5vIkfQH/UxFHzdCh/CDemSajhurh4nfIRNPXvxa8nqzXg9CQzzWLdZgZBp X-Received: by 2002:a17:906:a0c8:: with SMTP id bh8mr6645640ejb.190.1594758703913; Tue, 14 Jul 2020 13:31:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594758703; cv=none; d=google.com; s=arc-20160816; b=WOYDqagO/XWZUwNJh8PJ3Z8iGEfKvU3nFObttBqjKQCHwacdaiMRVWCLHzn/8LZJ1x V6DXhhdb8GS/Ew3mfZjj2o0D6Uuh+xp8TNMCDK/MCqYHQTo1fMvEwMxeJ07pnAmsSPXT 8aZs30ilmFA1A1BL1wL3JTqDl6ReZgVmD2pEZELvvw5XUl8d3dzOC8G8NlJMMjU5I0d/ fCL3ozwQzY+xDHzy0G1sh0fZ8p99gDlSOraMc33gA0ojRTns+bcyaiECT60LRr21LQbK Axwey7tnMQtgE1QjQLSfjnAO6Ef9rgDxOnBSMNzX6v2cuw8oFniWSpmSyJX4pNfdUWuQ gz7g== 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=D/YedB6vpINw969XG7D6w8nVLyudMi0E+xv/F29V/kw=; b=RhmfW5aNnoZ9FY/eS7yAnsQSn2TOFnCOL6/25wnlExIcEHHPOTyq5eiAi7tAH/QkRS 6BggI7Hfd6y7OoWBA08vlXYAH70SwElbtMOL1mFIjqPk3x2PwR5B3tr7Te0lekWc4itv o08uT+J1Oev1pg5EbVvcU6eJycN8afHRC7Xh+R5/TbprpkZ0fKvH8nzOuphfUxkcnojp DLCrjSLH3gpLkvd0cr33UqB8ZyV6ukbJTDn59oDrWAVDbufMiHbi3wR3wNG58oF3nN39 KYNfxe9HZ6IJf/KKdDrp5EYgu45JVIf4/FhWmrWL4Gru48uMsWWno3/Vg3dFkyx+ejro Kj/A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=QwYkfz5v; 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 g11si10871198ejx.307.2020.07.14.13.31.20; Tue, 14 Jul 2020 13:31:43 -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=QwYkfz5v; 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 S1726828AbgGNU2E (ORCPT + 99 others); Tue, 14 Jul 2020 16:28:04 -0400 Received: from mail.kernel.org ([198.145.29.99]:48366 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726788AbgGNU2D (ORCPT ); Tue, 14 Jul 2020 16:28:03 -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 B09CD206F5; Tue, 14 Jul 2020 20:28:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1594758483; bh=O20GcOLOg0ZHMThXbLDLtb0d8nA0bfVDYgFNb7RkvkQ=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=QwYkfz5vHa0na1sEdlHRsjcxFA5xtFj89EgYrkqMn8rPUwU1u4UiTYO2ESyrq0LT7 xE8GWdhqU8LkgcYvIcZPd9abQDDz8/RcPwC8Ly/ViIawesFSdMhUb/PTzEKCtFsNWv 3H2HCwuRbAh86KdqQ+bhjXpeRZkITDAH9/eKWpmw= Date: Tue, 14 Jul 2020 21:27:53 +0100 From: Mark Brown To: Nicolin Chen Cc: Arnaud Ferraris , alsa-devel@alsa-project.org, Timur Tabi , Xiubo Li , linux-kernel@vger.kernel.org, Takashi Iwai , Liam Girdwood , Rob Herring , kernel@collabora.com, Fabio Estevam Subject: Re: [PATCH 0/4] ASoC: fsl_asrc: allow selecting arbitrary clocks Message-ID: <20200714202753.GM4900@sirena.org.uk> References: <20200702142235.235869-1-arnaud.ferraris@collabora.com> <20200702184226.GA23935@Asurada-Nvidia> <3f39a0bb-a766-f646-28b3-a51cf9983c6b@collabora.com> <3fea8912-63df-ff27-0c29-6284a85107ab@collabora.com> <20200714201544.GA10501@Asurada-Nvidia> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="Nj4mAaUCx+wbOcQD" Content-Disposition: inline In-Reply-To: <20200714201544.GA10501@Asurada-Nvidia> X-Cookie: Your password is pitifully obvious. 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 --Nj4mAaUCx+wbOcQD Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Tue, Jul 14, 2020 at 01:15:45PM -0700, Nicolin Chen wrote: > On Tue, Jul 14, 2020 at 06:20:32PM +0200, Arnaud Ferraris wrote: > > Here's some background about my use case: the i.MX6 board acts as a > > Bluetooth proxy between a phone and a headset. It has 2 Bluetooth > > modules (one for each connected device), with audio connected to SSI1 & > > SSI2. Audio sample rate can be either 8 or 16kHz, and bclk can be either > > 512 or 1024kHz, all depending of the capabilities of the headset and phone. > > In our case we want SSI2 to be the input clock to the ASRC and SSI1 the > > output clock, but there is no way to force that with auto-selection: > > both clocks are multiples of both 8k and 16k, so the algorithm will > > always select the SSI1 clock. > Anything wrong with ASRC selecting SSI1 clock for both cases? The > driver calculates the divisors based on the given clock rate, so > the final internal rate should be the same. If there's a problem, > I feel that's a separate bug. The nominal rate might be the same but if they're in different clock domains then the actual rates might be different (hence the desire for an ASRC I guess). I can see the system wanting to choose one clock or the other on the basis of some system specific property (quality of the clock sources, tolerances of the devices involved or something) though it's a rather fun edge case configuration :/ . --Nj4mAaUCx+wbOcQD Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEreZoqmdXGLWf4p/qJNaLcl1Uh9AFAl8OFUkACgkQJNaLcl1U h9DuHAf/TDGYWuygKrfJ8bywVG9u74SpJ9heHBWUzyeOwBeMmD2EcIZQTbcYbFy0 R2f5uRyhd5nQrLyrkVLq/o5HEgVV8Zpfi0OGQ25q5ehRQU3ni+8fkcHYtq3/uaI7 z8tQG2zuZiUDmN+thLC9a/H6SWEZSySVThHUsyFg+zU7WXVTmrMGnCIcjV5IlXPf ErlMV1E0eWVn+Ti6rIYbG3RhGi7B4ATv3AY+0BT628Bel2zqknmTkFYH+SXMPspc FzT/bvTQxCOOFl75BY8+qSS2H2MEVzdVSrhEEvopDBXCvspyHMMBX50CqcNJnFHc 4q3Oyckri7vWm5rmbqcwsCwbohRa0w== =/XN2 -----END PGP SIGNATURE----- --Nj4mAaUCx+wbOcQD--