From patchwork Mon Feb 8 14:04:53 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Axel Lin X-Patchwork-Id: 8249901 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 AD564BEEE5 for ; Mon, 8 Feb 2016 14:05:17 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id DF194203A9 for ; Mon, 8 Feb 2016 14:05:16 +0000 (UTC) Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) by mail.kernel.org (Postfix) with ESMTP id EFE3D2017D for ; Mon, 8 Feb 2016 14:05:11 +0000 (UTC) Received: by alsa0.perex.cz (Postfix, from userid 1000) id 2C9AD260515; Mon, 8 Feb 2016 15:05:10 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org 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 0D45B2605C1; Mon, 8 Feb 2016 15:05:06 +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 64537260609; Mon, 8 Feb 2016 15:05:05 +0100 (CET) Received: from mail-pa0-f53.google.com (mail-pa0-f53.google.com [209.85.220.53]) by alsa0.perex.cz (Postfix) with ESMTP id BB16E260515 for ; Mon, 8 Feb 2016 15:04:59 +0100 (CET) Received: by mail-pa0-f53.google.com with SMTP id yy13so74131020pab.3 for ; Mon, 08 Feb 2016 06:04:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ingics-com.20150623.gappssmtp.com; s=20150623; h=message-id:subject:from:to:cc:date:content-type:mime-version :content-transfer-encoding; bh=yd7ZYtA6mx3EOArF5ogKsRFle83unnQl5p9mFjZPKNE=; b=Z5UifcOYto03YBKzpJMVv8dqVos4YTBd9xWJx8tMIGKFPzzjP9K/DNTsHbG40B1KYo ap1pg5sFbetU3h/zXEBwM9r8hYW9oawsg8AkYs08ghXE6XqaEhJvZS7p7EVgGZj9xJgT 63YmkAn7hKPd0eBFXZjFkKh9AJ6qIpgnmla8R99Ud20WsND805ljvOxy38wRpuv3DXNJ DtGpCdFuPZ5qq2LMHpGfoTmwF1ZGmNyPAmvmioOw9+bRpfud1pcm6d8QRg2MYCLaiXyy xEGcm6CX1x/O7OZ+McRqxtk47NnBZZuuDKUPVYBaZShzmJOpOSZsj98cB1EsLP04iMyz oYZQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:message-id:subject:from:to:cc:date:content-type :mime-version:content-transfer-encoding; bh=yd7ZYtA6mx3EOArF5ogKsRFle83unnQl5p9mFjZPKNE=; b=TOvb6jpnEB8udPNQJe9MkaUwTPOzHrPGbZKXJZEKffGpbESOl9vjdBTssZXIvjE3mW tWhvxp/TvzHzP/XVtw2ZkQ4HV4U7sPShlPhjjxojiJ6fLvOug4o9Odhc4sVjLjLGfFSw fDIsTOlTsjRufezoJ5lRa0u5QRnKTuFRgOApkcW6dh67mUkD0sA5zyNBrc7ZcaRLG3O3 ybbSAIoWsl/Gk3ysZY2PMc8+JARRlYGL2RrCcS5jOTJWU5Jyz7r4/sNVe0qJBQmSEW+t v5SDPeZoJ+VGt6WlyzZws2S9yZYEaZT0jCGub/28RcnR/socm6AEeMbt7efnlSo1vA8L 0nFw== X-Gm-Message-State: AG10YOS3sgQeEESV9YVa8aZ+ZC/96Sc6bBUCQ3E2sE6+7SZzfabvrnns+PHW7GdlYHc3eg== X-Received: by 10.66.155.167 with SMTP id vx7mr42570024pab.109.1454940298858; Mon, 08 Feb 2016 06:04:58 -0800 (PST) Received: from phoenix (223-137-196-6.EMOME-IP.hinet.net. [223.137.196.6]) by smtp.gmail.com with ESMTPSA id b63sm43867519pfj.25.2016.02.08.06.04.55 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 08 Feb 2016 06:04:57 -0800 (PST) Message-ID: <1454940293.6265.1.camel@ingics.com> From: Axel Lin To: Mark Brown Date: Mon, 08 Feb 2016 22:04:53 +0800 X-Mailer: Evolution 3.12.11-0ubuntu3 Mime-Version: 1.0 Cc: Oder Chiou , Bard Liao , alsa-devel@alsa-project.org, Liam Girdwood Subject: [alsa-devel] [PATCH] ASoC: rt5514: Fix up calculation for bclk_ms 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: , Errors-To: alsa-devel-bounces@alsa-project.org Sender: alsa-devel-bounces@alsa-project.org X-Virus-Scanned: ClamAV using ClamSMTP The equation to calculate bclk_ms is wrong, fix it. Signed-off-by: Axel Lin --- sound/soc/codecs/rt5514.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/soc/codecs/rt5514.c b/sound/soc/codecs/rt5514.c index 879bf60..5bfe720 100644 --- a/sound/soc/codecs/rt5514.c +++ b/sound/soc/codecs/rt5514.c @@ -574,7 +574,7 @@ static int rt5514_hw_params(struct snd_pcm_substream *substream, return -EINVAL; } - bclk_ms = frame_size > 32; + bclk_ms = frame_size >> 32; rt5514->bclk = rt5514->lrck * (32 << bclk_ms); dev_dbg(dai->dev, "bclk is %dHz and lrck is %dHz\n",