From patchwork Thu Apr 6 11:51:53 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Baluta X-Patchwork-Id: 9666915 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 79D2A601EB for ; Thu, 6 Apr 2017 11:52:35 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 662E5283F4 for ; Thu, 6 Apr 2017 11:52:35 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 5807328533; Thu, 6 Apr 2017 11:52:35 +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=-1.8 required=2.0 tests=BAD_ENC_HEADER,BAYES_00, DKIM_SIGNED, RCVD_IN_DNSWL_NONE, T_DKIM_INVALID autolearn=no version=3.3.1 Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 709AE283F4 for ; Thu, 6 Apr 2017 11:52:34 +0000 (UTC) Received: from alsa0.perex.cz (localhost [127.0.0.1]) by alsa0.perex.cz (Postfix) with ESMTP id 3EC9A2672BA; Thu, 6 Apr 2017 13:52:17 +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 28A8C2672AE; Thu, 6 Apr 2017 13:52:16 +0200 (CEST) Received: from EUR03-VE1-obe.outbound.protection.outlook.com (mail-eopbgr50065.outbound.protection.outlook.com [40.107.5.65]) by alsa0.perex.cz (Postfix) with ESMTP id 8516E2672AE for ; Thu, 6 Apr 2017 13:52:08 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=/6UdUxZBOFVUt1fCXroTCn3atN2cePLZSjfF8XO514s=; b=obbTdPBO/2VvQrZBcH0JFRErgY6nfSMO1XzFNOQS2zLx+m+mTKSy4j5+JyXz94zlTNcO9gPgITKYwUo4/QlSCBzmgHb12n1DfEULwv4Tcwj3WG3i0HpjXCTzJOgv9Qbh2yl+8MxPzTvz4uv99rq4APqSJuxsN5CfDdBDMV5ka+k= Authentication-Results: alsa-project.org; dkim=none (message not signed) header.d=none; alsa-project.org; dmarc=none action=none header.from=nxp.com; Received: from fsr-ub1664-118.ea.freescale.net (192.88.146.1) by DBXPR04MB511.eurprd04.prod.outlook.com (10.141.233.16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.991.14; Thu, 6 Apr 2017 11:52:03 +0000 From: Daniel Baluta To: Date: Thu, 6 Apr 2017 14:51:53 +0300 Message-ID: <1491479514-24862-2-git-send-email-daniel.baluta@nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1491479514-24862-1-git-send-email-daniel.baluta@nxp.com> References: <1491479514-24862-1-git-send-email-daniel.baluta@nxp.com> MIME-Version: 1.0 X-Originating-IP: [192.88.146.1] X-ClientProxiedBy: AM4PR0202CA0023.eurprd02.prod.outlook.com (10.171.80.33) To DBXPR04MB511.eurprd04.prod.outlook.com (10.141.233.16) X-MS-Office365-Filtering-Correlation-Id: 2c5604ea-3914-477e-ee24-08d47ce3582b X-MS-Office365-Filtering-HT: Tenant X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(48565401081)(201703131423075)(201703031133081); SRVR:DBXPR04MB511; X-Microsoft-Exchange-Diagnostics: 1; DBXPR04MB511; 3:67/u9CzT02mWeL0jUrLNhh7UumAXS3WoOIu2Mw0QpM6aj/Xnz9MKbmHociX1rqBNFJeQqtBeWVBO3ii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o6fN3dJz5OhZKki6BMHvMOnxGnXitxQ8B4b3snCfxvHA/sQXzGZM7Q2R/s5Mg92ApyxfYPZBESsZ4/w1N+ktjqtTd/6yGG2AJh/lBKKuRzw9kEZSvTZOXLNbrjoorKnzuCsNeU7W+N+KhXcQml3JiCFh6O3Xe2Cx9oKEEBuDr4r0Yp8dbG4XL4NsUr5ug1yNxf1AGh1cbZXfYJznLQ3BlS1haIbHjx8Iqxg0Sh14TYuVPX9t7fumi7llHqMglYxbq703U8Vp8y/ZIxHPnKN3CHojCAqdyOdpBuWSMk1917q6Bf2FtR+8Cy9UD43trVTbHB1GJBYUeelGXNUSYznl9QzbNPQ075cyKb679ciOOb+0do7Y0VAKQFGx9yC5sG4CvMw2R+4yNXyI2A3zFRmucRizbsJhTMDloAQdLqMeozkYlcdRqOIfCRAxPrK4HfjXZUtZBktRMEcC3mlNgQDNkGQwxClmzlM X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(185117386973197); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040450)(601004)(2401047)(8121501046)(5005006)(3002001)(93006095)(93001095)(10201501046)(6055026)(6041248)(201703131423075)(201702281528075)(201703061421075)(20161123555025)(20161123562025)(20161123564025)(20161123560025)(6072148); SRVR:DBXPR04MB511; BCL:0; PCL:0; RULEID:; SRVR:DBXPR04MB511; X-Microsoft-Exchange-Diagnostics: 1; DBXPR04MB511; 4:Z7yR2qfNfAD67g6cxP+X716nCTe3hnILINs1bz7/8JM6KDjSZJXtTYCwQ61249OTwEz6Nxbcl0Kd0RoxTTupFgnNBdUh9PNjlkB05rDgYanMVtJR0suuS6eoerKRExkficaOGefzj/J1fC4RsJIWTdooJWvsnvJfbd3gxqBEbiB/nVeyPXpiaqpe6Jt8Sf3/lJq/hdeFlJdANzWBF7rQGg8vbNmBdksDyOxyLw2S5lKE0tVyF48VXOeBP+4482wHu7pNO+Im2KYxq1JX3tGSRCDDXdC4wbjwgDcZSOGGGSXWl9vw+dACG1fYF/9vBPNlkfXc07Z1JffFi79qQByvtqQAZK+LOdCid4S/KDvd50lSLhQ6JM6ijUmaTtyGSdXv3qewRkrFX3IUBNW5ODAs8TCasEig5SvG5sHD2EyHrnNySb1iLHVoo7+Uun4z6JG18TIthH9yPVbfDhXBWQ6Znt7bL5oazDeip/R5FEeQz3/OFz4yBnt/PpGOz7BOXUF9HbOlRfu1IHFK9xMbD//O4ZhCir+qwLKq64fkz7nEvrLyA7SdALI9mf96y+z3aIgvacStNEjlb/cr9vg0U/DPHqiVHYsR+GK27yVhDsmT5BAARa0vgOhy0C5zAmJZkBknCS7KQsJHgkDJy0JJ9O9c+HZm634GImAZcW4m9zWoNtQZxM8416WYZvWqmOIigDP3D+gvj4C813rGtHIPIeB3Px83HsRIaYpRE0NIxev5d9t0smyhvxmvmfsS3BkladdfKxZPgQXaz1TxuURQW0vcRg== X-Forefront-PRVS: 02698DF457 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(4630300001)(6009001)(39840400002)(39860400002)(39410400002)(39400400002)(39850400002)(39450400003)(86362001)(54906002)(7736002)(2351001)(110136004)(6506006)(3846002)(6116002)(5003940100001)(50226002)(33646002)(8676002)(53936002)(6512007)(305945005)(81166006)(42186005)(38730400002)(36756003)(189998001)(50986999)(6666003)(4326008)(6486002)(5660300001)(25786009)(76176999)(2906002)(66066001)(47776003)(6916009)(2950100002)(48376002); DIR:OUT; SFP:1101; SCL:1; SRVR:DBXPR04MB511; H:fsr-ub1664-118.ea.freescale.net; FPR:; SPF:None; MLV:sfv; LANG:en; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; DBXPR04MB511; 23:sSANfg3bv+Yr3zuefUrIYqL9UkIegKduaX7AT8HCKj?= =?us-ascii?Q?Y1sn9l32Cry22LXo7hDyS954ZIIMIkwpl0NtbLzibRSWHb36c2o9hIIEIl5K?= =?us-ascii?Q?gPAQEekqHkDEkZUgWDoNX9u4sv1mG5fmtC8aJHx8laE0KBr1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c1X4cAdXZPcMsHEQmMFm1LtXg2Lt1ra4k?= =?us-ascii?Q?brhfI=3D?= X-Microsoft-Exchange-Diagnostics: 1; DBXPR04MB511; 6:FE9td+Zd0+a096zOqmmNu7U6rBmbVIV6dW5AP8jEC9SI9O/WQUrqXEJpMS/lgcs3w2FV/Jr7y0Zp5bYaZsm+qRVFBV9yiVjx1PNM/e9Ldqt+sj06CEX0MCIi7a8BDv0auD/LLbm/MNzQc3BaY83QXI1H5CErVwjrAmrY/YUft80piT553CkarpwuEynHCUEdPN0H5aHdLi+1CMx1yg65ZMGCyaeiXr3oR4Bw6509XK6KNvEIaVN5+TjaQA5igMhHtx6zkr9lO9FdyPQZpAT4PD/hkhWTBIChZ0vwWSI6z6nJ5phZRKUAZ+LR6fr+FXIE8YMANy5qzLPHtkoCreobf+6AASydut22yh3lh3e2MqDCc3CvyDXc7SFcpP7Pj/6OS2MtKYl6VxJ2ubClpXJRi6HBJR5XkwCysrJATbU7Jik=; 5:CJS6MCUlANR9jbClmqU1OjojWBjl8RpNfahzlf6bOMw9i+CwiMFu3KkrMVBqpySQfvzu71o2grWfiPTJQCccGd3JqOVhy7utJcyIw05mROHP/+kjbISDvg3NimtrwFZgyd5EAMqY4O+UmqSdFKgbFQ==; 24:0MybR6bR8ninjbXZXFmg4nEE4JmUt0NHQOD/fIiOtwhJC3+xmvabq1kllwQFw4LswsuQRsWyZydomh6VqqNrB6l966//M0ai2HD6tHUtp1w= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; DBXPR04MB511; 7:YScPC8yBoZLtWPSEDLFXlgWKbtHeYD1rmimknC8TyPWvPhWNWbptSpDOWVZGouYxpLwWlvsyfgv58N1J5Rp+fMVynKYSLdrLYY4nApFmcCRJThVxsQZtQ7q4jEvXFHKCW2BeTuNTM6e5kuDe7EcxB+xo+iz1NYBSnRpST8Oax9KqMw9HYhlj749b+KbakLj39QTnNaIvJAeXm53HQMHoYQbV12H/4MJLUhI2GiZ5MP2oWLRwMYTyP0+kmSf21e9/9edtqCMD3Zr3Z42cn6qbDl2EuGNKvA1KFrr8CTNLR8g2ErFjzac2P1TYeVZI+Bo30md3ZZuSb3SY9dHe38r4Jw== X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 06 Apr 2017 11:52:03.5539 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: DBXPR04MB511 Cc: lgirdwood@gmail.com, shengjiu.wang@nxp.com, patches@opensource.wolfsonmicro.com, linux-kernel@vger.kernel.org, tiwai@suse.com, broonie@kernel.org, viorel.suman@nxp.com, mihai.serban@nxp.com, ckeepax@opensource.wolfsonmicro.com Subject: [alsa-devel] [PATCH 1/2] ASoC: codec: wm8960: Stop when a matching PLL freq is found 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 When a matching PLL freq is found, searching continues even this is not necessary. The problem was introduced with the following refactoring commit 84fdc00d519ffd ("ASoC: codec: wm9860: Refactor PLL out freq search) Signed-off-by: Daniel Baluta --- sound/soc/codecs/wm8960.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/sound/soc/codecs/wm8960.c b/sound/soc/codecs/wm8960.c index 36c8454..ace69da 100644 --- a/sound/soc/codecs/wm8960.c +++ b/sound/soc/codecs/wm8960.c @@ -724,7 +724,11 @@ int wm8960_configure_pll(struct snd_soc_codec *codec, int freq_in, break; } } + if (k != ARRAY_SIZE(bclk_divs)) + break; } + if (j != ARRAY_SIZE(dac_divs)) + break; } if (*bclk_idx != -1)