From patchwork Tue Nov 3 01:33:55 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Caesar Wang X-Patchwork-Id: 7539201 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 CA8F0BEEA4 for ; Tue, 3 Nov 2015 01:35:55 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 08B6C203A5 for ; Tue, 3 Nov 2015 01:35:55 +0000 (UTC) Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) by mail.kernel.org (Postfix) with ESMTP id C71E4202EB for ; Tue, 3 Nov 2015 01:35:53 +0000 (UTC) Received: by alsa0.perex.cz (Postfix, from userid 1000) id C376E26513A; Tue, 3 Nov 2015 02:35:52 +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=-2.6 required=5.0 tests=BAYES_00,NO_DNS_FOR_FROM, RCVD_IN_DNSWL_LOW, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 Received: from alsa0.perex.cz (localhost [127.0.0.1]) by alsa0.perex.cz (Postfix) with ESMTP id 7225926510A; Tue, 3 Nov 2015 02:35:00 +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 E044F264F50; Tue, 3 Nov 2015 02:34:58 +0100 (CET) Received: from mail-pa0-f47.google.com (mail-pa0-f47.google.com [209.85.220.47]) by alsa0.perex.cz (Postfix) with ESMTP id 7909F264F19 for ; Tue, 3 Nov 2015 02:34:35 +0100 (CET) Received: by pasz6 with SMTP id z6so2615390pas.2 for ; Mon, 02 Nov 2015 17:34:34 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=8PdHMJ7Pk4lFokdQA0zlTq5hhr2b4zISlt6OSbC7jxE=; b=UEV1NeCMchM12oNa5nxXAfrfxchbEVahC47iKxQQBBS3rzipKv7AsrjFnxF3eqNMpD +Gg43RkSEjC5Kse7ZBzRUtHxPZeUQM8mLixMCP1zll+CLSQrAwenfYVCtY3ATTBCOzbH KJjdl5fPYvw8C9PsU+5uFlJtu3Bqh8Z5j2TRg7rXiZqOOY07pXp+qiNDxnGZwiciSC4O lj5+fUyexVnYjwjmVKolBWA9JDIB+tLMe2a6C3NY+io5H9vj4phijWPvLIVpC0o4jNw2 L/u6DFWXQgl89CwXfmH3dnHamrqjDzg9WJG64jF4/RXThC9zdRqJZmJIC+NF8zycgMpf 2b0Q== X-Received: by 10.68.179.101 with SMTP id df5mr30576769pbc.73.1446514474690; Mon, 02 Nov 2015 17:34:34 -0800 (PST) Received: from localhost.localdomain ([103.47.144.138]) by smtp.gmail.com with ESMTPSA id yp5sm26371345pac.38.2015.11.02.17.34.26 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 02 Nov 2015 17:34:34 -0800 (PST) From: Caesar Wang To: Heiko Stuebner , Mark Brown Date: Tue, 3 Nov 2015 09:33:55 +0800 Message-Id: <1446514438-13922-3-git-send-email-wxt@rock-chips.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1446514438-13922-1-git-send-email-wxt@rock-chips.com> References: <1446514438-13922-1-git-send-email-wxt@rock-chips.com> Cc: alsa-devel@alsa-project.org, Liam Girdwood , linux-kernel@vger.kernel.org, Takashi Iwai , Doug Anderson , linux-rockchip@lists.infradead.org, Dylan Reid , Cheng-Yi Chiang , Sonny Rao , linux-arm-kernel@lists.infradead.org, Caesar Wang Subject: [alsa-devel] [PATCH v1 2/5] ASoC: rockchip-max98090: Allow more sample rates 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 The MAX98090 audio codec support sample rates from 8 to 96 kHz as the dai claim. Signed-off-by: Caesar Wang --- Changes in v1: None sound/soc/rockchip/rockchip_max98090.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/sound/soc/rockchip/rockchip_max98090.c b/sound/soc/rockchip/rockchip_max98090.c index 26567b1..a6ff221 100644 --- a/sound/soc/rockchip/rockchip_max98090.c +++ b/sound/soc/rockchip/rockchip_max98090.c @@ -80,11 +80,16 @@ static int rk_aif1_hw_params(struct snd_pcm_substream *substream, switch (params_rate(params)) { case 8000: case 16000: + case 24000: + case 32000: case 48000: case 96000: mclk = 12288000; break; + case 11025: + case 22050: case 44100: + case 88200: mclk = 11289600; break; default: