From patchwork Mon Jan 7 16:11:45 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adam Thomson X-Patchwork-Id: 10754253 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id E832D14E5 for ; Wed, 9 Jan 2019 14:13:47 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D2DB628736 for ; Wed, 9 Jan 2019 14:13:47 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id BFA3728F2E; Wed, 9 Jan 2019 14:13:47 +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=0.3 required=2.0 tests=BAYES_00,DATE_IN_PAST_24_48, FROM_WORDY,MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE 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 F2F5028F10 for ; Wed, 9 Jan 2019 14:13:46 +0000 (UTC) Received: from alsa0.perex.cz (localhost [127.0.0.1]) by alsa0.perex.cz (Postfix) with ESMTP id AE33726743A; Wed, 9 Jan 2019 15:13:44 +0100 (CET) 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 2191326743E; Wed, 9 Jan 2019 15:13:43 +0100 (CET) Received: from mail1.bemta25.messagelabs.com (mail1.bemta25.messagelabs.com [195.245.230.1]) by alsa0.perex.cz (Postfix) with ESMTP id 3EEB72673FA for ; Wed, 9 Jan 2019 15:13:39 +0100 (CET) Received: from [46.226.52.104] (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256 bits)) by server-1.bemta.az-a.eu-west-1.aws.symcld.net id AC/19-19156-391063C5; Wed, 09 Jan 2019 14:13:39 +0000 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFvrEIsWRWlGSWpSXmKPExsVy8IPnUd1JjGY xBsfXGlmcatnDbnHl4iEmi6kPn7BZ7D3/kdni25UOJovLu+awWXTu6me12PB9LaMDh8eGz01s Hq2X/rJ57Jx1l91jwaZSj02rOtk89r1dxuaxfstVFo/Pm+QCOKJYM/OS8isSWDMO7bvCWrCbr eLU0WdMDYxrWLsYuTiEBNYxSsw5cxPI4QRyKiTmH/zJCGLzCrhJNG05zgRiswlYSEw+8YANxG YRUJGY0HKRBcQWFgiQmNn6E8wWEehilDh/1BtkKLPAIUaJXZt3skMMEpQ4OfMJWBGzgITEwRc vmCGWGUicXtAIFpcQsJeY/v4qUJwDyNaXaDwWCxE2lPg+6xtUibnEiocL2CYw8s9CMnUWkqkL GJlWMVokFWWmZ5TkJmbm6BoaGOgaGhrpGlqa6BoZmeolVukm6qWW6panFpfoGuollhfrFVfmJ uek6OWllmxiBMZFSsGhhzsYzy1PP8QoycGkJMq75btpjBBfUn5KZUZicUZ8UWlOavEhRhkODi UJXg8GsxghwaLU9NSKtMwcYITCpCU4eJREePmAUSrEW1yQmFucmQ6ROsWoKCXOy/kLaKYASCK jNA+uDZYULjHKSgnzMjIwMAjxFKQW5WaWoMq/YhTnYFQS5i0D2c6TmVcCN/0V0GImoMWHGE1A FpckIqSkGhilHxZ5PfbeqjiDMUHY5/8mhnnrL9/sYvHeNulJ9FU91sZzBev5BLID374pVX25f F3Nn92/26/nbMjsPTDbSuhrZ9iaqCrLEjm97yxlDNUKR45Znfm+5E9Tm4hZ09OLCiEdL80vcE vxpopl7w4yjLsrFvRI4NaneRa/8g35zBTeBnTdTvZUfKvEUpyRaKjFXFScCABbrYecBQMAAA= = X-Env-Sender: Adam.Thomson.Opensource@diasemi.com X-Msg-Ref: server-4.tower-268.messagelabs.com!1547043218!1157657!1 X-Originating-IP: [193.240.73.197] X-SYMC-ESS-Client-Auth: outbound-route-from=pass X-StarScan-Received: X-StarScan-Version: 9.31.5; banners=-,-,- X-VirusChecked: Checked Received: (qmail 6156 invoked from network); 9 Jan 2019 14:13:38 -0000 Received: from unknown (HELO sw-ex-cashub01.diasemi.com) (193.240.73.197) by server-4.tower-268.messagelabs.com with AES128-SHA256 encrypted SMTP; 9 Jan 2019 14:13:38 -0000 Received: from swsrvapps-01.diasemi.com (10.20.28.141) by SW-EX-CASHUB01.diasemi.com (10.20.16.140) with Microsoft SMTP Server id 14.3.382.0; Wed, 9 Jan 2019 14:13:37 +0000 Received: by swsrvapps-01.diasemi.com (Postfix, from userid 22379) id EAEBF3FBEC; Mon, 7 Jan 2019 16:11:45 +0000 (GMT) Message-ID: From: Adam Thomson Date: Mon, 7 Jan 2019 16:11:45 +0000 To: Mark Brown , Liam Girdwood , Takashi Iwai , Jaroslav Kysela MIME-Version: 1.0 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: 09/01/2019 12:09:00 Cc: alsa-devel@alsa-project.org, Daniel Kurtz , linux-kernel@vger.kernel.org, Support Opensource , Akshu Agrawal Subject: [alsa-devel] [PATCH 0/2] ASoC: da7219: Improvements to DAI clocks handling in driver 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 This small patchset provides improvements to CCF based clock handling relating to the DAI clocks. In the first patch MCLK is made parent of DAI clocks, if MCLK has been provided to the driver, which means that MCLK will automatically be enabled as a prerequisite to DAI clocks. The second patch adds the ability to read the WCLK rate provided by the codec when DAI clocks are featured. This is more useful than the returned rate simply being the rate of the parent clock, which in this case would be MCLK. Adam Thomson (2): ASoC: da7219: MCLK should be enabled before DAI clocks ASoC: da7219: Add recalc_rate function to return DAI clock rate sound/soc/codecs/da7219.c | 77 ++++++++++++++++++++++++++++++++++++++++------- sound/soc/codecs/da7219.h | 1 + 2 files changed, 67 insertions(+), 11 deletions(-)