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: 7993801 Return-Path: X-Original-To: patchwork-linux-rockchip@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 1D78ABEEE5 for ; Sat, 9 Jan 2016 22:48:28 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 45A52202BE for ; Sat, 9 Jan 2016 22:48:27 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 6F6D2202B8 for ; Sat, 9 Jan 2016 22:48:26 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1aI2J8-0005YJ-1c; Sat, 09 Jan 2016 22:48:26 +0000 Received: from mail-wm0-x231.google.com ([2a00:1450:400c:c09::231]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1aI2J4-0005Ol-RJ for linux-rockchip@lists.infradead.org; Sat, 09 Jan 2016 22:48:24 +0000 Received: by mail-wm0-x231.google.com with SMTP id u188so174893777wmu.1 for ; Sat, 09 Jan 2016 14:48:02 -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=X+iRHENeag+YrQIYrmyDdWFa8/Ss1R/MA4tszMdTnlw/jZLInwkP4ZmqLeXTS8t3RV /rtT6EnUFkaEtg8tmyzrVt64vG7KdDEpkO7T+amzSheWcp8ymJvEDw65n+CjQrchgn6Q epOcGBYICfIdrrjzQOn5mf3VwVFSlV4ymadD7MvtWugcWi+ds5NLyg3LLgbMVK0efjjN Nq263c4zT6O06SWTf/Fi+ebzAUEc80r4RCrDvzTsjMlBdQUXE/1bTmCcXAapLlaebM05 vYn308w0bDsXbDmgtq7Am+HmQknrqW/3NxOAqecucpRfGvGZZXEAA8I6SJGGM4E8yd02 IHfA== X-Gm-Message-State: ALoCoQk0W4sHpADl6wqbntH/stzFsxFbQMp8Q20kBpGzFGkWyDPuwWgd8IO3AN+vOsEkS5IFdbxZGfrhY4twBgILkXfxuy7aLA== 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 Subject: [PATCH] ASoC: rockchip: i2s: Add SNDRV_PCM_FMTBIT_S32_LE support 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 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20160109_144823_230351_355B3A75 X-CRM114-Status: UNSURE ( 8.63 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -2.6 (--) X-BeenThere: linux-rockchip@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Upstream kernel work for Rockchip platforms List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-rockchip@lists.infradead.org, alsa-devel@alsa-project.org, michael@amarulasolutions.com MIME-Version: 1.0 Sender: "Linux-rockchip" Errors-To: linux-rockchip-bounces+patchwork-linux-rockchip=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-4.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_MED,RP_MATCHES_RCVD,T_DKIM_INVALID,UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.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,