From patchwork Sun Jun 19 17:52:19 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: DigitalDreamtime X-Patchwork-Id: 9186217 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 624586075E for ; Sun, 19 Jun 2016 17:55:03 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 50B91201F5 for ; Sun, 19 Jun 2016 17:55:03 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 428C5205AB; Sun, 19 Jun 2016 17:55:03 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.1 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_MED,T_DKIM_INVALID autolearn=ham version=3.3.1 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.wl.linuxfoundation.org (Postfix) with ESMTPS id A7DBF201F5 for ; Sun, 19 Jun 2016 17:55:02 +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 1bEgu7-0001Mw-2r; Sun, 19 Jun 2016 17:53:03 +0000 Received: from barcelona.digitaldreamtime.co.uk ([85.158.46.130] helo=mail.dreamtime.org) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1bEgu1-0001KU-9K; Sun, 19 Jun 2016 17:52:58 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=dreamtime.org; s=dt20140624; h=Message-Id:Date:Subject:Cc:To:From; bh=zbx7ywVvDnpyc7TRXi4P5OPTcMUbWQ/6e8vEYcvQqBY=; b=JJ/pZHT1J1IuYVUrpbydqvlV4CZ14F0idTkeshhpP0upOwwCwk39tw+wC6Jg8M52e1NyQBYxm1Hqd8d8wkuU7RQb/rUMMmdcZGcIlmFXNM7Gy87hL9vt3QsPTyDO6AC1ieXhfK8YoLKk+dgz+w8slWKURs/nevarOB4YLNwZ9bLD92Ul2VXkNwG4BlAnoySkkcViQDHjrtorIZttdGD+PYgp3l+cHyHRhnS2ptQ0z8AaVKN1p7jmHdNiiZc4DyF7XcBxgHBAnAmmxXoreBpDijxIGo8uN4ls8uA3tSt+y3EWchP2uVLWbUWS2Urf1TC50R6nJvVMH+FkFlAzMcs1vg==; Received: from host-2-96-144-62.as13285.net ([2.96.144.62] helo=e5530.vacuumtube.org.uk) by mail.dreamtime.org with esmtpsa (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1bEgtb-0003t8-NB; Sun, 19 Jun 2016 17:52:31 +0000 From: Clive Messer To: linux-rpi-kernel@lists.infradead.org Subject: [PATCH 1/1] ASoC: bcm2835-i2s: Support 384k sample rate Date: Sun, 19 Jun 2016 18:52:19 +0100 Message-Id: <1466358739-31669-1-git-send-email-clive.messer@digitaldreamtime.co.uk> X-Mailer: git-send-email 2.5.5 X-SA-Exim-Connect-IP: 2.96.144.62 X-SA-Exim-Mail-From: clive.messer@digitaldreamtime.co.uk X-SA-Exim-Scanned: No (on mail.dreamtime.org); SAEximRunCond expanded to false X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20160619_105257_828262_E06B3B09 X-CRM114-Status: UNSURE ( 8.34 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: alsa-devel@alsa-project.org, Clive Messer , linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP Add support for sample rates up to 384k to bcm2835-i2s driver, with SNDRV_PCM_RATE_CONTINUOUS and specifying 8k min and 384k max, for both playback and capture. Signed-off-by: Clive Messer Reviewed-by: Eric Anholt --- sound/soc/bcm/bcm2835-i2s.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/sound/soc/bcm/bcm2835-i2s.c b/sound/soc/bcm/bcm2835-i2s.c index 6ba2049..4a67db2 100644 --- a/sound/soc/bcm/bcm2835-i2s.c +++ b/sound/soc/bcm/bcm2835-i2s.c @@ -578,7 +578,9 @@ static struct snd_soc_dai_driver bcm2835_i2s_dai = { .playback = { .channels_min = 2, .channels_max = 2, - .rates = SNDRV_PCM_RATE_8000_192000, + .rates = SNDRV_PCM_RATE_CONTINUOUS, + .rate_min = 8000, + .rate_max = 384000, .formats = SNDRV_PCM_FMTBIT_S16_LE | SNDRV_PCM_FMTBIT_S24_LE | SNDRV_PCM_FMTBIT_S32_LE @@ -586,7 +588,9 @@ static struct snd_soc_dai_driver bcm2835_i2s_dai = { .capture = { .channels_min = 2, .channels_max = 2, - .rates = SNDRV_PCM_RATE_8000_192000, + .rates = SNDRV_PCM_RATE_CONTINUOUS, + .rate_min = 8000, + .rate_max = 384000, .formats = SNDRV_PCM_FMTBIT_S16_LE | SNDRV_PCM_FMTBIT_S24_LE | SNDRV_PCM_FMTBIT_S32_LE