Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp365305ybz; Wed, 15 Apr 2020 10:10:06 -0700 (PDT) X-Google-Smtp-Source: APiQypJPayxzkAiRodLQQVQewocDcA+uNhT5kGv6N3YZaVXcA5ynyTMaICbCau9bOFDKGt+uBRDM X-Received: by 2002:a05:6402:609:: with SMTP id n9mr22104865edv.352.1586970606749; Wed, 15 Apr 2020 10:10:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1586970606; cv=none; d=google.com; s=arc-20160816; b=D8MUA/3JIDlpDNlVPvmfPouB/iOX35XMbKmBaELp6k4qzzGCeXMV9ZP0+nPn4QQvVG 6aRRbk+w1t6cnLyQTBC5Mc8gDUzEMIMDQNHQZFt2a83L+e0iMBDiRAkxnFIekIQNIHUu sXb07qiVmfWFEalDeJtwO0lnH3f/I3ssbj2PL/bhfyfJOIFjYAahVUzgdrL3YWjsKETH CpOPumLlqq3ZqpIQzwkbASSn5gXrqdiTnjCAFdVV2cmflAlIj/NzaCEjwPNSeVw4QVJm qBApelPxKv6YXxJVQGKnPLSyBkPZWhLdfuQ2Z/SHBuXYZpYhKLcfXq7Y3KYXf2apU0xZ 9HDA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:references :in-reply-to:message-id:date:subject:cc:to:from; bh=No16Zm2HE5m1bft+zP4WzV4nwyz3axt5molooS3zY68=; b=HOUW9v6uGdslkJ4FhvRSHWXFpJmHJ3317f0ZDIJePR3L8te0c2pZsj77E/rJ7AT+rE W8d38IfhTICW7FoSPmGBDGaPOr/Ad7pI293a6L1TRZbbIH6s8DT0kmO81FZ+IvcQVIRQ 46Q7wgtCEa02RVxZTny3KfLtqcRRPrqNJRaCXwPyOzRMT6s112NWF+c/cPHbyArZ0Bvz pjGg8S1sWzT8K2fR57gRc6UiCbRZNrNZ5DT/QKai18PBtnWCxTQPIa+Za3H8joKCWJ+Z 6nyUHZFlOIbYnE1nCRi8nv/aE0I3YCLakFbvJpmn3R8gK2kCd1A1p5deCRFSxMABnDyl jXVA== 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 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id qn16si5632243ejb.66.2020.04.15.10.09.27; Wed, 15 Apr 2020 10:10:06 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2406325AbgDNHEd (ORCPT + 99 others); Tue, 14 Apr 2020 03:04:33 -0400 Received: from inva021.nxp.com ([92.121.34.21]:55970 "EHLO inva021.nxp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2406310AbgDNHEa (ORCPT ); Tue, 14 Apr 2020 03:04:30 -0400 Received: from inva021.nxp.com (localhost [127.0.0.1]) by inva021.eu-rdc02.nxp.com (Postfix) with ESMTP id 9B99120005B; Tue, 14 Apr 2020 09:04:28 +0200 (CEST) Received: from invc005.ap-rdc01.nxp.com (invc005.ap-rdc01.nxp.com [165.114.16.14]) by inva021.eu-rdc02.nxp.com (Postfix) with ESMTP id 0053D200336; Tue, 14 Apr 2020 09:04:23 +0200 (CEST) Received: from localhost.localdomain (shlinux2.ap.freescale.net [10.192.224.44]) by invc005.ap-rdc01.nxp.com (Postfix) with ESMTP id DDE8A402E2; Tue, 14 Apr 2020 15:04:15 +0800 (SGT) From: Shengjiu Wang To: timur@kernel.org, nicoleotsuka@gmail.com, 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 Cc: linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org Subject: [PATCH v8 2/7] ASoC: dt-bindings: fsl_asrc: Add new property fsl,asrc-format Date: Tue, 14 Apr 2020 14:56:02 +0800 Message-Id: X-Mailer: git-send-email 2.7.4 In-Reply-To: References: In-Reply-To: References: X-Virus-Scanned: ClamAV using ClamSMTP Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 Acked-by: Nicolin Chen --- Documentation/devicetree/bindings/sound/fsl,asrc.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Documentation/devicetree/bindings/sound/fsl,asrc.txt b/Documentation/devicetree/bindings/sound/fsl,asrc.txt index cb9a25165503..998b4c8a7f78 100644 --- a/Documentation/devicetree/bindings/sound/fsl,asrc.txt +++ b/Documentation/devicetree/bindings/sound/fsl,asrc.txt @@ -51,6 +51,10 @@ 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 2 (S16_LE), or 6 (S24_LE). + Example: asrc: asrc@2034000 { -- 2.21.0