From patchwork Thu Oct 4 10:42:27 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mark Brown X-Patchwork-Id: 148114 Delivered-To: patch@linaro.org Received: by 2002:a2e:8595:0:0:0:0:0 with SMTP id b21-v6csp780491lji; Thu, 4 Oct 2018 03:42:32 -0700 (PDT) X-Google-Smtp-Source: ACcGV63AGinWYwDGJ1X/wE2CNakVCrHaH8OleY/X9pft3YJmsqdRcQjiGbRMcUsE6Eg2sMiI9DZV X-Received: by 2002:adf:a144:: with SMTP id r4-v6mr4273100wrr.169.1538649752690; Thu, 04 Oct 2018 03:42:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1538649752; cv=none; d=google.com; s=arc-20160816; b=DP0lZ2BGGp183dYQmjsIIDReplKZDxmJb9DahIzPII7T2BAkFUYm0a4hFrjliEODmx 1jKEDTj5E6+rr61/2+e44CurueA037znyK+XiLdMUmqJh+9zjw0gSSNwTlNX8QlPSrzG 106Gl6gawBVHsgN5qlho0LSP5+zl2PNBVeygH77vdOFfTKVDjIXmkukZJbn+x+W/es4z lMgcQOex2Jqe99Nbi6gPT1ZHMoReG+SPRCfO0X4+Usp2BfIPe1o2Pa72niNkguZ2bFOY NhK48hXkmM+c8QB0SPXyGThwVaJ1+6MrWZ3k9wrN07yRv1WTwBDCD8/bWhUYB4UhVRMN pu2Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:mime-version :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:cc:date:message-id:in-reply-to:to:from :dkim-signature:delivered-to; bh=Cipb0Gu8aqGUskbh+RoCScHI47oXShlJb1xr9OhjrQY=; b=LGbeozvYdG5+jIJTm2xTWeLNkz5Eti7O7iDXUr2yKXJLBcCWSbYwZPGQUmElhWGWuQ jWRt4aVMWohDwjiF3exdSCoREVrieggLL7AbstJYek+W32dZhpBRo1mjZQOnbHHTYBfu vFLOOScRfXP/YsroAygAA7AfzRfYdxE3mO8nUhH4rEmlj7JxGpkclQxPRxCRRGQ9XGRF Zd0yBpSgW/TZzDUWBwb8Z9eh8SFl8Fda3P558CV2STwG/4QDRbE96DvuCyNX6uMo/Uhg S3cNtCv7+lfys28/CpdZh9p8nUo00IKEq49qaposQGY/b9UasjUISq37Ofqbz8zorTo8 w3uw== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@sirena.org.uk header.s=20170815-heliosphere header.b=kBroO3h7; spf=pass (google.com: domain of alsa-devel-bounces@alsa-project.org designates 77.48.224.243 as permitted sender) smtp.mailfrom=alsa-devel-bounces@alsa-project.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from alsa0.perex.cz (alsa0.perex.cz. [77.48.224.243]) by mx.google.com with ESMTP id i12-v6si3643484wre.112.2018.10.04.03.42.32; Thu, 04 Oct 2018 03:42:32 -0700 (PDT) Received-SPF: pass (google.com: domain of alsa-devel-bounces@alsa-project.org designates 77.48.224.243 as permitted sender) client-ip=77.48.224.243; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@sirena.org.uk header.s=20170815-heliosphere header.b=kBroO3h7; spf=pass (google.com: domain of alsa-devel-bounces@alsa-project.org designates 77.48.224.243 as permitted sender) smtp.mailfrom=alsa-devel-bounces@alsa-project.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from alsa0.perex.cz (localhost [127.0.0.1]) by alsa0.perex.cz (Postfix) with ESMTP id 9C2662678AB; Thu, 4 Oct 2018 12:42:31 +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 57FC02678AC; Thu, 4 Oct 2018 12:42:29 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mail1.perex.cz X-Spam-Level: X-Spam-Status: No, score=0.2 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS,RCVD_IN_DNSWL_NONE autolearn=disabled version=3.4.0 Received: from heliosphere.sirena.org.uk (heliosphere.sirena.org.uk [172.104.155.198]) by alsa0.perex.cz (Postfix) with ESMTP id C34582676A7 for ; Thu, 4 Oct 2018 12:42:27 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sirena.org.uk; s=20170815-heliosphere; h=Date:Message-Id:In-Reply-To: Subject:Cc:To:From:Sender:Reply-To:MIME-Version:Content-Type: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:References: List-Id:List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner: List-Archive; bh=S6uZsalMyDSU/Tnhlr+L97ayFG7ApnblQhwuKeaBAGw=; b=kBroO3h7iLe7 1268mQW56bRJnzG3eFkT/cLoI4X4ORpAEG+3xvz9u3fWjoVbwSlnRManK0r1yNTSY5ZI2U+26Nx9U Wihfr+c/KQf879bdTaPsqtC4QBsed+wd0TpCn1S4BDMRLq9VQXu1CIACo4hCLlOryCxUWUsaF1ka4 3P6uc=; Received: from cpc102320-sgyl38-2-0-cust46.18-2.cable.virginm.net ([82.37.168.47] helo=debutante.sirena.org.uk) by heliosphere.sirena.org.uk with esmtpa (Exim 4.89) (envelope-from ) id 1g815P-0008Ho-Dn; Thu, 04 Oct 2018 10:42:27 +0000 Received: by debutante.sirena.org.uk (Postfix, from userid 1000) id 2C85E1121BA8; Thu, 4 Oct 2018 11:42:27 +0100 (BST) From: Mark Brown To: Daniel Mack In-Reply-To: <20181003193627.5423-1-daniel@zonque.org> Message-Id: <20181004104227.2C85E1121BA8@debutante.sirena.org.uk> Date: Thu, 4 Oct 2018 11:42:27 +0100 (BST) Cc: alsa-devel@alsa-project.org, broonie@kernel.org, robert.jarzmik@free.fr, lars@metafoo.de Subject: [alsa-devel] Applied "ASoC: pxa-ssp: enable and disable extclk if given" to the asoc tree 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: , MIME-Version: 1.0 Errors-To: alsa-devel-bounces@alsa-project.org Sender: alsa-devel-bounces@alsa-project.org The patch ASoC: pxa-ssp: enable and disable extclk if given has been applied to the asoc tree at https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent to Linus during the next merge window (or sooner if it is a bug fix), however if problems are discovered then the patch may be dropped or reverted. You may get further e-mails resulting from automated or manual testing and review of the tree, please engage with people reporting problems and send followup patches addressing any issues that are reported if needed. If any updates are required or you are submitting further changes they should be sent as incremental updates against current git, existing patches will not be replaced. Please add any relevant lists and maintainers to the CCs when replying to this mail. Thanks, Mark >From cfe9ee5f2b7808ceec21df83a45e38afcc647153 Mon Sep 17 00:00:00 2001 From: Daniel Mack Date: Wed, 3 Oct 2018 21:36:27 +0200 Subject: [PATCH] ASoC: pxa-ssp: enable and disable extclk if given If a "extclk" clock is given, enable and disable it when appropriate. Signed-off-by: Daniel Mack Signed-off-by: Mark Brown --- sound/soc/pxa/pxa-ssp.c | 6 ++++++ 1 file changed, 6 insertions(+) -- 2.19.0.rc2 _______________________________________________ Alsa-devel mailing list Alsa-devel@alsa-project.org http://mailman.alsa-project.org/mailman/listinfo/alsa-devel diff --git a/sound/soc/pxa/pxa-ssp.c b/sound/soc/pxa/pxa-ssp.c index 69033e1a84e6..adcf8ba9d287 100644 --- a/sound/soc/pxa/pxa-ssp.c +++ b/sound/soc/pxa/pxa-ssp.c @@ -103,6 +103,9 @@ static int pxa_ssp_startup(struct snd_pcm_substream *substream, pxa_ssp_disable(ssp); } + if (priv->extclk) + clk_prepare_enable(priv->extclk); + dma = kzalloc(sizeof(struct snd_dmaengine_dai_dma_data), GFP_KERNEL); if (!dma) return -ENOMEM; @@ -125,6 +128,9 @@ static void pxa_ssp_shutdown(struct snd_pcm_substream *substream, clk_disable_unprepare(ssp->clk); } + if (priv->extclk) + clk_disable_unprepare(priv->extclk); + kfree(snd_soc_dai_get_dma_data(cpu_dai, substream)); snd_soc_dai_set_dma_data(cpu_dai, substream, NULL); }