Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp1707378ybt; Thu, 2 Jul 2020 11:45:29 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyfsOuvHad2xVFCnywtOr9/KprMwBEW9ihkfr4puWqY93FnI6hRplDYgxYf8YuRLF30Rl3L X-Received: by 2002:a05:6402:b72:: with SMTP id cb18mr72412edb.352.1593715529156; Thu, 02 Jul 2020 11:45:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1593715529; cv=none; d=google.com; s=arc-20160816; b=FRqbwjZY3NlomlQCB3LdlbRU9qJpbIb6BFeNGYKGVBgo/odzgsy/aFnT4iNTPRwclo 3jPyOjdcHGg7thST4JPInL6pMGTkNRkaiT5b8pt6Kzbe9WmsRGM5TsaQdNSK4UQYXyXh uomPT6GTWEteJhdGaLa4S1Q8BQ9bGdhj5WO9vCyepeZEDgdcM8UPKGzkdX8AQVuhY2GL +UHwRnRHzRU+175so4cm7J0F1+vy0lRJCdSLwiEp5tsw85fSSelvc9g8wyjnfV2LjIbG utFf/hVicf39M3kHo+oLC3zNAMwlWu+Zk2HM/OMhoo85I6z+BtSENRXj7KVRQyOp66EE dMpg== 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=tbX9gnwNkjOzk/98d8BFqWlU3Yk39GHs2cPsD7jbrXM=; b=UGt6optvBbNaLPo54FNSdlzaS4+3NOZBpqLNTHO0AiKoAcvoFXHZWbaQ+OfYIXzT4z LL1SwP1n/uQg4yHZBsXCZaFrfja20Q0kek4Didv1KpKnQSI6zXMZdWLy6KZzDaQtPh/I ghhi1WB4JoZ5j+5Hg9nXwHzeX4XAazVH2Ww+Y7RniF1E0qIJ8YJbIESPV1I94BtyABg8 6jpAMrkIguS3hQ4w0SDuLi8NtxK/2WEJnlmM4T5Df328yGi07n8/+cLK6LlEhIsxAzez ZNsSjXzvaO7vTG7RWkWdddcWaGXxxW2HiwIOYfZaBQsXy1upPdE+7mu8pL6rH3JMdfkS TWng== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=JsFN61eC; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id bq6si6388953ejb.108.2020.07.02.11.45.06; Thu, 02 Jul 2020 11:45:29 -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=@gmail.com header.s=20161025 header.b=JsFN61eC; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726112AbgGBSmf (ORCPT + 99 others); Thu, 2 Jul 2020 14:42:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58470 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725994AbgGBSme (ORCPT ); Thu, 2 Jul 2020 14:42:34 -0400 Received: from mail-pl1-x641.google.com (mail-pl1-x641.google.com [IPv6:2607:f8b0:4864:20::641]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8DDEDC08C5C1; Thu, 2 Jul 2020 11:42:34 -0700 (PDT) Received: by mail-pl1-x641.google.com with SMTP id g17so11638652plq.12; Thu, 02 Jul 2020 11:42:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=tbX9gnwNkjOzk/98d8BFqWlU3Yk39GHs2cPsD7jbrXM=; b=JsFN61eCI+fVmsDGKjx3xNcUB9PTWSDRaIF3nEA7cb13QIkZmIqYDssIQvKF2ony9w Bc/I8YIpo/DNOqg01APimdwuBKsysstKm3eNWmiCC3L/WkvKtEItiHdW/NHiV9JLIy2p HHTSap5HMi/MV+wih89HXnkggCyyyijeIt1gDdczQXVBEUvk5m8LIl6T18qw1O504bYW FNnUrxwdVjGvbXXZTLejVs98ZvwYFj8GJ/b87XNnMV+MkQ6DuZtq5a6uUyTj4NWjs7G1 JUrHAvMaz6Hoel+1vWArGEnqsSgZTzcuLoyH6nNKRM2GUj/N382/u5XK3EnAfr8XtJJE FMlg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=tbX9gnwNkjOzk/98d8BFqWlU3Yk39GHs2cPsD7jbrXM=; b=eWVyLVa9d5da4bvd0ygclpMrKmOFLQFCj1IjJMFsJrGVF9CpfIGUn3RTpxnv0AKoNN zS4dRjm7akm9Jzu3AsmqBWorI2RA00LUIaErDAmkrpGel88Q1dIjzv+BdXC4GcZHL9o6 mJpO3QwYhFP7sZRliBiJLl26fLELDQLKXHQu5yMAaTYC25FgyI/lVWVA2L5icU/hJEkn WdpCK/V9fYRGrlqgtfn/PVqz9yf9TMhPsabZ8I2yNLB0RmYbc4PnlkucHkhuaiZzuU4N 1pX6CY7DvZh1aPl7Ni8ZuvEvsqpJ8pN5niFB6i2nM4plZuU0odcY+/hr6SsF2RWJ5ToP WJBg== X-Gm-Message-State: AOAM531hnmqVf+CvrGXOwnkcC8eC5uGScO68jv5dnqBUI1j1VDHXMQyu yWJIClWUrTlDw4USXrs6m9A= X-Received: by 2002:a17:90a:290e:: with SMTP id g14mr30210537pjd.85.1593715354041; Thu, 02 Jul 2020 11:42:34 -0700 (PDT) Received: from Asurada-Nvidia (searspoint.nvidia.com. [216.228.112.21]) by smtp.gmail.com with ESMTPSA id y7sm8819228pjy.21.2020.07.02.11.42.33 (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Thu, 02 Jul 2020 11:42:33 -0700 (PDT) Date: Thu, 2 Jul 2020 11:42:26 -0700 From: Nicolin Chen To: Arnaud Ferraris Cc: kernel@collabora.com, Liam Girdwood , Mark Brown , Rob Herring , Timur Tabi , Xiubo Li , Fabio Estevam , Jaroslav Kysela , Takashi Iwai , alsa-devel@alsa-project.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linuxppc-dev@lists.ozlabs.org Subject: Re: [PATCH 0/4] ASoC: fsl_asrc: allow selecting arbitrary clocks Message-ID: <20200702184226.GA23935@Asurada-Nvidia> References: <20200702142235.235869-1-arnaud.ferraris@collabora.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200702142235.235869-1-arnaud.ferraris@collabora.com> User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Arnaud, On Thu, Jul 02, 2020 at 04:22:31PM +0200, Arnaud Ferraris wrote: > The current ASRC driver hardcodes the input and output clocks used for > sample rate conversions. In order to allow greater flexibility and to > cover more use cases, it would be preferable to select the clocks using > device-tree properties. We recent just merged a new change that auto-selecting internal clocks based on sample rates as the first option -- ideal ratio mode is the fallback mode now. Please refer to: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?h=next-20200702&id=d0250cf4f2abfbea64ed247230f08f5ae23979f0 Having a quick review at your changes, I think the DT part may not be necessary as it's more likely a software configuration. I personally like the new auto-selecting solution more. > This series also fix register configuration and clock assignment so > conversion can be conducted effectively in both directions with a good > quality. If there's any further change that you feel you can improve on the top of mentioned change after rebasing, I'd like to review. Thanks Nic