Message ID | 1520608892-12731-1-git-send-email-Vijendar.Mukunda@amd.com (mailing list archive) |
---|---|
State | Accepted |
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 7FF4360236 for <patchwork-alsa-devel@patchwork.kernel.org>; Fri, 9 Mar 2018 15:19:41 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 715F729E5A for <patchwork-alsa-devel@patchwork.kernel.org>; Fri, 9 Mar 2018 15:19:41 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 6551D29E59; Fri, 9 Mar 2018 15:19:41 +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 1041D29E59 for <patchwork-alsa-devel@patchwork.kernel.org>; Fri, 9 Mar 2018 15:19:39 +0000 (UTC) Received: from alsa0.perex.cz (localhost [127.0.0.1]) by alsa0.perex.cz (Postfix) with ESMTP id E8C58266F68; Fri, 9 Mar 2018 16:19:35 +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 C15822675C4; Fri, 9 Mar 2018 16:19:32 +0100 (CET) Received: from NAM03-CO1-obe.outbound.protection.outlook.com (mail-co1nam03on0071.outbound.protection.outlook.com [104.47.40.71]) by alsa0.perex.cz (Postfix) with ESMTP id D460C266E78 for <alsa-devel@alsa-project.org>; Fri, 9 Mar 2018 16:19:26 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amdcloud.onmicrosoft.com; s=selector1-amd-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=GfX/TBtXCPAyyblj8XPLp3RwU3SrndimEFJ5UXaoGgk=; b=ccceZJ28CBOr9Mmc1iEaVEuW1GIc8yAJ1gbtCzhM6IUo6rf4bDKBUVoKX/Tvl1+4AX3YevbZdiiM5IyZgQTYGhBp57eW5QqL0w3ZSobdOvrrOieST6K5qx9F8GCm8F6jezyB2UPzWtAaNqzVycw9MEeTrDEHANGP1GQw6i83B/Q= Received: from MWHPR1201CA0015.namprd12.prod.outlook.com (2603:10b6:301:4a::25) by BN1PR12MB0017.namprd12.prod.outlook.com (2a01:111:e400:52::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.567.12; Fri, 9 Mar 2018 15:19:04 +0000 Received: from BY2NAM03FT026.eop-NAM03.prod.protection.outlook.com (2a01:111:f400:7e4a::206) by MWHPR1201CA0015.outlook.office365.com (2603:10b6:301:4a::25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.567.14 via Frontend Transport; Fri, 9 Mar 2018 15:19:04 +0000 Authentication-Results: spf=none (sender IP is 165.204.84.17) smtp.mailfrom=amd.com; gmail.com; dkim=none (message not signed) header.d=none; gmail.com; dmarc=permerror action=none header.from=amd.com; Received-SPF: None (protection.outlook.com: amd.com does not designate permitted sender hosts) Received: from SATLEXCHOV01.amd.com (165.204.84.17) by BY2NAM03FT026.mail.protection.outlook.com (10.152.84.210) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.20.527.18 via Frontend Transport; Fri, 9 Mar 2018 15:19:04 +0000 Received: from LinuxHost.amd.com (10.34.1.3) by SATLEXCHOV01.amd.com (10.181.40.71) with Microsoft SMTP Server id 14.3.382.0; Fri, 9 Mar 2018 09:19:03 -0600 From: Vijendar Mukunda <Vijendar.Mukunda@amd.com> To: <broonie@kernel.org>, <alsa-devel@alsa-project.org>, <perex@perex.cz> Date: Fri, 9 Mar 2018 20:51:32 +0530 Message-ID: <1520608892-12731-1-git-send-email-Vijendar.Mukunda@amd.com> X-Mailer: git-send-email 2.7.4 MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-HT: Tenant X-Forefront-Antispam-Report: CIP:165.204.84.17; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10009020)(39380400002)(376002)(39860400002)(346002)(396003)(2980300002)(428003)(199004)(189003)(26005)(86362001)(72206003)(2201001)(48376002)(336012)(50466002)(5660300001)(39060400002)(54906003)(77096007)(7696005)(4326008)(51416003)(186003)(1857600001)(6666003)(47776003)(36756003)(97736004)(316002)(2906002)(356003)(104016004)(105586002)(110136005)(81156014)(81166006)(68736007)(478600001)(8936002)(16586007)(8676002)(106466001)(305945005)(53936002)(53416004)(50226002); DIR:OUT; SFP:1101; SCL:1; SRVR:BN1PR12MB0017; H:SATLEXCHOV01.amd.com; FPR:; SPF:None; PTR:InfoDomainNonexistent; A:1; MX:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BY2NAM03FT026; 1:gFmy0ticoadjvgMmuN6dqa3zr8/rQMUVKkE60hUsAamlVt6t8GviWMaOX1zGI61aXPuqHGR5yzPrmfSSf3tQoGqdQyykJg16FxO2ISEe3bZh6tvQGYY203M/NAkd1RXe X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 70117d52-9ffa-4b29-afe8-08d585d11816 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(5600026)(4604075)(4534165)(4627221)(201703031133081)(201702281549075)(2017052603328)(7153060); SRVR:BN1PR12MB0017; X-Microsoft-Exchange-Diagnostics: 1; BN1PR12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gjAuDDL3Y3HJBLxTYqneywlKXmVBr0CrcS1qcUknlZenSrDZfI2QJvV8ho2IIvbNgv08JoVccRjXPTmx4NwdIWHuzaC0b4G2shipg0MOjRCtebQ8QzTOAVaWqLBka86sbqXT27aC+oP780nsY49TAAGaZEH3FxOJIL25SBiqvnZwPgc0vryUFlhuAeOIIo2I0aIx640ci3M92+Gpbb+UdfwarFsW2TvXdO/B4Ubj8seUIgRBah0wNA1xt+mlkxyX8lSr5dMebXs+uZv524pwObCrcW6Jlo4bhiw3+pxFXyxgMHOFNxFrMLvvHrkURhEp9Hb2a5sEcQJfRVxoRlO/jZWrdxAIoCbVomV885C6fSaBWR6LDMKPjw6gqIlzDqaZNwima+yNPX932Zu3hBngEABdTvG4vPqYqni7FxasnGE6QEBfOr1p5JKuVX9AJXnwliTmEoCrmdoUykTMNkUOvxqjPH8gKKC1J X-Microsoft-Antispam-PRVS: <BN1PR12MB0017ACDEEA72A59E21DB015B97DE0@BN1PR12MB0017.namprd12.prod.outlook.com> X-Exchange-Antispam-Report-Test: UriScan:(767451399110); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(8121501046)(5005006)(10201501046)(3002001)(3231220)(944501244)(52105095)(93006095)(93003095)(6055026)(6041310)(20161123562045)(20161123558120)(20161123564045)(20161123560045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(6072148)(201708071742011); SRVR:BN1PR12MB0017; BCL:0; PCL:0; RULEID:; SRVR:BN1PR12MB0017; X-Microsoft-Exchange-Diagnostics: 1; BN1PR12MB0017; 4:TB7KOpXTAJzffDwWrQxm7IpQJMdKKpEAlGLqlvAhraVG5dBcRF5f079DbDINuXAHynP4dO/cOozVWoVnilrTuSrzzgkOAo4m4FsgReSmqxgirAdpEjA+vXHKY6GD3beqtB7HCZELGi7y/JFWvn/66DrlK8Oxk84kHEXaPl9acj7R6pdLCR5siUZVrOLj0hKTB9o3+OLbkVJfsi/CAh2oE06wwLrl22J6XwVH2PngJ2sxoz0GGu9Sdl6hA6H58vFBnQziLSqkRwRNsdpJ30lk2MGsGuhH8vaGQ401Tr5ycoRz9RAyrVqq908reHlaha1f X-Forefront-PRVS: 0606BBEB39 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BN1PR12MB0017; 23:80bFXNNpSFSkBZIoeIK+A4evRd7n5Bpqc0lJWmXBO?= =?us-ascii?Q?CCwaM4hMK9bJSvCvoMw9XKf1skwvomKeVi6964FokQ7HC2h79sQ6LKlq4JdE?= =?us-ascii?Q?9+Zln8WXi5IvUPOVLekh+uoxuNBgmVc0bjQ2GUT9XpHBseluq0aPT7HpYMAu?= =?us-ascii?Q?0kCexh9NN0BDNvnAWmPIlDCvJnnLw7WOeUo3w31ivy+gwzVcd2SHwgVdxn9M?= =?us-ascii?Q?sPD1l9uLr25NAkLe0CW85yDBIOHDpAMyzx/sBMz9thJ3TuBWMmt1hssElkXb?= =?us-ascii?Q?v2h6qnPoIwLzF+n6r3XC+jMFwlcMHpjA4svOz/M171CPz0jZHFaTiJB8tFz3?= =?us-ascii?Q?xAqvdkfIlkGXd9DRSuLIEHS/kpZF6catRDJiOQmjz1WbepwTys2CnW9GiyP3?= =?us-ascii?Q?iDvCIhR3vsIKB3aYZrDUpsKXhq1tcc/92jHhYYBnvI5ajP3EOShX6+iiXR8/?= =?us-ascii?Q?CWyAx4k5q9iMIh6GTgPZ0uAcp7b4J3ZY+2sQ/O2nEy0m08wjYF1NwnBg/VeJ?= =?us-ascii?Q?Ol6QuK84MmntMRnl1B7zMSMqvRXdcLAPIGImlqZO5CYKL6OJgFF7i0KDSsBp?= =?us-ascii?Q?Z9U3Akm9+UO9iL6nISt4kab2rbH5TCd4oSQqieQB4ZsNVACNMBNK7XIItiUy?= =?us-ascii?Q?O/Mhr+ngx6MmJt9AMU0gqvisI/FZogawu1XkZY0BWBHbax6XTmkas7howII/?= =?us-ascii?Q?WJq9wuqWjHJStpAvVjBH6oCYQdRRr2nV9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yO0=; 5:8SgzfDqkQsuuQRtZmW6wt4jNCsHEqJsEtvBw9/jrh2GaOPzY2naCFTGij2PWZKINOL+/geepO6CHNJT+WYRIshtsSpitD3B4D9I6znt7szx68R8knPy7xwTGico3kiOkxDS8I8//1mkckyHS+SUp04HNzlunjCJ6z+01zct1Er4=; 24:YONRqFQOhfnbElKEfywyXPDkWHoaLPyQkLtGGrWG9SEvkPJSKWspPr3S2vrZ1B/aEytZ8w5o96lWjN3FVlq1zdVDAiINPesWwmkSRGmqvq4=; 7:N7T3aiYQ64dOSWAusMu6t5FnV1oU16pE/4B5JznekCbBBBs4v1ksJcirPec86cStP6hL11+whlc0UWXKNbLASUa14HqNkc9gOkjM/m22fl0aPpGuH8NgPU47F/c7GzVQeFl2K25lbJawj56cxwTQr/XS4v4ZKu0kHAAY+kh2G9JLi9gOxz5LRFG4t7XJjCXrY13cZKLBi1X+ePXPYSry0Np93E8bmOLqk4axYk7iWZ2clzQqIyiiYSpraG6qoIRq SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; BN1PR12MB0017; 20:El6G6W3EGwhJIp7SkrlpK3afK0TidSCxc8lmFVvDOvMQlP9TjQ8iRt/B7llLb6kt+EgyfHzKO0c1wtKsMzICzfu6T/qMFqqEXcmEQvQgLO1L776MQcFcDzIr1tu1RgEhW4zRBKzlq2vhhDEXOu5DOY2t6f1BwMqbcRcmawDWG2Tgqu5+WxHkoGsvdFEuJaxx2mCLOnQQdE/0l7botf7lxG2Giy5R0AhVLa+4kBgLcuatWP6NkwPiuq6Xrhyzgt41 X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 09 Mar 2018 15:19:04.0029 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 70117d52-9ffa-4b29-afe8-08d585d11816 X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=3dd8961f-e488-4e60-8e11-a82d994e183d; Ip=[165.204.84.17]; Helo=[SATLEXCHOV01.amd.com] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN1PR12MB0017 Cc: tiwai@suse.de, Alexander.Deucher@amd.com, Vijendar Mukunda <Vijendar.Mukunda@amd.com>, lgirdwood@gmail.com, Akshu.Agrawal@amd.com Subject: [alsa-devel] [PATCH] ASoC: amd: modifications in dma stop sequence 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/amd/acp-pcm-dma.c b/sound/soc/amd/acp-pcm-dma.c index 91c4775..9d7ab01 100644 --- a/sound/soc/amd/acp-pcm-dma.c +++ b/sound/soc/amd/acp-pcm-dma.c @@ -954,11 +954,15 @@ static int acp_dma_trigger(struct snd_pcm_substream *substream, int cmd) */ if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) { ret = acp_dma_stop(rtd->acp_mmio, + SYSRAM_TO_ACP_CH_NUM); + ret = acp_dma_stop(rtd->acp_mmio, ACP_TO_I2S_DMA_CH_NUM); rtd->i2ssp_renderbytescount = 0; } else { ret = acp_dma_stop(rtd->acp_mmio, I2S_TO_ACP_DMA_CH_NUM); + ret = acp_dma_stop(rtd->acp_mmio, + ACP_TO_SYSRAM_CH_NUM); rtd->i2ssp_capturebytescount = 0; } break;
As per design, non-circular dma also need to be stopped explicitly for both playback and capture scenarios. Signed-off-by: Vijendar Mukunda <Vijendar.Mukunda@amd.com> --- sound/soc/amd/acp-pcm-dma.c | 4 ++++ 1 file changed, 4 insertions(+)