From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S964788AbcHDOng (ORCPT ); Thu, 4 Aug 2016 10:43:36 -0400 Received: from mail1.bemta5.messagelabs.com ([195.245.231.141]:21733 "EHLO mail1.bemta5.messagelabs.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1758681AbcHDOne (ORCPT ); Thu, 4 Aug 2016 10:43:34 -0400 X-Greylist: delayed 433 seconds by postgrey-1.27 at vger.kernel.org; Thu, 04 Aug 2016 10:42:57 EDT X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFjrHIsWRWlGSWpSXmKPExsUSt3Opse7OoMX hBtMnylpcuXiIyWLqwydsFt+udDBZXN41h82ic1c/q8WG72sZHdg8NnxuYvPYOesuu8emVZ1s HvveLmPzWL/lKovH501yAWxRrJl5SfkVCawZT6dcYyy4ylHR2L6NpYGxm72LkYtDSGAdo8S8Q yAOJ5BTIbF00xUwm1fATeLcyVlgNpuAhcTkEw/YQGwWARWJl6c/soDYwgIuEie3nmcDGSQi0M UosfrVY7AGZoFyiS2fJjJDDBKUODnzCQtEXELi4IsXzBDLDCROL2gEi0sI2EtMf38VKM4BZOt LNB6LhQgbSnyf9Y0FImwu8WKa8QRG/llIhs5CMnQBI9MqRo3i1KKy1CJdI0O9pKLM9IyS3MTM HF1DA1O93NTi4sT01JzEpGK95PzcTYzAcK5nYGDcwXh3st8hRkkOJiVR3hkBi8OF+JLyUyozE osz4otKc1KLDzHKcHAoSfAeDQTKCRalpqdWpGXmACMLJi3BwaMkwtsHkuYtLkjMLc5Mh0idYl SUEuddAZIQAElklObBtcGi+RKjrJQwLyMDA4MQT0FqUW5mCar8K0ZxDkYlYd5ZIFN4MvNK4Ka /AlrMBLT4hMECkMUliQgpqQbGPSHtO7+8qZ/Bue6MzVnjmykzLxe8+m8f23/2esIRfSnrOfMW zhK6ddtWli2f11EyqKVKrKJroRDbRvWL1YfOdZf8SEvVif/Q9dHrz+abjTx6s6aIFgfUnw7bE O1WoPd8UqP99yspL/4GbyxgtLZ/dJSv59+9C3LZTaETnuxZrBur3R8eantJiaU4I9FQi7moOB EAClXQ/uECAAA= X-Env-Sender: Adam.Thomson.Opensource@diasemi.com X-Msg-Ref: server-14.tower-180.messagelabs.com!1470321337!48282313!1 X-Originating-IP: [94.185.165.51] X-StarScan-Received: X-StarScan-Version: 8.77; banners=-,-,- X-VirusChecked: Checked Message-ID: From: Adam Thomson Date: Thu, 4 Aug 2016 15:35:35 +0100 Subject: [PATCH 0/4] ASoC: da7213: Device clocking updates and fixes To: Mark Brown , Liam Girdwood , Jaroslav Kysela , Takashi Iwai CC: Support Opensource , , MIME-Version: 1.0 Content-Type: text/plain X-KSE-AttachmentFiltering-Interceptor-Info: protection disabled X-KSE-ServerInfo: sw-ex-cashub01.diasemi.com, 9 X-KSE-Antivirus-Interceptor-Info: scan successful X-KSE-Antivirus-Info: Clean, bases: 04/08/2016 12:49:00 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patch set contains a series of patches relating to device clocking. The changes are as follows: 1) Set correct default BCLKs per WCLK to achieve all DAI formats. Currently only 16-bit formats would operate correctly. 2) Only use MCLK as required, when an audio stream is active. Can be disabled all other times. 3) Refactoring of sysclk() and pll() functions to make them cleaner, removing need for unnecessary private flags, and resolve incorrect 32Khz mode configuration. 4) Improve 32KHz PLL locking with some small register updates when configuring PLL and when DAI is enabled. Patches are based on v4.7 Linux kernel Adam Thomson (4): ASoC: da7213: Default to 64 BCLKs per WCLK to support all formats ASoC: da7213: Improve driver efficiency with regards to MCLK usage ASoC: da7213: Refactor sysclk(), pll() functions to improve handling ASoC: da7213: Improve 32KHz mode PLL locking sound/soc/codecs/da7213.c | 134 +++++++++++++++++++++++++++++----------------- sound/soc/codecs/da7213.h | 12 +++-- 2 files changed, 94 insertions(+), 52 deletions(-) -- 1.9.3