Message ID | 87tw6wd7bq.wl%kuninori.morimoto.gx@renesas.com (mailing list archive) |
---|---|
State | Accepted |
Commit | 62a10498afb27370ec6018e9d802b74850fd8d9a |
Headers | show
Return-Path: <alsa-devel-bounces@alsa-project.org> Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 3C7F5604CC for <patchwork-alsa-devel@patchwork.kernel.org>; Tue, 14 Mar 2017 00:45:52 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 2CC6F2851A for <patchwork-alsa-devel@patchwork.kernel.org>; Tue, 14 Mar 2017 00:45:52 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 1E4D92851F; Tue, 14 Mar 2017 00:45:52 +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=-1.8 required=2.0 tests=BAD_ENC_HEADER,BAYES_00, DKIM_SIGNED, RCVD_IN_DNSWL_NONE, T_DKIM_INVALID 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 E6F0A2851A for <patchwork-alsa-devel@patchwork.kernel.org>; Tue, 14 Mar 2017 00:45:50 +0000 (UTC) Received: from alsa0.perex.cz (localhost [127.0.0.1]) by alsa0.perex.cz (Postfix) with ESMTP id 8162D266C2C; Tue, 14 Mar 2017 01:38:36 +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 1F436266C44; Tue, 14 Mar 2017 01:38:35 +0100 (CET) Received: from relmlie4.idc.renesas.com (relmlor1.renesas.com [210.160.252.171]) by alsa0.perex.cz (Postfix) with ESMTP id 13DEF266BEF for <alsa-devel@alsa-project.org>; Tue, 14 Mar 2017 01:38:28 +0100 (CET) Received: from unknown (HELO relmlir1.idc.renesas.com) ([10.200.68.151]) by relmlie4.idc.renesas.com with ESMTP; 14 Mar 2017 09:38:24 +0900 Received: from relmlac3.idc.renesas.com (relmlac3.idc.renesas.com [10.200.69.23]) by relmlir1.idc.renesas.com (Postfix) with ESMTP id F306565867; Tue, 14 Mar 2017 09:38:24 +0900 (JST) Received: by relmlac3.idc.renesas.com (Postfix, from userid 0) id E012E18070; Tue, 14 Mar 2017 09:38:24 +0900 (JST) Received: from relmlac3.idc.renesas.com (localhost [127.0.0.1]) by relmlac3.idc.renesas.com (Postfix) with ESMTP id D70A41806F; Tue, 14 Mar 2017 09:38:24 +0900 (JST) Received: from relmlii1.idc.renesas.com [10.200.68.65] by relmlac3.idc.renesas.com with ESMTP id KAD11432; Tue, 14 Mar 2017 09:38:24 +0900 X-IronPort-AV: E=Sophos;i="5.36,161,1486393200"; d="scan'208";a="236567336" Received: from mail-pu1apc01lp0023.outbound.protection.outlook.com (HELO APC01-PU1-obe.outbound.protection.outlook.com) ([65.55.88.23]) by relmlii1.idc.renesas.com with ESMTP/TLS/AES256-SHA256; 14 Mar 2017 09:38:24 +0900 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=renesasgroup.onmicrosoft.com; s=selector1-renesas-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=0KwC/0pQZzVNEnKyI3PqHGAVby9786kGZ9NmhDKLgPY=; b=msDIYyPhBTKPbVsQwNflIKwFcyGh0Lg8tjS9ROuEqsJe0MQIsGfElxjznUewAa8uNbVR3ar8ZJ1c86uVR693snotCljsno6hihxo7diZrLuOjhaZZ+TtnEulhiN/mfU/BDcaer/ce5shL1OCaAXsFvXau1/GpC7wRW6qrX/81zg= Authentication-Results: kernel.org; dkim=none (message not signed) header.d=none; kernel.org; dmarc=none action=none header.from=renesas.com; Received: from morimoto-PC.renesas.com (211.11.155.144) by KL1PR0601MB1927.apcprd06.prod.outlook.com (2603:1096:802:9::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.947.12; Tue, 14 Mar 2017 00:38:22 +0000 Date: Tue, 14 Mar 2017 09:34:49 +0900 Message-ID: <87tw6wd7bq.wl%kuninori.morimoto.gx@renesas.com> From: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> User-Agent: Wanderlust/2.15.9 Emacs/24.3 Mule/6.0 To: Mark Brown <broonie@kernel.org> MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") X-Originating-IP: [211.11.155.144] X-ClientProxiedBy: OS2PR01CA0041.jpnprd01.prod.outlook.com (2a01:111:e400:540b::23) To KL1PR0601MB1927.apcprd06.prod.outlook.com (2603:1096:802:9::17) X-MS-Office365-Filtering-Correlation-Id: 0cd06a12-1c26-4c57-a6b1-08d46a726bb8 X-MS-Office365-Filtering-HT: Tenant X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(48565401081); SRVR:KL1PR0601MB1927; X-Microsoft-Exchange-Diagnostics: 1; KL1PR0601MB1927; 3:LSnGg7j7qEfmsB9h+h95VrJBW+TLiX/MwGZtiVgfbHt1x8D4+jKGqSkkpRQNtdJEFF08Vi1+j84Lgbwm28kS2HbJu3bMVRbehUVoeIlAxViED9MpcEzRSZk8JMXOi67p+GThhXvHxF0T/nKKh8RkUbSFzbh8gdFVjPa2uoH7uzVL8k5Pi6vSkR7WY3pbu1w7PLvOwsR18MZC0dUcDNCu2+LY67pSvbT31AUornwYJeTLvaoABVpV6lba0zXzGD5sJgpz50d0WFUnrD6mySGvjFOWICS3X5TpmrKnnvy9MoE=; 25:2l6bgrRaSjwajGFA7zM2CjaIvL3XP5UyumbpKgbONChIra4dI1D6bejwXPzrVBkRi9wiNKPvlnCellYazXuYq4rPbT8zWy8JpwGJsAsJiYJk6xPRQ+VpgiDfUOT8BCqd/3vRu5R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AoW9dCEE2VfJ1GVeYQDc29igxnJYpegrq6Qo0oGc1voxytOjn6OnkKOaTJrEyjCBjOSBZ6 X-Microsoft-Antispam-PRVS: <KL1PR0601MB1927FA1FCAE7DF0144E5CE6DD4240@KL1PR0601MB1927.apcprd06.prod.outlook.com> 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)(20161123564025)(20161123562025)(20161123558025)(20161123555025)(20161123560025)(6072148); SRVR:KL1PR0601MB1927; BCL:0; PCL:0; RULEID:; SRVR:KL1PR0601MB1927; X-Microsoft-Exchange-Diagnostics: 1; KL1PR0601MB1927; 4:25G1Vv1UJEr7ucVlW91I8GRtQND6p+NJ01+0GZxIbNceuXUZbW877RdQNIEyU7x5+b7XrA8uysvlwgeGOUJ3uzBz31P+NcomrphgYZbmMx+56SfStJY0aw8mDJhqg4D2IQo/Xoxq+mqYALJHEUHMQ+0vrkNkDx+D2iFp6e5pomQLpWvxy2G8vn922mTvy40cmQAqU8xByqQlD6ouv7EjvF3NB6oriLz08WOn8fqlcH9TzXGuRdkekfR9P73n5QEQrcHTy6HvvwYdDLNPlczbRtbTNid6ne4q+BVJ3sNfoze5zuspVxAuEChHQi5iQu9tJRz+jhFeX7rudL6/CPCHjuo8TC7+yyr9cJMIpDt9nuv8785QFeASDVk5S+2TXTijBPKjjg1QACwa4/4knEUlQHJG31k8cr0gpUcROYNsEvO3lcTGbdbRJ1D3YsJQJbFQN3AyIfLhSTiHql9dUqNFcEoq+tYU3w4HdIkZbUmGy40LG+7OLCiuYZTcUUlYoD4k/bA/Ld2MJ61CYwGJ12U05wDZRonPLK7mL3ef/CPDhR3V9kcTdT5Knz3F8aEHcWJ3GwL7tF2x65sWXThIjgVJvJ8kWbe+EUNym6dSFRDSTiutzisSW3u0+RQJ0Sy+xl5o X-Forefront-PRVS: 02462830BE X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10019020)(4630300001)(6009001)(39850400002)(39410400002)(39840400002)(39860400002)(39450400003)(53416004)(86362001)(42186005)(33646002)(50986999)(54356999)(4001350100001)(7736002)(305945005)(189998001)(2906002)(107886003)(4326008)(38730400002)(66066001)(6486002)(47776003)(3846002)(46406003)(50466002)(6116002)(54906002)(110136004)(23726003)(8676002)(5660300001)(83506001)(6916009)(36756003)(6666003)(53936002)(81166006)(16060500001); DIR:OUT; SFP:1102; SCL:1; SRVR:KL1PR0601MB1927; H:morimoto-PC.renesas.com; FPR:; SPF:None; MLV:sfv; LANG:en; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; KL1PR0601MB1927; 23:5srOE3lCECk6LzyjaC5ArdblhGNJEydZvvbEv1P?= =?us-ascii?Q?cRC266OrGSHxyzB31yb3l3ldEeiLYsSEM+qmS3VYEE6M2jzo5lSLfyqROA9l?= =?us-ascii?Q?cV8pgChnpcmcQ1BJeBQR94WIZ24Gkjm1CHVF08HzT59fe3/Cd8GZ2BBGI4S1?= =?us-ascii?Q?nBP8h/wguTkValHopJMDFkeLedzJOwADwXYWSytMeXYaHUN9KGoB3QOVel8V?= =?us-ascii?Q?/Wx5L/l/VQtBUNi2g14TlQwjGfB+VNkBf3gU8Wgk0RRIW79BLLTZRzEgKUi/?= =?us-ascii?Q?9Z5nEhrzmig99vkiE9SnglYiy7HYBqkciBUSJoZmgdfd2b9RkpQIMDoPSgxk?= =?us-ascii?Q?ebwfPfKjl91Ubuy9yfV8/qRrAUOXrgEIYdTDfpg0+QpwmFijxxoafS3vLEBf?= =?us-ascii?Q?kdDcH2oXLoy02xKJXdR5ED7ysr1RPT2ZVJaeWAIQLMng2wCCDTw+v5pJLxVy?= =?us-ascii?Q?Fk1U7uPtzRKIx4CL+5iBNmNSlU5WdJ9/AVcxEmu78vSZG1nCkMQZgyLUajPs?= =?us-ascii?Q?E8fHCNgyH3AmkniZxGHm5r20h0rIhF6fND1ndq7B1fGcxnzQYK8MG/2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 5:q0kwRQxd4ok2ALhwObQhAjY+FN0DC0491s51lDF4aTr20VkjQE1DSKdJCxHPfpxJPYvUnp5MU0M6PBf5wnV6XgUA1PO3JIXDesNB21yVBWmByprkTVgEacpCnazMGDp0uBF3+47eOUHxsT7jS44IRg==; 24:3HQmj72B681aDenVpEgMztJCtghsbquuN7gAEnXcuw8zJW7uHDMZ2pJ4deof3XO1a0Ll8jnmYAjVq6zXY4cyv76kbkTfpMocqn53e6+neM0= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; KL1PR0601MB1927; 7:/OOW51GQPJmdLO3rWurBoKJEHHZE3nPu8Bnrty5VmapV42QHY9pIhBqLrVveTEkPoZT83Ht/aKzjifkjcCvr3FXdk/6twVbnaG0gpZGI0PL1Mi+mrUZ5uVngZMBKemiaMg/hNf9AIzaSg49iWrnr7PZgN132LWodJIfFyA0Um04AqzA3ML2r7/wCMzBavWURYEAQgLX7ZBXvGzXQgbPGVCryVZc4L/I76gC/2G3fPEi+UUGGLiQbfWrmCb9NLjvwkzro5NQi4LRUD8ZGU82EMDCEVWYJ0ANhhwPmoO71IQ5dPP46/eihY1PrAS3SD9x3Xsfk1rr0upVSFxRAKqrB3w==; 20:CT0ntBn9JKXHmC7ES0xkqgJz2/hlYycZEcZtY8i9fiMOCuLUwqP49LESev43JEHEwVQX3MGs2lwEcl4Zxp67gMs6Yjrgh3cumSPO4IjaP9gsbqtRXTGvjHe7EmP5CjeUGLdrc4RToxARaAfGGSOVNe4vz0LxGx92fYOUI5jCGcQ= X-OriginatorOrg: renesas.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 14 Mar 2017 00:38:22.5130 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: KL1PR0601MB1927 Cc: linux-renesas-soc@vger.kernel.org, Linux-ALSA <alsa-devel@alsa-project.org>, Simon <horms@verge.net.au>, Hiroyuki Yokoyama <hiroyuki.yokoyama.vx@renesas.com> Subject: [alsa-devel] [PATCH] ASoC: rcar: clear DE bit only in PDMACHCR when it stops 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" <alsa-devel.alsa-project.org> List-Unsubscribe: <http://mailman.alsa-project.org/mailman/options/alsa-devel>, <mailto:alsa-devel-request@alsa-project.org?subject=unsubscribe> List-Archive: <http://mailman.alsa-project.org/pipermail/alsa-devel/> List-Post: <mailto:alsa-devel@alsa-project.org> List-Help: <mailto:alsa-devel-request@alsa-project.org?subject=help> List-Subscribe: <http://mailman.alsa-project.org/mailman/listinfo/alsa-devel>, <mailto:alsa-devel-request@alsa-project.org?subject=subscribe> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: alsa-devel-bounces@alsa-project.org Sender: alsa-devel-bounces@alsa-project.org X-Virus-Scanned: ClamAV using ClamSMTP |
diff --git a/sound/soc/sh/rcar/dma.c b/sound/soc/sh/rcar/dma.c index 1f405c8..c2e199b 100644 --- a/sound/soc/sh/rcar/dma.c +++ b/sound/soc/sh/rcar/dma.c @@ -454,6 +454,20 @@ static u32 rsnd_dmapp_read(struct rsnd_dma *dma, u32 reg) return ioread32(rsnd_dmapp_addr(dmac, dma, reg)); } +static void rsnd_dmapp_bset(struct rsnd_dma *dma, u32 data, u32 mask, u32 reg) +{ + struct rsnd_mod *mod = rsnd_mod_get(dma); + struct rsnd_priv *priv = rsnd_mod_to_priv(mod); + struct rsnd_dma_ctrl *dmac = rsnd_priv_to_dmac(priv); + volatile void __iomem *addr = rsnd_dmapp_addr(dmac, dma, reg); + u32 val = ioread32(addr); + + val &= ~mask; + val |= (data & mask); + + iowrite32(val, addr); +} + static int rsnd_dmapp_stop(struct rsnd_mod *mod, struct rsnd_dai_stream *io, struct rsnd_priv *priv) @@ -461,10 +475,10 @@ static int rsnd_dmapp_stop(struct rsnd_mod *mod, struct rsnd_dma *dma = rsnd_mod_to_dma(mod); int i; - rsnd_dmapp_write(dma, 0, PDMACHCR); + rsnd_dmapp_bset(dma, 0, PDMACHCR_DE, PDMACHCR); for (i = 0; i < 1024; i++) { - if (0 == rsnd_dmapp_read(dma, PDMACHCR)) + if (0 == (rsnd_dmapp_read(dma, PDMACHCR) & PDMACHCR_DE)) return 0; udelay(1); }