From patchwork Sat Jan 9 22:47:58 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michael Nazzareno Trimarchi X-Patchwork-Id: 7993791 Return-Path: X-Original-To: patchwork-alsa-devel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id C1290BEEE5 for ; Sat, 9 Jan 2016 22:48:19 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 0D5D5202B8 for ; Sat, 9 Jan 2016 22:48:19 +0000 (UTC) Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) by mail.kernel.org (Postfix) with ESMTP id D5ADD2024C for ; Sat, 9 Jan 2016 22:48:17 +0000 (UTC) Received: by alsa0.perex.cz (Postfix, from userid 1000) id C58EC2605E1; Sat, 9 Jan 2016 23:48:16 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Spam-Level: X-Spam-Status: No, score=-1.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_NONE, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=no version=3.3.1 Received: from alsa0.perex.cz (localhost [127.0.0.1]) by alsa0.perex.cz (Postfix) with ESMTP id 37A71260542; Sat, 9 Jan 2016 23:48:08 +0100 (CET) X-Original-To: alsa-devel@alsa-project.org Delivered-To: alsa-devel@alsa-project.org Received: by alsa0.perex.cz (Postfix, from userid 1000) id 01440260545; Sat, 9 Jan 2016 23:48:06 +0100 (CET) Received: from mail-wm0-f52.google.com (mail-wm0-f52.google.com [74.125.82.52]) by alsa0.perex.cz (Postfix) with ESMTP id 37A8926052B for ; Sat, 9 Jan 2016 23:48:01 +0100 (CET) Received: by mail-wm0-f52.google.com with SMTP id b14so218856032wmb.1 for ; Sat, 09 Jan 2016 14:48:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id; bh=6JIGzK+K/KaKL6Ee6zmOYlQDFOAJfUTS+P3CjtovPgc=; b=DWcCtwmLDyPEqSIyONTmkh4D14Egb/Pm3Zz+jkyi2uO/wGpBQQk+tygJ2f+c0Ju/TI 6wiaLuagPEIL5qO4bTbb+FvoBmniNJ9dQ8gluG9Xl/lIdP50XJms7QqdhXtHnkcQra6P q7vvVqBSI7jFHHmVPVzEF02WLYon9SMYe1R5FBuYAnvCHjkUCMre8NAW7Z3/FJxIGkIW Nse94XxOLV5iKB86iwtDxfLghddFkrlPHErUZ2Y+HpwvH/yEBWWrwtfaZnQbvXiH2nlr SyH5gqSIVzNBYzL2AY84aO9PzOLwQSZ79y8br+WJkVmG5pPj2/0A4YIz22dlmM2EOagu Q+FQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=6JIGzK+K/KaKL6Ee6zmOYlQDFOAJfUTS+P3CjtovPgc=; b=UQEkd8X63GHQpQdF2GaXRvUKPB0UCbU5bIbMBUf/BdHbyAXEi119Uims7rZjZ38eLH 40dE9c7fbzghNYSBgkyKq4HenkSOspri/4+Dvp1kwNgdgC8YeCAyxHnGGrMZnh3XnRIC YSsDb0kaQlJSQY7b6Mw8ttjB0onJpCmHbdXpQFg1OQhGeht5+S2CmTIG2pRay+xNg0RQ v3sD7RcHxFavC6dqJn5ewup63e3eDm43+EY3zCTYXZ4MASBCJFjep0f5QXTxOJU1eArb M1WYRDc5KjHh4Tsxodfh7FQLWZ+IDXtW4pP0k+HjjKp5fR5Ol1mUPtYytBP8ara8wp3Q Etiw== X-Gm-Message-State: ALoCoQk50P7wpZx94qVqrIKGZWGr0cuz//3Y8uRWQ+S99vt3gK/sB8m1B8ZZpu6RTxObnejaZJvWZO18GfshHr8KdLlri5Etgw== X-Received: by 10.194.209.129 with SMTP id mm1mr91144166wjc.47.1452379680852; Sat, 09 Jan 2016 14:48:00 -0800 (PST) Received: from panicking.lan (93-34-54-119.ip48.fastwebnet.it. [93.34.54.119]) by smtp.gmail.com with ESMTPSA id t76sm5677782wmd.13.2016.01.09.14.47.59 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sat, 09 Jan 2016 14:47:59 -0800 (PST) From: Michael Trimarchi To: broonie@kernel.org, heiko@sntech.de Date: Sat, 9 Jan 2016 23:47:58 +0100 Message-Id: <1452379678-14160-1-git-send-email-michael@amarulasolutions.com> X-Mailer: git-send-email 2.7.0 Cc: linux-rockchip@lists.infradead.org, alsa-devel@alsa-project.org, michael@amarulasolutions.com Subject: [alsa-devel] [PATCH] ASoC: rockchip: i2s: Add SNDRV_PCM_FMTBIT_S32_LE support X-BeenThere: alsa-devel@alsa-project.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: alsa-devel-bounces@alsa-project.org Sender: alsa-devel-bounces@alsa-project.org X-Virus-Scanned: ClamAV using ClamSMTP Signed-off-by: Michael Trimarchi --- sound/soc/rockchip/rockchip_i2s.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/sound/soc/rockchip/rockchip_i2s.c b/sound/soc/rockchip/rockchip_i2s.c index 58ee645..c35700f 100644 --- a/sound/soc/rockchip/rockchip_i2s.c +++ b/sound/soc/rockchip/rockchip_i2s.c @@ -242,6 +242,9 @@ static int rockchip_i2s_hw_params(struct snd_pcm_substream *substream, case SNDRV_PCM_FORMAT_S24_LE: val |= I2S_TXCR_VDW(24); break; + case SNDRV_PCM_FORMAT_S32_LE: + val |= I2S_TXCR_VDW(32); + break; default: return -EINVAL; } @@ -360,7 +363,8 @@ static struct snd_soc_dai_driver rockchip_i2s_dai = { .formats = (SNDRV_PCM_FMTBIT_S8 | SNDRV_PCM_FMTBIT_S16_LE | SNDRV_PCM_FMTBIT_S20_3LE | - SNDRV_PCM_FMTBIT_S24_LE), + SNDRV_PCM_FMTBIT_S24_LE | + SNDRV_PCM_FMTBIT_S32_LE), }, .capture = { .stream_name = "Capture", @@ -370,7 +374,8 @@ static struct snd_soc_dai_driver rockchip_i2s_dai = { .formats = (SNDRV_PCM_FMTBIT_S8 | SNDRV_PCM_FMTBIT_S16_LE | SNDRV_PCM_FMTBIT_S20_3LE | - SNDRV_PCM_FMTBIT_S24_LE), + SNDRV_PCM_FMTBIT_S24_LE | + SNDRV_PCM_FMTBIT_S32_LE), }, .ops = &rockchip_i2s_dai_ops, .symmetric_rates = 1,