Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp247131ybb; Wed, 15 Apr 2020 00:13:46 -0700 (PDT) X-Google-Smtp-Source: APiQypI7Z7EUpSyMFFao9kvwfmWM1pqTenWB4sSk3MGuY2atk9rvcxXIHJIlUTKWuLd+H2O6CMuX X-Received: by 2002:a50:9d06:: with SMTP id v6mr24643521ede.189.1586934825886; Wed, 15 Apr 2020 00:13:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1586934825; cv=none; d=google.com; s=arc-20160816; b=UR5BkZiyEK6IU4hwDiaag8t6EQ2R0681YR9CU9EYLOc3VbLdE2idsrZDaqHNYPr8fW s/Ok6QnmtiPtoq5F/WyXzNpUsIN+KKMgMaw/D4DDlzytpFEUVb7jNOCUVQFmMZeCQAGK 3vPQ9KqRSMJLglAAHV0TgNQRWH/s1GIAlD7SoyumhIcn/DiAEP8gWalzEOb6xR6t+E0s 8G0oQjUZFJw/f86KKfOtmWzGkSGAisXDSAlBbAiSnPrxiNNzqDnP611g2ymMlshQehAT AI9Z1zKQmEF4SaxTuZrydxDay/+f6YWGtmRH3HRfjUQijqQacEyEGTB7pA3qFBggL2yv Zxcw== 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=QNgXFZhI4S6mUChj8Oakuh35jKVYjVfY30LCH2urR83D82RrqDbgAjqTQYTA7BbvIi 2E3c8dVmytAstxc8sHhAMMtB60ucpIJhAZEHgPhAjjt5pxjt2AnK9HWzNW2pS9GXu2C0 A2Wu8X02SFUkqt1mBJRr/csx6g8JFSbNq7xjzyaQd3FzHXd0t7RqPmyrEm0hK3W92YsV 0mGqtoEs+96deFNVPQayeGVPMy683tSGp5HJokSRNzLndhVw7R+ioPyTiX1OXVrQE9oO /oHPua9IHr6qxPbQBzExYNSiyWryfT3Bp7OlKCc0/PNSdCzSBfJay9dLaSQ3r7Q5nB+j Pw3A== 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 w13si9450456edi.434.2020.04.15.00.13.20; Wed, 15 Apr 2020 00:13:45 -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 S2390588AbgDNAve (ORCPT + 99 others); Mon, 13 Apr 2020 20:51:34 -0400 Received: from inva020.nxp.com ([92.121.34.13]:56584 "EHLO inva020.nxp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2390570AbgDNAv2 (ORCPT ); Mon, 13 Apr 2020 20:51:28 -0400 Received: from inva020.nxp.com (localhost [127.0.0.1]) by inva020.eu-rdc02.nxp.com (Postfix) with ESMTP id E56141A025D; Tue, 14 Apr 2020 02:51:26 +0200 (CEST) Received: from invc005.ap-rdc01.nxp.com (invc005.ap-rdc01.nxp.com [165.114.16.14]) by inva020.eu-rdc02.nxp.com (Postfix) with ESMTP id 486621A0231; Tue, 14 Apr 2020 02:51:21 +0200 (CEST) Received: from localhost.localdomain (shlinux2.ap.freescale.net [10.192.224.44]) by invc005.ap-rdc01.nxp.com (Postfix) with ESMTP id 2E8FE402D8; Tue, 14 Apr 2020 08:51:14 +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 v7 2/7] ASoC: dt-bindings: fsl_asrc: Add new property fsl,asrc-format Date: Tue, 14 Apr 2020 08:43:04 +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