Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756744AbdCUKJz (ORCPT ); Tue, 21 Mar 2017 06:09:55 -0400 Received: from mail-he1eur01on0081.outbound.protection.outlook.com ([104.47.0.81]:48002 "EHLO EUR01-HE1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1756404AbdCUKJw (ORCPT ); Tue, 21 Mar 2017 06:09:52 -0400 Authentication-Results: gmail.com; dkim=none (message not signed) header.d=none;gmail.com; dmarc=none action=none header.from=nxp.com; From: Daniel Baluta To: , , CC: , , , , , , Subject: [PATCH v2 0/2] wm8960: Relax bit clock computation Date: Tue, 21 Mar 2017 12:09:34 +0200 Message-ID: <1490090976-25877-1-git-send-email-daniel.baluta@nxp.com> X-Mailer: git-send-email 2.7.4 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [192.88.146.1] X-ClientProxiedBy: DB6P193CA0014.EURP193.PROD.OUTLOOK.COM (10.175.237.24) To AMSPR04MB502.eurprd04.prod.outlook.com (10.242.107.147) X-MS-Office365-Filtering-Correlation-Id: 1fe9e225-bf82-46eb-7e11-08d470426630 X-MS-Office365-Filtering-HT: Tenant X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:(22001)(48565401081);SRVR:AMSPR04MB502; X-Microsoft-Exchange-Diagnostics: 1;AMSPR04MB502;3:7fpcvw51LkYOnuCQ+RBNfqJi87PXh50UyEsHfZWVwVPQPel2gcYvsLOY2ls0XG9knz8vlwRdKVrbBpgNiu9y/KkzztfoxOfImT3oH4Qu/X9mJyrWY57I1e51F+kkJExvc8+LtUHePXDa1ykidI5eKPSEUPsJp3LFDH7OBPExZRZLIWIqpFvV/WiAEOpkPJBk+Yx7tT+1qLpCt4S0pFePZl1OtuLcKCW5Zd856nyvvojHoX8lir0ByhUQ1G3TZDr/NnAPLeGWaWaBtyQLK+bPybohGRL98yLmg4wmju1W5Jo=;25:ApetwqcMnG9G9W0JkYrQJ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nDcWjJ+y0eB59ZF61BnqqLAg8s7eN8kydcafCfIQkyDcuItViI2ttrtfmCwiObzIm3v3uptuDZ/kSlEcQ7tJ1Yz2cHXfneWLhi5HA2Bf7xhF9ttffsS5Bkynjn/eLmVb9rBbhaxQJaR4WYLNxfZN22VA1uGud5oT2AdnBbgn1dWyXi3l+hcohbOEpMaEWkfpwee32M62fkMdu6RLd3oVbJZ5hb X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(6040375)(601004)(2401047)(8121501046)(5005006)(10201501046)(3002001)(6055026)(6041248)(20161123562025)(20161123564025)(20161123558025)(20161123555025)(20161123560025)(6072148);SRVR:AMSPR04MB502;BCL:0;PCL:0;RULEID:;SRVR:AMSPR04MB502; X-Microsoft-Exchange-Diagnostics: 1;AMSPR04MB502;4:dROmnAlpHaqlB0vQXB0CfA1mhEtOcc4I4nMmDFapLbj3LCwVhFY5Sb/EQcvBp9k1dG2t5J7VoO5miyXjDaoC4qnxW9TB3AoQlQQzh/4Ha91giW18o/XfSmjdExPIziTVUYTGA1QXFGwFVAe5pEv51JObYjVpC7u8p5gkpI5d08x4nzqxyQXCRV+deyyAPOYZa4vTOCNWMZ1zprax5B683LxCtKslr7KiwJLzuJOA3lpPuncTatcfriu2JeosfnfN41VgIn3cPDvvoNdCd3UUKWx7dDp6q9KRZAejLlqkJgq6ZFjfEwTeT9B5wrleCcXaL7Bgm/RAnL60kraDLMM6sPJgMZKGmVL4VzmhcnwjP9ICc8okEmRRQN3LG8DrlMKbtLfHN3bEa0RDKabrJVi8KNWVMIM4b4XICz5IyH/v8Rca0yRslrtpExyC7yqEWJYZv2fQes+oePNRY8kxQ2nnCxrXflgu1VJ2k/H+oB1BvBQPj/sY+UQaJ7q7WlHRslWQeqxCmPLvx5WKS4c3srSajZYnPtzQVB2ApmmemdHcgOS+xgMxhN78ucp3cUYwwh4mWrRfHFqRb+MOg/SDJFADei+BQuIUNpEnfddIyoV0NmI0Wd9S7hoa2aCwAOyfoHhb X-Forefront-PRVS: 02530BD3AA X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10009020)(4630300001)(6009001)(39860400002)(39840400002)(39450400003)(39850400002)(54906002)(6512007)(6486002)(5003940100001)(6506006)(53936002)(33646002)(48376002)(50466002)(7736002)(6666003)(6116002)(42186005)(2906002)(305945005)(3846002)(25786008)(66066001)(47776003)(86362001)(36756003)(50226002)(8676002)(81166006)(2201001)(189998001)(4326008)(5660300001)(50986999)(38730400002);DIR:OUT;SFP:1101;SCL:1;SRVR:AMSPR04MB502;H:fsr-ub1664-118.ea.freescale.net;FPR:;SPF:None;MLV:sfv;LANG:en; X-Microsoft-Exchange-Diagnostics: 1;AMSPR04MB502;23:6AJSdp13rAzs39CKWsGjLOBvby9YojO99siBi87cUtudJVGklkAiPMV2bO90J7AjFqVTvqtAdFOIuNvhZ36P+PRcWLCyfB+iunL2gcDYsFFROf367Zd2E51ZZxPr99mAzyLKENEAxSHNzrA/MBfFRC07/0hXZRBbWxPcKNNw8W91pHScfLijVIn3IlTcw+/64tcuq4R+KJoCb3r9cyT0Ki2fDO1YgYpZOQODGpw0sPJiKPIByWatRaDs5ZIXyUeKfSdBHZWwvmEQa7Qlb/Fr0s+uils6CLpn9pokBXcPL1MmkfkRB1pHZQX8UxNU73cQ3/DBk4zM5Qqj8TGPM56+1i+GKrWNXXJ4O9jRaRSX6RloKtTIFytJCSkn186oXnLTyZJmEVe8yO40YfrQ3wR1ruCZgkNlDARindWRbSRAJGFYC/MHmKo1DdFw16MtK2idkNWhYYocDktJDYQdTqiV4Rpv2R7ncefhju/suUMV+b7/+HEJYWD3YbdURNPyjABs5sWsBRdXCqM6NtAXsKQ5ybYR2rgoEJJOPLfdTWTLSLerIxWSxl/Kkr2AgaHI8cTUSWY9tXqt2X+sPYKz+0nI0FVMHEIJ4anpYLCGtu5WStJWcLjA6ftrVK9bkRhOG1WOCFLdBt667SBPwoME67Jms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04MB502;7:rSZjLpsACQbzLs6j3uZTYAO3TtnXB+3hCDPuEMzJe/ADkHiUkzSy1BHPbGaDPEx2mMjOOKhxxF+m2FOvuwOGDV7Lsw+xVRCTqHkgB6zAHHrlK7SQko29kV74wsHw+nvqU60z2RPbT1b67/YN6+wUJ52af8EimMLIidUBQ+rPqFHqjsIP+efJ60e5C1hKpWEZUQxHR6dfk9FACXPNI4JWqnNMKmapeE7c+03Ragjr9Wy8f6mpLHjZr7NnSI/MG9zjSei5o/wQGhRTc1kjzAQ5ZZF3i0h4fXBMpixbqfND4TN6FkwDBvj5RHhWuK7e5Rh1kkw0hgXfr20Ccve685/ZZQ== X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 21 Mar 2017 10:09:44.0240 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: AMSPR04MB502 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 741 Lines: 22 This patch series allows playing S20_3LE .wav samples with wm8960 codec. First patch does a small refactoring of sysclk frequency search because wm8960_configure_sysclk was getting pretty convoluted. The second patch allows relaxing bitclock computation in the way that if an exact bitclk couldn't be derived from sysclk it chooses the smalles available bitclk greater than the desired bitclk. Changes since v1: * dropped the RFC tag * comments in each individual patch Daniel Baluta (2): ASoC: codec: wm8960: Refactor sysclk freq search ASoC: codec: wm8960: Relax bit clock computation sound/soc/codecs/wm8960.c | 119 +++++++++++++++++++++++++++++++++++++--------- 1 file changed, 97 insertions(+), 22 deletions(-) -- 2.7.4