Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp569795ybh; Wed, 15 Jul 2020 09:20:12 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxfw9PAXHdIvFTJi2732UtbFcKBgz+aj0FUSd4AhveUvYc9XKaO26+7q2eXadJobrFWh2uc X-Received: by 2002:a05:6402:202a:: with SMTP id ay10mr419742edb.0.1594830012614; Wed, 15 Jul 2020 09:20:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594830012; cv=none; d=google.com; s=arc-20160816; b=F/rGCcXA8A3YWhjlD3527hIy0YugMuIK50y4czgxaFHb7HKjOM5xcO789V3EsJSh6b Z7TrCwDh1DZ9M+iZeoQbX8cjzTUGYH66yKYJaBUVasa+rycit1GzVWuyKpEERopuDE5E XtRp9BNJfwARCA9QgFaod9nroI/uW/VXdRe2I15uWUW/EXyTS9CgLIgwugI5xaIznQYW C/G+EQmDp491qfhOI8J7ZwZ7VULtGGI+1E0bln+2CeZxvLLzMvz3pFLHDZSkZehGzrfT PAmD6PHI39zcjUK1IHiMnifjWOFO0HutWISa8g+Oo+pOTvT667PFTNIrIRDC/zehkRzD r41w== 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 :content-language:in-reply-to:mime-version:user-agent:date :message-id:autocrypt:from:references:cc:to:subject; bh=RSH7cUO2W1XBeIWdc13KlmX9kQwIbYdBvUAZ/JzDYyo=; b=p6KoTZO/4aYnSXz0RxoNzIbI/qxn/lMETWyQ+WB1FoFb3aCmcvZZbsawmcSj5p5s18 hOV1013bp2qgF9D4jPSe5mXyngYPSkJ7rObne4XTbxqz8rwUY6ZZOhEWCUAMVVqMowa7 n1wsj0Lezj/eQA04Izg2L0P4ZzjQEZVE7eNobMzcn9ER2tEXKl8WjYNu1/ttI2yRjE/I rWOHdRQqRphOLEwEapOv4GIBIILrfbj/xWtS2ciEasBUpc4P/hFH9Y8VNSGVKAXV190C Lkn269WCwrHXQ/m3bkiy/pZ/7SAwy3SU+dVKbXxSACAupPj4fwGmL40mod0OnzhJTCPe mMYA== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=collabora.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id c9si1452431ejx.552.2020.07.15.09.19.47; Wed, 15 Jul 2020 09:20:12 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726431AbgGOQSn (ORCPT + 99 others); Wed, 15 Jul 2020 12:18:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40124 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725770AbgGOQSm (ORCPT ); Wed, 15 Jul 2020 12:18:42 -0400 Received: from bhuna.collabora.co.uk (bhuna.collabora.co.uk [IPv6:2a00:1098:0:82:1000:25:2eeb:e3e3]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6931CC061755 for ; Wed, 15 Jul 2020 09:18:42 -0700 (PDT) Received: from [IPv6:2a01:e35:2fb5:1510:1d7c:45e2:f76d:7ac5] (unknown [IPv6:2a01:e35:2fb5:1510:1d7c:45e2:f76d:7ac5]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: aferraris) by bhuna.collabora.co.uk (Postfix) with ESMTPSA id DD4C62A5081; Wed, 15 Jul 2020 17:18:40 +0100 (BST) Subject: Re: [PATCH 0/4] ASoC: fsl_asrc: allow selecting arbitrary clocks To: Mark Brown , Nicolin Chen Cc: 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 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> <20200714202753.GM4900@sirena.org.uk> <20200714205050.GB10501@Asurada-Nvidia> <20200715140519.GH5431@sirena.org.uk> From: Arnaud Ferraris Autocrypt: addr=arnaud.ferraris@collabora.com; keydata= mQINBF6V3oEBEADExzr1s9YngScJ0KNMGen7k3cH1sn0h7tf7AFlXA94jXBgFyzIMT5lqey0 9LwcO6AIkFF+gRVAKIblkeacsy5W6OQXgdFMitx936oAcU0XYQ2X5NxCQHzEsWYzkLIZnFTB Ur3CW9HtAjAircED5KVJzA1GM8BEFfG3LoonWsw0CO9UN2arwT1uLARSPgL6LPpmo1IOSwJh D6vtOyzlRrLkw4KHzUobEiIjxzjXttH8TC3I6OSb8kavG08cmA+DMf/nLFxK0QbdOP2wSZ0w UTU6RBikuLmDBaT4PphuwtAgVwhO9l0PNRoYzugrXuRF0RCLpmJN05tz/o/w7Y8ieLgQE8Om xGKXJyo0T4wlUl9ARM9Y0ZIRhdI1alFspBcF63oyZmOAT+2fPLr6W0fEfmtMBhDaZun2ZdKR M1JwTTkh8jVLs3svM3Ch2JjiH0kgYA0oza5fXaB9s4Fa4fxpmacx8fawKR5r/BhmYNK15PPd YxIZJqnTJgCDI2G4tQ9K+Eev1rBo6i8n96rDqxTxdyQixMhxMmGtj6/bknpVIN947ABKDHdt UsWa4E+qwFrYDXT7RxhL+JGn4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dGrHwajvp+i/iL9FcNZenpEMbYhu71wMQNSpbO7IU4njEuFNnPY7lxjxmFfCEQEqyDCwowD2 cjsHzQk9aPtYl6dABevfk/Pv1EspBtkf8idYmtgZk/9daDd9NfDGVWZX2PZrHPkxiC6kJlq+ 9skF89liUCOGeIbfT4Gp/GNOWPRp1q2lj/12AT3yh97E9PghVdOOkxdHfFRIxt6qfcinl3w0 ihwz588Q48GmFzJw0LOidtCC5tW4m2CX01Gq7qdGd92R0+S36Zjxl8n2jhypQ1zRmrngf7M5 xZQG6fKWuIur3RI= Message-ID: <0a56326b-27a9-d9f4-3923-8773963d7548@collabora.com> Date: Wed, 15 Jul 2020 18:18:38 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: <20200715140519.GH5431@sirena.org.uk> Content-Type: text/plain; charset=windows-1252 Content-Language: en-US Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, Le 15/07/2020 ? 16:05, Mark Brown a ?crit?: > On Tue, Jul 14, 2020 at 01:50:50PM -0700, Nicolin Chen wrote: > 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. Calculations are indeed good, but then the clock selection setting in the ASRCSR register would also use SSI1 as the input clock, which doesn't work in our case. >> On Tue, Jul 14, 2020 at 09:27:53PM +0100, Mark Brown wrote: > > If you've got two radios that both need to sync to some radio derived > frequency it gets a bit more entertaining. It was indeed a fun ride trying to make it work for all the use-cases we were targetting. > >> Yet, in case that we need to support such an edge case, what's >> a relatively common practice to allow system select the clock >> source now? > > Honestly for anything that fun it tends to be a custom machine driver. > A property would seem reasonable though. I think so, does my initial implementation of the properties look sensible to you? ("fsl,asrc-input-clock" & "fsl,asrc-output-clock") Regards, Arnaud