Received: by 2002:a25:e7d8:0:0:0:0:0 with SMTP id e207csp1178128ybh; Thu, 12 Mar 2020 18:59:02 -0700 (PDT) X-Google-Smtp-Source: ADFU+vvGV5dZk+2dD9oyHkpM8nkL2RR0PSH2saKJ0gjL9v7D5KBicRRvT56qIqt6TkONlaMVbGDY X-Received: by 2002:a05:6830:3154:: with SMTP id c20mr2482413ots.279.1584064742790; Thu, 12 Mar 2020 18:59:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1584064742; cv=none; d=google.com; s=arc-20160816; b=jWScjuY+3Gzgy80KmHpofS/HCYiSyuaghSmfy8NqGWTx/7DMqzZJV1PmZY/H3CydWl oMN0hhqiZWUdb1RcX6c+MiwC0+cYK5utJM3qMJuoozJhxw2hcoU74YBPGIHBROYa4eGL E65Qn0g+3qJIq99Y0twgckY19R9Q7NP+eQSr7sb42ZjgpJAtualfcK0mq8MlxvkTSmWi nqRtE6Xg/XmCeBnIvWdmhOj+IeObHKcB02yWV6ad1LyojUs/nOQPB61MLN4Gv9//F1qh ChCI4ZHaJN57ZaNmeCPE0foNxYwULmQenZyObqE/jcilMXZ8PmRZl2NN/FT8YhHdfk+T kupA== 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=88CKdz/NKjVak04/lN/5uD3uM5mQKrmtijz9vSkeFgg=; b=eDkCPKccq98hmrS9rutNFv957JPk5aMXPIG5sQ5IQTDMaI9GX0RQPevDy61IohHYOF FZIEHrMqcvcbOTDXRt2HO6PrCXV4rCAkEtnWGOOyrPj+bzUaiZUILdtbA+TjrJUoNtc7 P8sFdz9+dBki/Wio0ixZcWdK2zV0DDEeqwLxrSXtfi1XSlqWQlzOO/y7PfRm/KKqxt7s JiRgnB0GWlP57qYaPcXKv/xveWOFvD6eKk/88gguE9Oj01IM/GoqOfY5tLqkD1ndOC7b BT7lVmd4F4snZMvuRDtH508z46t1+EBrhql43skDgXSirg1oYDydDcotsYrDC9DWFDzf LUMQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=pjSAOZwt; 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 h3si3632828otm.254.2020.03.12.18.58.50; Thu, 12 Mar 2020 18:59:02 -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=pjSAOZwt; 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 S1726331AbgCMB6R (ORCPT + 99 others); Thu, 12 Mar 2020 21:58:17 -0400 Received: from mail-qt1-f195.google.com ([209.85.160.195]:37244 "EHLO mail-qt1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726114AbgCMB6R (ORCPT ); Thu, 12 Mar 2020 21:58:17 -0400 Received: by mail-qt1-f195.google.com with SMTP id l20so6287329qtp.4; Thu, 12 Mar 2020 18:58:16 -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=88CKdz/NKjVak04/lN/5uD3uM5mQKrmtijz9vSkeFgg=; b=pjSAOZwt9ryPLjEr9Hn+KApbAgGbTkRLnUUH65gnKwCdCkYwq6qZSG+nWJ2u4BqHK0 tY7/ToQXdluH6nYEh0LlaNONnotFWYeWQs7ksBcJwWZSMbZAKiWOCD/mpDmNLmNx73Zs gCrn6ASGGxo23xeiOF+49pKCeuxy0UG9CtM2APILEqad5ipMKu2R/gDgkETqpzZY0S9l KsgrTyJW49G/BOUCKMgudmmuBywylqv8Xu4EXoXh0YXqE5BxR3lmju3MMUSBinST6SAC uYWe7YaaLMmgtI9jRzkTANe0kcvacI7UN5ylAZgsiCvqfGuyG00pqVMrO+S0hdF49UYM RSNg== 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=88CKdz/NKjVak04/lN/5uD3uM5mQKrmtijz9vSkeFgg=; b=udlrYVGVyAHLu67RuvmwUjZvJeN4PzC1q2oa114gKwLMZNDRE4QIJqCTWctMwHmDoR wc6u4afJkd2aMQ+BcG0pvzGBJSZWFaqbBSN3L06VXhJD+KZoxVqCbEYSOub7JctnSplT lHOgOrWt0yRnDro8swQ12ocN7aXdr00L3/a0wIXSlLxsdh4zjHElsTCOFdiG9t5mMQgT TKiiQfXnjWkRlAXpjlRYZq9DLJ/vu6qoibTqBSk2CEsF2HxnOoq86nKtbekE0JQXcwld KZvtazrmSDZY9MDLTMcCIR1PVNOhAMUHoIh8Y2rdlFhi/1jJOUAIYm7zqVQ8ufRYoZ0q tzuw== X-Gm-Message-State: ANhLgQ03DQsh6lNzIa9OdbLEz/OXtHri+2T4KY7XTzaANq/Xurr0JXir s/xbKvtoM8+px1dtX3QdAhfLKO/tuPhq6HZ5QavsGQ== X-Received: by 2002:ac8:5298:: with SMTP id s24mr10110299qtn.54.1584064696061; Thu, 12 Mar 2020 18:58:16 -0700 (PDT) MIME-Version: 1.0 References: <24f69c50925b93afd7a706bd888ee25d27247c78.1583725533.git.shengjiu.wang@nxp.com> <20200309211943.GB11333@Asurada-Nvidia.nvidia.com> In-Reply-To: <20200309211943.GB11333@Asurada-Nvidia.nvidia.com> From: Shengjiu Wang Date: Fri, 13 Mar 2020 09:58:05 +0800 Message-ID: Subject: Re: [PATCH v5 1/7] ASoC: dt-bindings: fsl_asrc: Add new property fsl,asrc-format To: Nicolin Chen , Rob Herring Cc: Shengjiu Wang , Mark Rutland , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , Linux-ALSA , Timur Tabi , Xiubo Li , linuxppc-dev@lists.ozlabs.org, 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 Rob On Tue, Mar 10, 2020 at 5:20 AM 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. Could you please share your comments or proposal about Nicolin's concern? best regards wang shengjiu