Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757864AbdCUPDn (ORCPT ); Tue, 21 Mar 2017 11:03:43 -0400 Received: from mail-ve1eur01on0065.outbound.protection.outlook.com ([104.47.1.65]:33696 "EHLO EUR01-VE1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1756970AbdCUPDl (ORCPT ); Tue, 21 Mar 2017 11:03:41 -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 v3 0/2] wm8960: Relax bit clock computation Date: Tue, 21 Mar 2017 17:03:23 +0200 Message-ID: <1490108605-20538-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: AM5PR0201CA0015.eurprd02.prod.outlook.com (10.169.248.25) To DBXPR04MB509.eurprd04.prod.outlook.com (10.141.233.12) X-MS-Office365-Filtering-Correlation-Id: 92d91e4a-c82a-452e-12f7-08d4706b73ae X-MS-Office365-Filtering-HT: Tenant X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:(22001)(48565401081);SRVR:DBXPR04MB509; X-Microsoft-Exchange-Diagnostics: 1;DBXPR04MB509;3:MsYCF6kAUkWq47zm/svRbIoDYovYHVEm13ryfte7XoDJ6t3WvJlmToXfNacXhLHXCu68Qz2FUdyGSD461DZ6mXljhWOPCJpSzYXcan3x30/dnXt8m9J/bscsbqluQc1w6eSTg/PEt10Ky6Ktl/8y5s9OrtToKdu7NdHOvY456F8TfOtlsLL8PypQhe5HcVGHQv/i+JVkFhTJG5iXMHQGmLotIj2aFV3NtOkbJjLTKe+8yTN0TvV5wj9A/srC518bEDxtZ5kTvS8JJVulvUg7XxvATmUwq6RodFf7K4sZvOo=;25:OqPt9GK4fHbfciSD0bySmB+3wmO1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T+i/oUgkaSvZk/7ngPWVroakduIKh/TLwKLc6cUtsZAxSeY3nuge9YiD+b5g+6bVuWP3Xv8NyTUSO2tIGJq6WFhSi6jbWysdy8CDbtAPawGNq/UXTdoFSPsocCcd1r+9TNSV9Pi9RhjuQLw2vpJWxwLqaDy2mEkTZAdenJqdwB 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)(3002001)(10201501046)(6055026)(6041248)(20161123558025)(20161123564025)(20161123555025)(20161123560025)(20161123562025)(6072148);SRVR:DBXPR04MB509;BCL:0;PCL:0;RULEID:;SRVR:DBXPR04MB509; X-Microsoft-Exchange-Diagnostics: 1;DBXPR04MB509;4:MvPjcZDFn5NqiTazw19NZSEtT2YEZTSUgIlyYBSeEQjJG9xxF1ftdGS8q9mGxNA0GUXhvVcbpVNYURfcznkutOzfaIvNcKCdQx9TsqN39vAeYPTjHnYGrXycg3qgFtYWp7c9St9KYiji08hy1DBu4OIDAIl7fIW4wel8mAfiVzRo3G2rIRS2c2ul7paCZTTzLTe9i3au14RiYgXaBo20OXz4fker6CLXDPI/K9ArhUrq3BUF4UjY34RZk/mm2zZH/W1X42GWHbuZy1jLNM9RSNhGOB2ofp+Gh2C9nRmC5tF3aHxNBusAj5ngovPh7Z0butonIycRidvTs58X054SOH6cAcnMiMotid1qLCnFYNGrc338kJ++CuT6f7hWaR4+XYjZoJqLUzHvWRVNHDPt4kkAjvFo6qbZ83C/OsqhxyzUpy6PE+1rPtDH2King8e+E2TjLL3OtLy2JVE4VDSZDGE3yhkIijmaKzx+H4Iae/QzbaNt0wfE37prHKvNl/GMFa0yQ+0kv0k8jvoXtXj8SjVAEcqbI8VbUmEl5qYvlHnEVOu16y9nrANKaAkS2Ax6t4OazdRhCEXysEp5kok58dee/cqK8+T+ppIXpOtPOpBjSmywJadRrwlASMEQdKt2 X-Forefront-PRVS: 02530BD3AA X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10009020)(4630300001)(6009001)(39840400002)(39860400002)(39410400002)(39850400002)(39450400003)(53936002)(189998001)(81166006)(38730400002)(33646002)(305945005)(8676002)(25786008)(48376002)(6486002)(6506006)(7736002)(42186005)(50986999)(6512007)(54906002)(50466002)(5660300001)(36756003)(47776003)(66066001)(3846002)(2906002)(86362001)(50226002)(2201001)(6116002)(5003940100001)(6666003)(4326008);DIR:OUT;SFP:1101;SCL:1;SRVR:DBXPR04MB509;H:fsr-ub1664-118.ea.freescale.net;FPR:;SPF:None;MLV:sfv;LANG:en; X-Microsoft-Exchange-Diagnostics: 1;DBXPR04MB509;23:uL9lURGUMZJcuLds92wtv29ZYV6mf9SoGeyYmKG1IvaygehBb/pz2A/BzPuZJe6suKbV7ZEsNKVCYJ+2xhyQx3H/TkanMlXYpSVrSxkwxSQF15KigbmELocqhKVP4pKoVut8eb5nrrbkdHUqEltkESp7iu1Z+omShNNGG/Ecvo8Fix4X8RaXpx/ozwrqHmTP8cCYehNEPibeQjF0IASCF4dbjppYUr10qIZp5GfwL0jzp/XUzlE9Y3ALuometBtp1h780nyJq2EOCt/uOKAC6UZXQUkIY4AtFFMeBPdqgIc3z/k/IK5CcwrZfjoIQDwZPHSMenx1nbqDp26yL/K0adtYqVwnL+VU1P/scXktGseQ13AK6A2llj1+QvOFow0skjiB7WVgzG+FUiRCHR1pfhf4Svxbp7bov3QokultlmEAZ90ATHxZ+ijUojNOE+cZU3If8CG+Yc8gvTiTpAUptSvD/Fq/jxW8H8YZLNrG25wxlT492384uIK67e2RH+F6yxotZPapx109jFP1cuunrSdWX01IKLM9DKtfWGpIPEH+vXlUGA7Wyuqd0ExUpnDr6hqC8IYUz//kxuu0iWr2gQD6tF92llXTZ8UYqa4qpqtuiFgIqugKgNVAFBX3k5OO1xI0A/MBJligQifVu+L7Dkns3J7FL3rnCtBO5WouqfWCv9VXQ5+Cvv0ugnL1GUne/wzPmZK5SWB9n5ymc3jXhX3Vtr+yc3pX4bFNFEZai4l9X70Cax61TzEykPKg7hzCZoS5dTLqJBRVky+JvOQCM1KqRy2nSmON51HrtoTirCiVmqwXN+FnkN6fi1jBMmreeBw5mioKmXr6QjI+NcZi2Ghz7lQITzFYuJGU49Xl1OidIunvUzVHMRKkticfLWA35jlm0M+Ltf5OsDekbz57tkg8gNLRTVaI/3a2bgn22o9ts+obMIJrxL4tQt93Dxn6 X-Microsoft-Exchange-Diagnostics: 1;DBXPR04MB509;6:ps3N27zOP4zYTO0vDDJLsFKMcvBocaEWOSv2H57oZ0Cz8qDDM1EihWZwe2B8R5AM0Uk8/qgXrVH9JlE4rb8Tbn9Z1kkI7pxksAqFscX8QmfAlLvO5gXyEXeuCxB6wyg0MYt7YTJqHWw5O1M+S5Iyi7bxiEPR7DoLLU+16swToAuBYcY4tCdy3QgdiQUQqZZbRzab9kElcYvjDRbobQ3BaASfJR8BT2Y0+b94SvNj0aNmnS816JE5mQPXH3XGkPp+4GiZU+mH2uvFy8+BYemGWRXlq3W7h3iC8Eeq2NVLFnZeNR1njvMOEkMQ1kfFMyf+jgBx8JMrXONNV0Pp4NjReY5zLe+V+opM/R6kffoHb0ntzxnBw+GxtMx5XuGbDDeKqCF45ents5vWbiNCPTvCuQEZSnB4R6vObKLD7AV+El8=;5:sgRbL5hIYqOJSrlr1EbdyxCE2S0L0cwVLEC9fgC0foCoLeE0EvHC+JTW5y13PKdGa5lC4wL3TiCfJBiIimVocgKka571L31xLENGS4XqfTUiB8dA8ek/fA253qI6JTeSmx5AbCoBgHM3e5A5td/I7Q==;24:TMJybweD6OHpN3irYQAf5G8qYYr4iNJ7hPIAewuBT6Wu+a0QIWu+djZC5fU6/Yj2w+KfuwFY4JnFU26ELg62H6qa41U4/lc4PbfK1X/xN38= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1;DBXPR04MB509;7:imOGEjvS4gZXt6mAK4IoQtfrDqL35wPXNXV4JGvbMctaC7vepj/IWD/Q9xir5PQUdhFGbOt1zK+P8Ax+62w4qGbVkHVYN07xIsxV0qTgwjdlVz6wySD51WO2M/4Ekio7zU5YxCE/zlnt58fwWcdT7bUz9DrXrdBKHjoFC9qcBmppkfk9edybsnRy1A6MQ8SOxYTPwOQp1OuWXpOihq7EIIsuIIKk+vmtkz1UxExGtR8uNyLsjKmV2kJqX76vy8LFu9yjj6DLXGnhXBRDlCDmc/DRnNXRUIYIXcs+fTUmLTqkRpNJ3+PlZtM94910JJBt+YARMHpS83nRy8I4R2vLoA== X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 21 Mar 2017 15:03:36.2215 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: DBXPR04MB509 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 829 Lines: 25 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 v2: * do not differentiate between relaxed and exact match 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 | 90 +++++++++++++++++++++++++++++++++++++---------- 1 file changed, 71 insertions(+), 19 deletions(-) -- 2.7.4