From patchwork Thu Aug 28 15:54:10 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Paul Handrigan X-Patchwork-Id: 4812791 Return-Path: X-Original-To: patchwork-alsa-devel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 214249F2A9 for ; Fri, 29 Aug 2014 22:13:35 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 613882013A for ; Fri, 29 Aug 2014 22:13:34 +0000 (UTC) Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) by mail.kernel.org (Postfix) with ESMTP id BCA4F2012F for ; Fri, 29 Aug 2014 22:13:32 +0000 (UTC) Received: by alsa0.perex.cz (Postfix, from userid 1000) id A8A41265B8F; Sat, 30 Aug 2014 00:13:31 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 Received: from alsa0.perex.cz (localhost [IPv6:::1]) by alsa0.perex.cz (Postfix) with ESMTP id B03F826549A; Fri, 29 Aug 2014 19:15:44 +0200 (CEST) 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 C48F1265476; Fri, 29 Aug 2014 19:15:43 +0200 (CEST) Received: from na01-bn1-obe.outbound.protection.outlook.com (mail-bn1blp0189.outbound.protection.outlook.com [207.46.163.189]) by alsa0.perex.cz (Postfix) with ESMTP id 181932664E5 for ; Thu, 28 Aug 2014 17:54:41 +0200 (CEST) Received: from BN1AFFO11FD035.protection.gbl (10.58.52.32) by BN1AFFO11HUB045.protection.gbl (10.58.52.156) with Microsoft SMTP Server (TLS) id 15.0.1010.11; Thu, 28 Aug 2014 15:54:39 +0000 Received: from mail1.cirrus.com (141.131.3.20) by BN1AFFO11FD035.mail.protection.outlook.com (10.58.52.159) with Microsoft SMTP Server id 15.0.1010.11 via Frontend Transport; Thu, 28 Aug 2014 15:54:38 +0000 Received: from ex3.ad.cirrus.com (ex3.ad.cirrus.com [141.131.36.34]) by mail1.cirrus.com (Postfix) with ESMTP id 1261E34032; Thu, 28 Aug 2014 10:56:59 -0500 (CDT) Received: from localhost (141.131.108.102) by EX3.ad.cirrus.com (141.131.36.39) with Microsoft SMTP Server id 14.3.174.1; Thu, 28 Aug 2014 10:54:38 -0500 From: Paul Handrigan To: Date: Thu, 28 Aug 2014 10:54:10 -0500 Message-ID: <1409241250-22097-3-git-send-email-Paul.Handrigan@cirrus.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1409241250-22097-1-git-send-email-Paul.Handrigan@cirrus.com> References: <1409241250-22097-1-git-send-email-Paul.Handrigan@cirrus.com> MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-Forefront-Antispam-Report: CIP:141.131.3.20; CTRY:US; IPV:NLI; EFV:NLI; SFV:NSPM; SFS:(6009001)(438002)(199003)(189002)(107046002)(229853001)(62966002)(64706001)(110136001)(50466002)(46102001)(81542001)(2351001)(106466001)(95666004)(77096002)(81342001)(77982001)(79102001)(20776003)(23676002)(80022001)(47776003)(92566001)(50226001)(36756003)(99396002)(74502001)(76506005)(89996001)(88136002)(74662001)(87936001)(85852003)(102836001)(4396001)(87286001)(31966008)(57986006)(76482001)(76176999)(50986999)(19580405001)(92726001)(83322001)(83072002)(86362001)(104166001)(85306004)(93916002)(77156001)(19580395003)(44976005)(21056001)(90102001); DIR:OUT; SFP:; SCL:1; SRVR:BN1AFFO11HUB045; H:mail1.cirrus.com; FPR:; MLV:sfv; PTR:mail1.cirrus.com; A:1; MX:1; LANG:en; X-Microsoft-Antispam: BCL:0;PCL:0;RULEID:;UriScan:; X-Forefront-PRVS: 031763BCAF Received-SPF: Pass (protection.outlook.com: domain of cirrus.com designates 141.131.3.20 as permitted sender) receiver=protection.outlook.com; client-ip=141.131.3.20; helo=mail1.cirrus.com; Authentication-Results: spf=pass (sender IP is 141.131.3.20) smtp.mailfrom=Paul.Handrigan@cirrus.com; X-OriginatorOrg: cirrus.com Cc: brian.austin@cirrus.com, broonie@kernel.org, lgirdwood@gmail.com, Paul Handrigan , zoltan@raspberrypi.org Subject: [alsa-devel] [PATCH 3/3] Add bit shifts to set the correct functional mode and the correct clock divider. 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 Reported-by: Zoltán Szenczi Signed-off-by: Paul Handrigan --- sound/soc/codecs/cs4265.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sound/soc/codecs/cs4265.c b/sound/soc/codecs/cs4265.c index c31d29d..e299948 100644 --- a/sound/soc/codecs/cs4265.c +++ b/sound/soc/codecs/cs4265.c @@ -436,10 +436,10 @@ static int cs4265_pcm_hw_params(struct snd_pcm_substream *substream, index = cs4265_get_clk_index(cs4265->sysclk, params_rate(params)); if (index >= 0) { snd_soc_update_bits(codec, CS4265_ADC_CTL, - CS4265_ADC_FM, clk_map_table[index].fm_mode); + CS4265_ADC_FM, clk_map_table[index].fm_mode << 6); snd_soc_update_bits(codec, CS4265_MCLK_FREQ, CS4265_MCLK_FREQ_MASK, - clk_map_table[index].mclkdiv); + clk_map_table[index].mclkdiv << 4); } else { dev_err(codec->dev, "can't get correct mclk\n");