Received: by 2002:a17:90a:1609:0:0:0:0 with SMTP id n9csp3656835pja; Tue, 31 Mar 2020 02:57:34 -0700 (PDT) X-Google-Smtp-Source: ADFU+vvA756yrCA/WbrmhhYRL7jTTZzOIfYrdJHXWs/l4YzN0DkEET9xjTNhZ1tPwHwY8MZmKMrH X-Received: by 2002:a9d:6e02:: with SMTP id e2mr12629232otr.317.1585648654210; Tue, 31 Mar 2020 02:57:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585648654; cv=none; d=google.com; s=arc-20160816; b=dh13PbkGjAUhwNp8zJk1WJt6JamEVOhZYh2u6i32ErsFKbvkN9/B9pYk8Ng5KQ71xR 3HF6iHVft92HeDkcYb+GqgdS+WpatR8RBzCd5DYZHKXXPprcFzyotpvULuB7CtIoLRUQ 1+reec65MGFJqaM7V1gZ023z6YhfilaBaWrnw3+dYEO1EB+Hj5c9njOilYazsm/nOECp ivI0O1qmYRL/gaVGQclcqCluj2u5nF1TGbWC6U3XJ3wDtsyX2Ultudzg6UugIru6kjAY 2oVEsLH09rTKxl/TcD13qM8JRw3LOu8ORJsqte5CX7XbWCvhD31N0Iy9JUa3GmY5JmeF /2pg== 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=OhHn08M8/D8HCM9gjXRbI/j0PhmAwA3tYAp3gRgxrKk=; b=QslFeyDuxLAXDgnz3JL6tfKpnPP9QBSVO2ZCLmeSZU39mzNUPi0qpA3NZcRLrGlou7 dpsw13Sdar7RAQoQmg/BhLjPpbLAtBFc7qF1rmldtNUNEjgcGtLmGKmB95M4FHySd3ht NiqeJ5ppawmWLVOorLeRrGXHpe8UdZm8OxtKnQjgYI6BFahTWWPPReaoVSXkPfGoKKZm bS6xnqidDP7g/YM7OqBKznxPit1ilSWWgp0GW41BLH0TdF/z34Y9Yc86kr3mmZxU3Zs/ TfzRabtxUFP5vN0+xqnZ0+G1J+fy85+GBOBQzjHMsl11LZCqizwsyaDUb+R53eDiRHhI uTpg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=veoTVgVR; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s31si7365605otb.30.2020.03.31.02.57.20; Tue, 31 Mar 2020 02:57:34 -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=pass header.i=@gmail.com header.s=20161025 header.b=veoTVgVR; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730354AbgCaJzz (ORCPT + 99 others); Tue, 31 Mar 2020 05:55:55 -0400 Received: from mail-pf1-f193.google.com ([209.85.210.193]:46323 "EHLO mail-pf1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730217AbgCaJzy (ORCPT ); Tue, 31 Mar 2020 05:55:54 -0400 Received: by mail-pf1-f193.google.com with SMTP id q3so10079133pff.13; Tue, 31 Mar 2020 02:55:53 -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=OhHn08M8/D8HCM9gjXRbI/j0PhmAwA3tYAp3gRgxrKk=; b=veoTVgVRtYQTK+5zN3HYDh+HdtUTeX2nPPRVzQPABdleK9zHQb4Qfl3r/T33195phu DUMvCdDjmJ78SwW3P5o7zoX0gQW9ZZDwSrxEVbpixY5yShzky96M6m66YJKWwWc/MH7V DTMF5UWOC4YbOb73eYMwZR65xCARdm0J/queSu86YPQrB0FH77ohZOcmu/5KUeQVQ6I4 nQFqCHefw2XGkVEG/L6uSEWsxvl3sjAAL6Ir2zECJfvkWLoJdbK4tzNXLmcUYsGJ/sBq CPnwAaW2kHAUq3VyOfa33eKhAyvQVC0DX4/21UX9tD/bRIhnr7KrIZxDHyWY1o/jw5ul +t5w== 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=OhHn08M8/D8HCM9gjXRbI/j0PhmAwA3tYAp3gRgxrKk=; b=qfBNUbcbHxNKTH3tp86gb0/BWysLF7QEpcAm6XHTs+C5M462q2VxeS8OpKkVJ3bA1h h0LRQ5zXQzmRvs5Sh9Dc6GIPZ+hCoArIsafUg+gIQYZz7wVRV8l76BhJNJrqw6VEEDiY ktnRRZmBEZJku9HMxm45xOtBlnpKwXornjOnlFhz60WzrSEyx/I8bF9NUflaBWq79eOG NsENh2s09QliQiGO91BLSnKJLO/f3Two2w0a97Sjh8MmOPr7ABNhCxu2tLdO8IT/Yxs2 m6pJNaSBt9S4+QPu6nI3dCcp7myluDUy4LJ8En0t7YkzMjLL5vJtq+z+fwNarlk5V8Nk 5/IQ== X-Gm-Message-State: AGi0PuZ9SaC+lbGKRngEJwuv8WZGhy8Mxn+x31QC4XAQaGTCZ0AmTwJB 8b8hUA02LYveYrPxrvWBADE= X-Received: by 2002:a63:8ac3:: with SMTP id y186mr4395435pgd.277.1585648552952; Tue, 31 Mar 2020 02:55:52 -0700 (PDT) Received: from Asurada (c-73-162-191-63.hsd1.ca.comcast.net. [73.162.191.63]) by smtp.gmail.com with ESMTPSA id mq6sm1626110pjb.38.2020.03.31.02.55.52 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 31 Mar 2020 02:55:52 -0700 (PDT) Date: Tue, 31 Mar 2020 02:55:34 -0700 From: Nicolin Chen To: Shengjiu Wang Cc: Rob Herring , Mark Rutland , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , Linux-ALSA , Timur Tabi , Xiubo Li , linuxppc-dev@lists.ozlabs.org, Shengjiu Wang , Takashi Iwai , Liam Girdwood , Mark Brown , Fabio Estevam , linux-kernel Subject: Re: [PATCH v5 1/7] ASoC: dt-bindings: fsl_asrc: Add new property fsl,asrc-format Message-ID: <20200331095534.GA2976@Asurada> References: <24f69c50925b93afd7a706bd888ee25d27247c78.1583725533.git.shengjiu.wang@nxp.com> <20200309211943.GB11333@Asurada-Nvidia.nvidia.com> <20200320173213.GA9093@bogus> <20200323212038.GA7527@Asurada-Nvidia.nvidia.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.22 (2013-10-16) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Mar 31, 2020 at 10:28:25AM +0800, Shengjiu Wang wrote: > Hi > > On Tue, Mar 24, 2020 at 5:22 AM Nicolin Chen wrote: > > > > On Fri, Mar 20, 2020 at 11:32:13AM -0600, Rob Herring wrote: > > > On Mon, Mar 09, 2020 at 02:19:44PM -0700, Nicolin Chen wrote: > > > > On Mon, Mar 09, 2020 at 11:58:28AM +0800, Shengjiu Wang wrote: > > > > > In order to support new EASRC and simplify the code structure, > > > > > We decide to share the common structure between them. This bring > > > > > a problem that EASRC accept format directly from devicetree, but > > > > > ASRC accept width from devicetree. > > > > > > > > > > In order to align with new ESARC, we add new property fsl,asrc-format. > > > > > The fsl,asrc-format can replace the fsl,asrc-width, then driver > > > > > can accept format from devicetree, don't need to convert it to > > > > > format through width. > > > > > > > > > > Signed-off-by: Shengjiu Wang > > > > > --- > > > > > Documentation/devicetree/bindings/sound/fsl,asrc.txt | 5 +++++ > > > > > 1 file changed, 5 insertions(+) > > > > > > > > > > diff --git a/Documentation/devicetree/bindings/sound/fsl,asrc.txt b/Documentation/devicetree/bindings/sound/fsl,asrc.txt > > > > > index cb9a25165503..780455cf7f71 100644 > > > > > --- a/Documentation/devicetree/bindings/sound/fsl,asrc.txt > > > > > +++ b/Documentation/devicetree/bindings/sound/fsl,asrc.txt > > > > > @@ -51,6 +51,11 @@ Optional properties: > > > > > will be in use as default. Otherwise, the big endian > > > > > mode will be in use for all the device registers. > > > > > > > > > > + - fsl,asrc-format : Defines a mutual sample format used by DPCM Back > > > > > + Ends, which can replace the fsl,asrc-width. > > > > > + The value is SNDRV_PCM_FORMAT_S16_LE, or > > > > > + SNDRV_PCM_FORMAT_S24_LE > > > > > > > > I am still holding the concern at the DT binding of this format, > > > > as it uses values from ASoC header file instead of a dt-binding > > > > header file -- not sure if we can do this. Let's wait for Rob's > > > > comments. > > > > > > I assume those are an ABI as well, so it's okay to copy them unless we > > > > They are defined under include/uapi. So I think we can use them? > > > > > already have some format definitions for DT. But it does need to be copy > > > in a header under include/dt-bindings/. > > > > Shengjiu is actually quoting those integral values, rather than > > those macros, so actually no need copy to include/dt-bindings, > > yet whoever adds this format property to a new DT would need to > > look up the value in a header file under include/uapi. I's just > > wondering if that's okay. > > > > Thanks > Shall I keep this change or drop this change? This version of patch defines the format using those two marcos. So what Rob suggested is to copy those defines from uapi header file to dt-bindings folder. But you don't intend to do that? My follow-up mail is to find if using integral values is doable. Yet, not seeing any reply further. I think you can make a choice to send it -- We will see how Rob acks eventually, or not.