Received: by 2002:a25:e7d8:0:0:0:0:0 with SMTP id e207csp2065475ybh; Sun, 8 Mar 2020 21:07:03 -0700 (PDT) X-Google-Smtp-Source: ADFU+vsQoAgX8JIg/tX8b+0/3AfWzrvU01G2czZtXGMpUelNfMxQ7uK1P+pk1wigT54FiCtRPJ9a X-Received: by 2002:a05:6808:618:: with SMTP id y24mr9752770oih.3.1583726823789; Sun, 08 Mar 2020 21:07:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1583726823; cv=none; d=google.com; s=arc-20160816; b=afcMvcYzgqo8naemY59KfpZpI4qXbB0JZjBsBv/AFLM/8vaT/55fJVUPdRXkBraG1g 2PsDyICv9+RxcWUOwm1SIzTm8AcGvJetK7Fn0gEfaujStmYz/OOl6y5FmiMjI1+SZ6MI jdMbT+gpCCXx9kcsXBcUPLHyq3C/rAZ7zHzZqHPRqPaLmGCv2p8XJ3E5EMVja/nG1w4v 5hIKZb1BSzepk9eaD7o0W9DLYe6E+ayLizqJeFXk/r3hLxn7DaA3yZWaYm6BpXxgsjQg r03+SuFnDKFlWtdBvUkt51bcdIetkB9tqUK1Vd7+OwuYqzPq31AHJOufrfCoGLTmhnxK W1rQ== 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=cNAO7txDnT8/3hi7gOqN/W5lFJh32AkqBcPasgHyPiA=; b=W5vc0w82yiekSc9eDch0Kc2nLRqyphNvjM4LnFaKueFz/pdcjgb8oB+f5xE1iWECza PLTGhmvAQzkqTJNNEIhLw+tI4vtqDDoiH4kJnO9LVj217pBJLlyq0OmjFf0dEUCcdunZ 48NmmTq43hYvQFs6535dlOenPsK/AoBdQSx8jt+7470dpQBR5CA8xeVjiYL+AdvmijhU 0INO9C8vEnzJQry1wVLjClFokIDgkq0hniU7q2SEgjB6Q2x6emIoKjwM3BDvf5KWAGzW KKje4ecBOeYJh78djIgZo0VN5WUrLzq4N1Yr34lqr3PBhx0Y9ZD16AZMdTLxc6O/NfzB FEow== 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=nxp.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id r12si5183728otp.98.2020.03.08.21.06.51; Sun, 08 Mar 2020 21:07:03 -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=nxp.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726539AbgCIEFb (ORCPT + 99 others); Mon, 9 Mar 2020 00:05:31 -0400 Received: from inva021.nxp.com ([92.121.34.21]:37758 "EHLO inva021.nxp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725811AbgCIEFa (ORCPT ); Mon, 9 Mar 2020 00:05:30 -0400 Received: from inva021.nxp.com (localhost [127.0.0.1]) by inva021.eu-rdc02.nxp.com (Postfix) with ESMTP id D73822015B5; Mon, 9 Mar 2020 05:05:28 +0100 (CET) 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 BF7AD2015AB; Mon, 9 Mar 2020 05:05:21 +0100 (CET) Received: from localhost.localdomain (shlinux2.ap.freescale.net [10.192.224.44]) by invc005.ap-rdc01.nxp.com (Postfix) with ESMTP id A4786402CA; Mon, 9 Mar 2020 12:05:12 +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 v5 1/7] ASoC: dt-bindings: fsl_asrc: Add new property fsl,asrc-format Date: Mon, 9 Mar 2020 11:58:28 +0800 Message-Id: <24f69c50925b93afd7a706bd888ee25d27247c78.1583725533.git.shengjiu.wang@nxp.com> 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 --- 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 + Example: asrc: asrc@2034000 { -- 2.21.0