From patchwork Wed Nov 29 10:57:44 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mark Brown X-Patchwork-Id: 119953 Delivered-To: patch@linaro.org Received: by 10.80.225.132 with SMTP id k4csp4224837edl; Wed, 29 Nov 2017 02:59:18 -0800 (PST) X-Google-Smtp-Source: AGs4zMahupK5lG0f0SI2bmdExMbzNQ3DCJn7046wh5tbQ/E8RekMddcpXv1DWFc41X4pBJcfo45a X-Received: by 10.223.145.80 with SMTP id j74mr2118845wrj.250.1511953158230; Wed, 29 Nov 2017 02:59:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1511953158; cv=none; d=google.com; s=arc-20160816; b=j8NZ/rGnphcLtgzJmcrh47xVtpF1QMSmgsnlNd77ymYImz5CzqmBbMr7QLAfR2g7mS K69k3aGxGRVEQwI762D1ofJj2NQC9geeYEVADqxLuKIizGz7lgGNSX6IQj3a5hciHt/Y TYlWC0NfjbJlibw1ER7VFr2yhQatUlvU8BVIrUxdytJCB88F7OitAXSVCS+PW5YDd+9L cXVH2KfhtdE8qTv10YwCqMh74wi3Tb77qKEVXrDDYV0A3BNedT3HifvP/zJ/XbgUPVD7 fKIuYeRBJIprz77TFv+AR/XEN/sSQbGVU2yJNKH1Wk8r71IVe2Nk6N06cHHDnOFKTAY2 Cdtg== 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:arc-authentication-results; bh=ez9b5agDW5zcwIZeNZEfy4bCbSM7hm4Qj7l0fTxKixk=; b=Rkf1HpkSgRZCjfDYDBhTUE/AbOlZu+ch9fenRNFAnr5Xnt0ULkrW9vg8Okd8G4L2ve bF8a4G324yoioX//u9n7YcUdX9LqnpTHBXSYOE/KPIrAb6xccxtr+2OF0gijDHtQmK6F zQYVspd7x9wsA7tYA1a//z4PrNiYKB2eW3xdpIWJR+7jrBRWsTh8qQKROzaACajLkiv7 rZ37cS4hO0aI33RXdt1uReifU1RVMAH4uhEIo6ljJLVOfQbakrLafHfx+gbLH03UZON0 U+qTXe0tDyqBw4SnTgsI3AwvcsMQ0XTZdVNBDgIbGw1t/Znw6CKQDAs1usgDNJ63uC8w owWw== 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=oQRIUbjo; 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 Return-Path: Received: from alsa0.perex.cz (alsa0.perex.cz. [77.48.224.243]) by mx.google.com with ESMTP id l15si1119353wrb.144.2017.11.29.02.59.18; Wed, 29 Nov 2017 02:59:18 -0800 (PST) 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=oQRIUbjo; 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 Received: from alsa0.perex.cz (localhost [127.0.0.1]) by alsa0.perex.cz (Postfix) with ESMTP id 26B4A2678D5; Wed, 29 Nov 2017 11:58:46 +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 9A9D72678C1; Wed, 29 Nov 2017 11:58:42 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mail1.perex.cz X-Spam-Level: X-Spam-Status: No, score=-0.0 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS, SPF_PASS, T_RP_MATCHES_RCVD 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 A976D267895 for ; Wed, 29 Nov 2017 11:57:47 +0100 (CET) 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=6FMRFfwq5MbOhxiOs3x/r5GUnJzDX/F+Cxmwo8MRg3o=; b=oQRIUbjojNP9 CBqf2lII8iE8vPePlEChKNTviHGUbomre6DPRuo7wXsI4ZZ4tFpRtuaA8K1iDEH9++GHsnXX8lD6U rP9L0Giezzogx+t7CYLWNGRi0F3PlpRJalUhiOLCSFjtb5kd+ddalXkIBuZTAFEblVu659x0CTp3y D9rS4=; Received: from debutante.sirena.org.uk ([2001:470:1f1d:6b5::3] helo=debutante) by heliosphere.sirena.org.uk with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1eK03k-0001IV-KH; Wed, 29 Nov 2017 10:57:44 +0000 Received: from broonie by debutante with local (Exim 4.89) (envelope-from ) id 1eK03k-00063l-7X; Wed, 29 Nov 2017 10:57:44 +0000 From: Mark Brown To: Kuninori Morimoto In-Reply-To: <87y3mprdre.wl%kuninori.morimoto.gx@renesas.com> Message-Id: Date: Wed, 29 Nov 2017 10:57:44 +0000 Cc: alsa-devel@alsa-project.org, Mark Brown , Simon Subject: [alsa-devel] Applied "ASoC: rsnd: dma.c: spin lock is no longer needed in IRQ handler" 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: rsnd: dma.c: spin lock is no longer needed in IRQ handler 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 65bedda1feec4f57e1322a200853cc29079b01c6 Mon Sep 17 00:00:00 2001 From: Kuninori Morimoto Date: Wed, 29 Nov 2017 03:08:35 +0000 Subject: [PATCH] ASoC: rsnd: dma.c: spin lock is no longer needed in IRQ handler DMA handler had needed to calculate pointer before, but it doesn't need now. Thus, we can remove unnecessary spin lock from DMAC handler. Signed-off-by: Kuninori Morimoto Signed-off-by: Mark Brown --- sound/soc/sh/rcar/dma.c | 18 ------------------ 1 file changed, 18 deletions(-) -- 2.15.0 _______________________________________________ Alsa-devel mailing list Alsa-devel@alsa-project.org http://mailman.alsa-project.org/mailman/listinfo/alsa-devel diff --git a/sound/soc/sh/rcar/dma.c b/sound/soc/sh/rcar/dma.c index 4d750bdf8e24..41de23417c4a 100644 --- a/sound/soc/sh/rcar/dma.c +++ b/sound/soc/sh/rcar/dma.c @@ -71,25 +71,7 @@ static struct rsnd_mod mem = { static void __rsnd_dmaen_complete(struct rsnd_mod *mod, struct rsnd_dai_stream *io) { - struct rsnd_priv *priv = rsnd_mod_to_priv(mod); - bool elapsed = false; - unsigned long flags; - - /* - * Renesas sound Gen1 needs 1 DMAC, - * Gen2 needs 2 DMAC. - * In Gen2 case, it are Audio-DMAC, and Audio-DMAC-peri-peri. - * But, Audio-DMAC-peri-peri doesn't have interrupt, - * and this driver is assuming that here. - */ - spin_lock_irqsave(&priv->lock, flags); - if (rsnd_io_is_working(io)) - elapsed = true; - - spin_unlock_irqrestore(&priv->lock, flags); - - if (elapsed) rsnd_dai_period_elapsed(io); }