Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp1235899ybz; Thu, 16 Apr 2020 05:36:09 -0700 (PDT) X-Google-Smtp-Source: APiQypICL8n9Mr4IjqOiLf6AUz0Gir0O2v+DS9bxjFF3kPwsE86GiNjMocgGkseLhaizdFa8XM4T X-Received: by 2002:aa7:d91a:: with SMTP id a26mr30544218edr.236.1587040569479; Thu, 16 Apr 2020 05:36:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587040569; cv=none; d=google.com; s=arc-20160816; b=BJWxgtUFqfni8N5tgEE5X3qD9EzQW/oXoCBFbKptQrDyrNDT4/n3VtVpR9q2bpL88S TNlf/TLMsn5IjpeuQLIKJfI3Q4JUPdofPWC1KV43yZyPwJH7NAMl6BmJB6I1L0Tg+4Wz /LrSiwYH1AxGPGtb13zuZSOd1O2ntlPuTcNeUuQUa3CilEvkSJNJSOv2SCTVgeQsQztp GXYH8BIFWyb8SOGK8LvAPClgDMxVD6THHX62cGp1UErUHbz7cWLHLg2dt0zXy5wPoqvs QkVNoU4J9d+mVf8iiEcYN+PHP57mj8w/EZ1RAQOjfg1ctHB5sCwfmUtsl4bKAWygP0hV FBzA== 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=wGhn/fNoRua56ROvFAU7sph2+4UT1Zxoi08E87xHUb0=; b=QvSVqfiwNKPzA07qWqKJIH82OnjrsifQEAtTNfvO+deae1AyVBH10Ou4VcTnTC6eoz AHfc4EzDEJsTpvnsMGzPgO2dIJa7LIKrqpSTt1CArbnnPgfD0WmSZTihIwPbUleaV5tq jY7B/sKmvZOc64pnkZ84lNSRkvk6uw0f7z0+Zswa7wdPDXTn93VmaR+YXAs00LFyW+44 PEAIZXY6pXlyCKUJZE058kiwyQZEeP6dJaWsYsvKesld8MpyplsQs+trYdRnTGCRIUeu cOgAi9dP4SRRaae6yzcNPVe1aXPPgRLztLks/kbrxd48o3eJgnBKKlnDRXcfdQdLMG51 y+lA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: 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 g15si11982081eje.418.2020.04.16.05.35.46; Thu, 16 Apr 2020 05:36:09 -0700 (PDT) Received-SPF: pass (google.com: 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: 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 S2635721AbgDPMeO (ORCPT + 99 others); Thu, 16 Apr 2020 08:34:14 -0400 Received: from inva021.nxp.com ([92.121.34.21]:49802 "EHLO inva021.nxp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2635550AbgDPMeA (ORCPT ); Thu, 16 Apr 2020 08:34:00 -0400 Received: from inva021.nxp.com (localhost [127.0.0.1]) by inva021.eu-rdc02.nxp.com (Postfix) with ESMTP id 0CD94200CE4; Thu, 16 Apr 2020 14:33:57 +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 63F4D200CD9; Thu, 16 Apr 2020 14:33:51 +0200 (CEST) Received: from localhost.localdomain (shlinux2.ap.freescale.net [10.192.224.44]) by invc005.ap-rdc01.nxp.com (Postfix) with ESMTP id 57759402FC; Thu, 16 Apr 2020 20:33:44 +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 v9 2/7] ASoC: dt-bindings: fsl_asrc: Add new property fsl,asrc-format Date: Thu, 16 Apr 2020 20:25:32 +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 Acked-by: Rob Herring --- 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