Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp940729ybb; Fri, 20 Mar 2020 10:34:43 -0700 (PDT) X-Google-Smtp-Source: ADFU+vvNAyXm3qEcpC2FfYQc6e/mJ+SjPDwiPWn14oGMx4kQuAWHdFYxyg+QAN4h7BRmru0YD3zM X-Received: by 2002:a9d:694a:: with SMTP id p10mr8160322oto.151.1584725683313; Fri, 20 Mar 2020 10:34:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1584725683; cv=none; d=google.com; s=arc-20160816; b=f90RYOfqKVfStjJnUFnVUZqej8kOxHOyr/8cOZHK8epcovr7Hgy395IO3j/mWQylfi JYO0pKnd3ovjMfEHvZSwbj3U2uOl4agddwU0fScYLFpSkLr8Gvh9amGLaO2Po7jxkojZ 1h0TS1jW+IH6JhuwD7T5su+uH0yNG5uThjsgaoRVPDiEwlehr1fqHDxhc8wBkdtD4ymL itoPK+EhRgQKXfmhiKd6W7do1Th+seNHDwBY1YmOqaqJnyAgFcdCoplzWEeoVecQjL9m W6McdJMJlSo8XMH+d6/Nv91Fn+CBfkGhfkqzHrcg7aMJUO7Bc7wiDzOedcAHC16uWALb E4Ig== 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; bh=FXIfsAVUFp8IJFPm+/hNheLawxwEVeZKgbspez8Hy3A=; b=Nict9/OfaIML9o9HIlfHsmwgWlA0TUIT9p96UJtaOU/vwt4dKTwqgv3lrP3BvPUkHc b7qjU2GljMwUUXQGwLiPt0RTGaNo4kGSu/ddOol8kKbfxZc1hxUqukGEf1VRr0Cy4+K/ wYzhsVrhOdj1Su2+zqA7vBlSp/xKPM2W2KxOKaupNcjfmW0i2qyucJGVt6D7rDUOYKRh Gy0xHWt8TNo+d13Ot/6yEHLGdTWCql4TFd/CxIbcaqkGdU8ABJMaHjDVKi518OwyQS1t HtzCdEmhRkJnJBDxD75aYU3AazdrAvMe86pjbFEz4KHItiJbazh/+1uz+1rMKSeDOZTR bRHQ== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z24si3433151otp.159.2020.03.20.10.34.30; Fri, 20 Mar 2020 10:34:43 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726986AbgCTRcR (ORCPT + 99 others); Fri, 20 Mar 2020 13:32:17 -0400 Received: from mail-il1-f193.google.com ([209.85.166.193]:46100 "EHLO mail-il1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726847AbgCTRcR (ORCPT ); Fri, 20 Mar 2020 13:32:17 -0400 Received: by mail-il1-f193.google.com with SMTP id e8so6291093ilc.13; Fri, 20 Mar 2020 10:32:16 -0700 (PDT) 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=FXIfsAVUFp8IJFPm+/hNheLawxwEVeZKgbspez8Hy3A=; b=NV3q3F1RHAx2DDPQw5wFD8USkxgiYFTwB5BS3nBhoVdgwYTQRjJbamA1hzpGltxNFf ne2Lpf4uE0E2ot/MYx9OW/HsaTjLjyjsUhAIbXdEx22yXe1YVBhqUQCei6xwH/WZlbXs lsFsli4akYyzSqVyu6Z/FP8CfOUyTapktNXPay9blnkEqIk0hsCucoFagE5y7DIK/O7Z FJCx/XQjYbylHp+f2nxDnvn3j4c8A9B4YNguLfVhYWkonPJPzbLhRO7jWe31+MfxIRbs XT3O3ktDy6SvImTjaUN/FyfYG94n70Yv0u+T9kfn9ZDHoMlfzgVD9np56VBMbQ0aSpcy a03w== X-Gm-Message-State: ANhLgQ2R1qWVSWtLIBIKLHRPFqm40Bc4HB1hk5C/6CtkgSFjJ26LqgEb ObDHluqKj6RF3seZ+Pj3sg== X-Received: by 2002:a92:d641:: with SMTP id x1mr9850010ilp.223.1584725536379; Fri, 20 Mar 2020 10:32:16 -0700 (PDT) Received: from rob-hp-laptop ([64.188.179.250]) by smtp.gmail.com with ESMTPSA id j23sm1874792ioa.10.2020.03.20.10.32.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 20 Mar 2020 10:32:15 -0700 (PDT) Received: (nullmailer pid 16573 invoked by uid 1000); Fri, 20 Mar 2020 17:32:13 -0000 Date: Fri, 20 Mar 2020 11:32:13 -0600 From: Rob Herring To: Nicolin Chen Cc: Shengjiu Wang , 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, 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: <20200320173213.GA9093@bogus> References: <24f69c50925b93afd7a706bd888ee25d27247c78.1583725533.git.shengjiu.wang@nxp.com> <20200309211943.GB11333@Asurada-Nvidia.nvidia.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200309211943.GB11333@Asurada-Nvidia.nvidia.com> User-Agent: Mutt/1.10.1 (2018-07-13) 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 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 already have some format definitions for DT. But it does need to be copy in a header under include/dt-bindings/. Rob