Received: by 2002:a25:e7d8:0:0:0:0:0 with SMTP id e207csp2844467ybh; Mon, 9 Mar 2020 14:20:30 -0700 (PDT) X-Google-Smtp-Source: ADFU+vv1YgR850P5LO9YiMPSzGt3G/1hDS7axjqW0mLEx/c14iZOgk70ZUQPVRJn75QKM4pHomrR X-Received: by 2002:a54:4e96:: with SMTP id c22mr18283oiy.110.1583788830139; Mon, 09 Mar 2020 14:20:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1583788830; cv=none; d=google.com; s=arc-20160816; b=jDJC9F6ELQcisDCaTtEPSStqxiCvYpi8yvGvTg9VMQfLgBmWkh3lc6/imaNLT4vEKY /fxlVeeMyS0emXDtCav3bBRrE9+8BpQcbvT8PAqQ2+IqTCg4zcDXejLv8rWRNPlydOwF dHhb3DO4pqFXzTLxwKGikxU8BPW8QAt+g1mjMiRBjgLyB4jc0gnz7EsBJKLhCDo+XbQW EoseLU1NlvHPzl9El905lzLheudd/plhXqEHNNgQHVH8DXKYTKsp8zYKXAd4M9Bcnay3 MnOOpfQlgdpURROS32vZ4+6k1dvSVCg3hL8UxXdnqPzXpMkJOfo1EDaoX2mQAhjqt30j NM6A== 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=CSeop4EP+cHMLCfdhjpEDfNo8WqTVWutCfl/33ROm+Q=; b=BnB3qzEsAFVQKW2/XokjVp0vwJ2IBqgVOuzFVV9jDIsoJYKberYkxtgevVWoXoRCLA xX20GPgPVMLo6UW/1EtBgTfmJGEIqPIqwQgxoKHQaC4ATTFeBhFmt2WOUqSSMFk7NiZv /6/DOJd3RJccB8wYy+042Z56r4ESlB1TBfpcMgJHET6LuR6cyjiIQJAf3nFLQYPa50I9 TfqJW+xmzTbRRr1Ryb5n/4jn10bBu/Ib9kh9BLeBmLEvgjeMVcYWGTfbDxAwYeYtn8Wa 6xeC79GZ3lvcp/gWJwzQOZ4msLQSQ7Jv3VQeE3yvlZPb+LkuowGafZ0lgAd1LVQw9VHn svlw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=pbO7fa9h; 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 m2si599528otr.270.2020.03.09.14.20.17; Mon, 09 Mar 2020 14:20:30 -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=pbO7fa9h; 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 S1726682AbgCIVTi (ORCPT + 99 others); Mon, 9 Mar 2020 17:19:38 -0400 Received: from mail-pg1-f194.google.com ([209.85.215.194]:33438 "EHLO mail-pg1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726157AbgCIVTi (ORCPT ); Mon, 9 Mar 2020 17:19:38 -0400 Received: by mail-pg1-f194.google.com with SMTP id m5so5306928pgg.0; Mon, 09 Mar 2020 14:19:37 -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=CSeop4EP+cHMLCfdhjpEDfNo8WqTVWutCfl/33ROm+Q=; b=pbO7fa9huNww+H4GhUCnFSIZbuh3Sf/rqL+W+gTUIf64t4U2IixcH4BPbnCSE8qcFS UFQeQYt3s3zs0VatDi9JjRoQ89980G7DbXdtTb6Xv+TFK984PRq8TwylqphaXkExjt9e Xz5NNdc5nN8xwtUgWFNoCG93FRrBhJ+/l9IckYff3HQvEitnWoNN14NCKsfJ2OD9gS4W k+FppLDxkIPBUWhYWJxUiM8VHQ73wgCCs51Fniu84mN3YqmRggft2jiivrPTxzEEvtdq Ui+ObyGCQmX3LzvkIZNhar5QHwGH5uWiu5+IlvyBg1k+SwlLEZI4g9HVM7oMwISqFxyo 6law== 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=CSeop4EP+cHMLCfdhjpEDfNo8WqTVWutCfl/33ROm+Q=; b=ApSjgcWLaZYdUD9WX52ufNSsZ5K0OTlst9Lw5XNi+Q9WpBJQSCY522WgH25j2+wo8p 9WCQqFhtmiKYvOWXx5TVF69RHVfRdIhpDbp3V35aRejba1U1COO/jsqKAHjA99HTuiAj CltQHyqCpalhAn/ifwuAlJQ3OLIws+UP4sIhoPPElH846VKu+H0E0v4wCsdYeuGl022K JLjStQZLHpM1VgsbgBOhjfgT8EmOUUk6NHGK5zJ0L7eQP/LwGPvZvuMVWNAbBwMGXThA 3r3pOdfuAbFdeuVCdJ4S0/EvWrwq7Mh4lzgYQu7q6flNYjn9mn8yha4TRRHJTf3KMf1n UKqw== X-Gm-Message-State: ANhLgQ3JeuzpUKju67E7dthmfvumiJraE45qM/Mc00VRSu+/FxoKrdby bry/wtOp8x43KzkJrCRCOA8= X-Received: by 2002:a63:8f17:: with SMTP id n23mr19033927pgd.161.1583788776473; Mon, 09 Mar 2020 14:19:36 -0700 (PDT) Received: from Asurada-Nvidia.nvidia.com (thunderhill.nvidia.com. [216.228.112.22]) by smtp.gmail.com with ESMTPSA id d10sm448423pjc.34.2020.03.09.14.19.35 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 09 Mar 2020 14:19:35 -0700 (PDT) Date: Mon, 9 Mar 2020 14:19:44 -0700 From: Nicolin Chen To: Shengjiu Wang Cc: timur@kernel.org, Xiubo.Lee@gmail.com, festevam@gmail.com, broonie@kernel.org, alsa-devel@alsa-project.org, lgirdwood@gmail.com, perex@perex.cz, tiwai@suse.com, robh+dt@kernel.org, mark.rutland@arm.com, devicetree@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v5 1/7] ASoC: dt-bindings: fsl_asrc: Add new property fsl,asrc-format Message-ID: <20200309211943.GB11333@Asurada-Nvidia.nvidia.com> References: <24f69c50925b93afd7a706bd888ee25d27247c78.1583725533.git.shengjiu.wang@nxp.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <24f69c50925b93afd7a706bd888ee25d27247c78.1583725533.git.shengjiu.wang@nxp.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 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.