Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp3049798ybb; Mon, 30 Mar 2020 19:29:32 -0700 (PDT) X-Google-Smtp-Source: ADFU+vvn2uE/Anq9mfUBb3L7ke3LycW91C/vjlcVGCk2//f10shcGQMbN+78v5/+PtWDvOoadiI9 X-Received: by 2002:aca:5041:: with SMTP id e62mr678933oib.146.1585621772793; Mon, 30 Mar 2020 19:29:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585621772; cv=none; d=google.com; s=arc-20160816; b=iSshCJAY2O7uwGme/HteQOYW2ul4InUf18HqB42wBsAxHo4jSKMSz+zfoFBLqw7W8l 6pw3gYOvDLhsw9qme+Y0TFvC0Ltj7baCgjfzP5E2vaZKxgA8juiNG2O3+jDZZKY4aQ6H bw6G5F1ltRAJaoJYxnz/Pdgo0vkaK/PESVFpOsv/MBB8/l9ZRo6nU24YfpioBXyJ2FT1 d0bOWG815pyMexYLD90MfPql4+x+ehePLzoDWaTVyfBy16F0cgsVJb1tWEXWeHxc9gRI mjvqiScuLE8T+2FkaXCJbq0HWapRNpfOZCRLA7aICMIBT8KOy+7tjz/9udbE3xlMsb3A ZJkg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=4Eswrbi+TW9i4zBrNR421oAkiEgU39P/E20ccg2jKp0=; b=Z4Qr/aLxuIZBm9o4A/nTTT66c/Q4Br70n2btkKohfGKIGb+imyxSkL/QMOhmCIy3wS YpeqaorZxsErMPq1m8bF7Wb4oY8OvN1tcAayWWmwUcoWmjgdtVpFGQGr4b3uH7Agp8vm lGlF3UY2rX+Qzsbwz9nnIGLC/F87+PxwPjdn5wobSWfYfqKjoZIjX42YF1Xf16yrGlIu MDcXQZh6uEzJcIpbKlVy4rJYjgQvNumU3pMeqFBkAPFN20sSHf0+zCfHEZOfwyRDMYWv b/LK0TzjyyNvl2i+YbyFq6BsBUFUbqGBdBVpIxogS6xDhpNXPyd9F5BnMq7TAScgQYG4 SHMg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=XbufxDdy; 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 a5si5954073oii.181.2020.03.30.19.29.20; Mon, 30 Mar 2020 19:29:32 -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=XbufxDdy; 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 S1729737AbgCaC2i (ORCPT + 99 others); Mon, 30 Mar 2020 22:28:38 -0400 Received: from mail-qt1-f193.google.com ([209.85.160.193]:42846 "EHLO mail-qt1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729591AbgCaC2i (ORCPT ); Mon, 30 Mar 2020 22:28:38 -0400 Received: by mail-qt1-f193.google.com with SMTP id t9so17079426qto.9; Mon, 30 Mar 2020 19:28:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=4Eswrbi+TW9i4zBrNR421oAkiEgU39P/E20ccg2jKp0=; b=XbufxDdyKxF6IxecIKX1ZwR3v13NTl1c0irTPT13iVOAemS1d4QQGPNdE8aX5ZJR7a PRYP7DhKw5BCgxY7SGSzYWNZgaGcWWSc6YGqUcJQu60Lfm4Q4OSUxTA+2thEsMP1fxNR VJwh3EmB3AOXnRQbyYLd1sv5QNoWFYPHe3e7QaLHgo50B+O0+HGrMpsHrGHsmsEZZO9I kg+3wYBZar0w5tO557g0O7FJMVrKJPzT9zL6YdvW2GEVYbw5IdwhUXKbWcQbdUPqfswu eBRpuqpc4K2baE54CChc6Yg8aq9BWGgIZ1HFGX7tAWIF3k1mIqsNGhpbsGFO+pMH5Jui 8/8w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=4Eswrbi+TW9i4zBrNR421oAkiEgU39P/E20ccg2jKp0=; b=ryP/w4jlxmrFVdcf4c7mKVfT4bIp+qu+sFDAiTybFm2uWVfVbS5ns/dlfi9SeT3GcN Xp9LsWDxXN6Hnj4dDWrUzX7wKWjni6XcjvnH7YvoJNJ9aNxzOixtLVhNx+LvRrHZ/lcC jrJr8Iv5R6AEFNFH8aqS6/S3bCH4hQscv85OinnLCkF1TM66oIVdzQD/ThjCWu6vCIJB E+7q/9SMB9ERSVVBvdhk1SUFzIrhC+sZKlZr8rGikB+ZpIFeSmMr8pc5ShFiPtwUBEEA /0XLvUj5lFb8JsVhWMfK/SaOPsAbCWUHTswVLGD79N4v1CoWw4AXcVZhoUJ2L5u0w1Br +IJw== X-Gm-Message-State: ANhLgQ1tDwsrbIgZ/zV5ntzZt+m7TXgtVxsdR59Qoyed11l6G5xsBcID OO/9ZAGaKR4BmF73RCMlHtmXypkHoglsSdEvIHw= X-Received: by 2002:ac8:6f4e:: with SMTP id n14mr2947163qtv.121.1585621716954; Mon, 30 Mar 2020 19:28:36 -0700 (PDT) MIME-Version: 1.0 References: <24f69c50925b93afd7a706bd888ee25d27247c78.1583725533.git.shengjiu.wang@nxp.com> <20200309211943.GB11333@Asurada-Nvidia.nvidia.com> <20200320173213.GA9093@bogus> <20200323212038.GA7527@Asurada-Nvidia.nvidia.com> In-Reply-To: <20200323212038.GA7527@Asurada-Nvidia.nvidia.com> From: Shengjiu Wang Date: Tue, 31 Mar 2020 10:28:25 +0800 Message-ID: Subject: Re: [PATCH v5 1/7] ASoC: dt-bindings: fsl_asrc: Add new property fsl,asrc-format To: Nicolin Chen 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 Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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? best regards wang shengjiu