From patchwork Tue May 8 04:47:46 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vijendar Mukunda X-Patchwork-Id: 10385353 Return-Path: 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 DF10F60353 for ; Tue, 8 May 2018 04:45:21 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id CF9D128CA9 for ; Tue, 8 May 2018 04:45:21 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id C455F28CBF; Tue, 8 May 2018 04:45:21 +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=-2.8 required=2.0 tests=BAD_ENC_HEADER,BAYES_00, DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE,T_DKIM_INVALID autolearn=unavailable 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 D426F28CA9 for ; Tue, 8 May 2018 04:45:20 +0000 (UTC) Received: from alsa0.perex.cz (localhost [127.0.0.1]) by alsa0.perex.cz (Postfix) with ESMTP id 411C42676A5; Tue, 8 May 2018 06:45:19 +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 A64112676A9; Tue, 8 May 2018 06:45:17 +0200 (CEST) Received: from NAM02-SN1-obe.outbound.protection.outlook.com (mail-sn1nam02on0075.outbound.protection.outlook.com [104.47.36.75]) by alsa0.perex.cz (Postfix) with ESMTP id 1803B2676A3 for ; Tue, 8 May 2018 06:45:14 +0200 (CEST) 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=bl0GQPvHEDwTxrsDh7bvbFOHIRUXS3eDSkIaPPTUWcM=; b=Cos9G8eRuAZ2GzMrO55F/bOxFrJ8NYsRsvGyVgV/458DlMApb5Kjbp92w+/x+ahX4rKlTcWl7fXt0ceHdEgsdCxUyca2wKxoxWEJr8yL2KrEHwMrTWIlq4C9UKWnwic98pAfVz4+A039obDDtYd9rWciDadQetwptqGzJtsSd8U= Received: from DM3PR12CA0101.namprd12.prod.outlook.com (2603:10b6:0:55::21) by CY1PR12MB0327.namprd12.prod.outlook.com (2a01:111:e400:50fa::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.735.18; Tue, 8 May 2018 04:45:11 +0000 Received: from DM3NAM03FT028.eop-NAM03.prod.protection.outlook.com (2a01:111:f400:7e49::202) by DM3PR12CA0101.outlook.office365.com (2603:10b6:0:55::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.735.16 via Frontend Transport; Tue, 8 May 2018 04:45:11 +0000 Received-SPF: None (protection.outlook.com: amd.com does not designate permitted sender hosts) Received: from SATLEXCHOV02.amd.com (165.204.84.17) by DM3NAM03FT028.mail.protection.outlook.com (10.152.82.196) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.20.735.16 via Frontend Transport; Tue, 8 May 2018 04:45:10 +0000 Received: from LinuxHost.amd.com (10.34.1.3) by SATLEXCHOV02.amd.com (10.181.40.72) with Microsoft SMTP Server id 14.3.382.0; Mon, 7 May 2018 23:45:09 -0500 From: Vijendar Mukunda To: Date: Tue, 8 May 2018 10:17:46 +0530 Message-ID: <1525754888-14124-3-git-send-email-Vijendar.Mukunda@amd.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1525754888-14124-1-git-send-email-Vijendar.Mukunda@amd.com> References: <1525754888-14124-1-git-send-email-Vijendar.Mukunda@amd.com> 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)(39860400002)(396003)(346002)(376002)(39380400002)(2980300002)(428003)(189003)(199004)(2906002)(356003)(97736004)(104016004)(48376002)(86362001)(8676002)(68736007)(81166006)(486006)(2616005)(50466002)(446003)(36756003)(81156014)(11346002)(4326008)(5660300001)(336012)(7696005)(126002)(426003)(476003)(39060400002)(6666003)(478600001)(72206003)(54906003)(53416004)(26005)(53936002)(77096007)(105586002)(305945005)(8936002)(50226002)(106466001)(76176011)(6346003)(47776003)(109986005)(186003)(16586007)(316002)(51416003)(1671002)(266003); DIR:OUT; SFP:1101; SCL:1; SRVR:CY1PR12MB0327; H:SATLEXCHOV02.amd.com; FPR:; SPF:None; LANG:en; PTR:InfoDomainNonexistent; MX:1; A:1; X-Microsoft-Exchange-Diagnostics: 1; DM3NAM03FT028; 1:7YgWQeeawY+A7k3AgxHZ/QTtZmqvzdwotMFQ2swsw5UXZH//464j8uaegFAotdRVzKYMXuV5VYG8Uctydo94pNkW6rrQu4b4uSwJQIcksZP60SHRfNvXa+19pqajBFBu X-MS-PublicTrafficType: Email X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(5600026)(4534165)(4627221)(201703031133081)(201702281549075)(2017052603328)(7153060); SRVR:CY1PR12MB0327; X-Microsoft-Exchange-Diagnostics: 1; CY1PR12MB0327; 3:1IgUOYTq/UKyjVSHhsuKfiKgS1F3l+A1ep8f9Xtb/yWUIQHj19SzSor03nKn1nd8rO8sBl1gWZGNhykXofd1ia733ZmjbwukUfq1vbBBxScEVszxW83/rEXb7A2B73grgEd04PEE6WTgC7L8SQwSxYYqOHzGYF3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aPHa6Flks60UONjnq+5ENHdvho9mNj68PzdwPyxSgDUiyS96i4HZklW1knKp3E8bSiiZEi/WaK/WaBlo6EEB8dFUv+Tyl3bpMN1kIG5hGMj9Fd3F6357tnwNgEVrZhQJUvfm7hD8g521WJWwhSInvVuMrRpcHYo/PgLi0uoQ1QOaoTybrrH4Oqd48ZHTtfQeHFyl2NgiCQlBGtZRyXKMWcjitmkd+b7VOPBsEC0oGtbKdJlIYtC91dcDe0HktqPMpGc/JGCAIT4sjOXzezUUHv32YEEaxVxE6CSCuL X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(767451399110); X-MS-Exchange-SenderADCheck: 1 X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(5005006)(8121501046)(10201501046)(93006095)(93003095)(3002001)(3231254)(944501410)(52105095)(6055026)(149027)(150027)(6041310)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123560045)(20161123564045)(20161123558120)(20161123562045)(6072148)(201708071742011); SRVR:CY1PR12MB0327; BCL:0; PCL:0; RULEID:; SRVR:CY1PR12MB0327; X-Microsoft-Exchange-Diagnostics: 1; CY1PR12MB0327; 4:Ud5NIywEP7Talq1cv9AqWY1JddZCq+lXiP/SEskeLC/AwZxowfrpEgbuqk0BfSSkF49o6rq8BzzTR5jBAYAjLLHsWeCCFxREanrIiX6IPdDEz5MURWHgKE4RF34kmIFjAq6ACtTIOlBvpVwD4tI7vW0t0CnnPNEdX95mx5df50H4JV4rs6VJDVeb10KdyrgM4edxBjD+HqHsgEFGH1xKYn1qq2pIQaDRlhreNKrnbPKdQzW8wXq712Ts2ZqcaN4up/mt8iUC1nzxBgugtOsMhZda1WqY2SbHRz2AGEaLI6GcW93cStnURi8BCEJ1feRd X-Forefront-PRVS: 0666E15D35 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; CY1PR12MB0327; 23:7jIEtGbTrDkripj76637iICUf3k+PK/XZfg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EMVSWi+fspMY36Y8NhYqsx4LlY0Ll1u+pe93eFCOPKBsplx1mpy0K79LfZvA8XyT+LQLBrroI/C7+BYwf3XoOfDviCyQ==; 5:lHb8fCjvwPetxlbCYPVOQ+xg70CW+FeFsNtCJ5pP5nDUbXU4ZJ4gEiS1Z99J8gjoOkjJIW1r7sMyqNb5vDijTMqgxLExVMuX3FNmSVNEyXBwECWGFK9qJu5v4gxpjwOf0jN6ORL0TzCGJ62OoL/1pMKmxm0epd4Ijq13qLrWdY0=; 24:ZKli6a5GlyUH5dYNcMsSTtiOVU6zx3TmW+j7T0h1AfP3LoMTLTVs4FvSVjkh5rklw9828GEGlHMZa7jl4XZtIRFDBePEX9aHmg9eYG3x4ao= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; CY1PR12MB0327; 7:NCCJhnJ3/s6XWgrRBnPycKWubFY+ZNkR4lxIQVdco5DghENy7OszV4KbXfdsEePCQgA0iVAYuSfs+gG3s7TQO1NFX24XUQGX1GBUTiD4jdJvRk7qmYW55Ha6e4lni4uCh3c2HzhCUAtaiWFi+xtlbE4Q4kNmAeWKIu6wVd1ADcBszh3OZIplvwsZSoZCeTXakLWtLE+aTneAqW0ddBiYQLor2tGjTDzCdoUvt17YH6bDcO3JCYhsjJ5vSmToAbtg; 20:eA28j3VZODqV24XPJr411Z2sIYTCwbPEXcHTI194K/lvXhG/2qtUbrzAfpFHhct6HjIbcWS7l8B5GC+hXIjhJ833Sf1Q4SDNY3R2dM+yTtVJ2EHuk9k53bj/1u2McEcb0n103avpk/7nNQ3/ei+ifDOFwe/wDE52as/Sz9SQ2XEwvHionyiBRulz9NoaoqhxfWhsCmqHJJyFHcA5E12g5aRP0KRS2adrK1a+uIlm5AjGtGEjgEQDiies0XSq9b9f X-MS-Office365-Filtering-Correlation-Id: 1fa59a2b-2c8a-4a1e-b4c1-08d5b49e7b32 X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 08 May 2018 04:45:10.1764 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 1fa59a2b-2c8a-4a1e-b4c1-08d5b49e7b32 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=[SATLEXCHOV02.amd.com] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY1PR12MB0327 Cc: "moderated list:SOUND - SOC LAYER / DYNAMIC AUDIO POWER MANAGEM..." , open list , Liam Girdwood , Greg Kroah-Hartman , Takashi Iwai , Daniel Kurtz , Mark Brown , Vijendar Mukunda , Alex Deucher , Akshu Agrawal , Guenter Roeck Subject: [alsa-devel] [PATCH V2 03/10] ASoC: amd: removed separate byte count variables for playback and capture 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 Removed separate byte count variables for playback and capture. Signed-off-by: Vijendar Mukunda Reviewed-by: Daniel Kurtz --- v1->v2: Fixed review comment in acp_dma_pointer callback sound/soc/amd/acp-pcm-dma.c | 19 +++++-------------- sound/soc/amd/acp.h | 3 +-- 2 files changed, 6 insertions(+), 16 deletions(-) diff --git a/sound/soc/amd/acp-pcm-dma.c b/sound/soc/amd/acp-pcm-dma.c index 6e338fe..862c1cf 100644 --- a/sound/soc/amd/acp-pcm-dma.c +++ b/sound/soc/amd/acp-pcm-dma.c @@ -866,13 +866,8 @@ static snd_pcm_uframes_t acp_dma_pointer(struct snd_pcm_substream *substream) buffersize = frames_to_bytes(runtime, runtime->buffer_size); bytescount = acp_get_byte_count(rtd); - if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) { - if (bytescount > rtd->i2ssp_renderbytescount) - bytescount = bytescount - rtd->i2ssp_renderbytescount; - } else { - if (bytescount > rtd->i2ssp_capturebytescount) - bytescount = bytescount - rtd->i2ssp_capturebytescount; - } + if (bytescount > rtd->bytescount) + bytescount -= rtd->bytescount; pos = do_div(bytescount, buffersize); return bytes_to_frames(runtime, pos); } @@ -921,9 +916,9 @@ static int acp_dma_trigger(struct snd_pcm_substream *substream, int cmd) case SNDRV_PCM_TRIGGER_PAUSE_RELEASE: case SNDRV_PCM_TRIGGER_RESUME: bytescount = acp_get_byte_count(rtd); + if (rtd->bytescount == 0) + rtd->bytescount = bytescount; if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) { - if (rtd->i2ssp_renderbytescount == 0) - rtd->i2ssp_renderbytescount = bytescount; acp_dma_start(rtd->acp_mmio, rtd->ch1, false); while (acp_reg_read(rtd->acp_mmio, mmACP_DMA_CH_STS) & BIT(rtd->ch1)) { @@ -934,9 +929,6 @@ static int acp_dma_trigger(struct snd_pcm_substream *substream, int cmd) } cpu_relax(); } - } else { - if (rtd->i2ssp_capturebytescount == 0) - rtd->i2ssp_capturebytescount = bytescount; } acp_dma_start(rtd->acp_mmio, rtd->ch2, true); ret = 0; @@ -955,12 +947,11 @@ static int acp_dma_trigger(struct snd_pcm_substream *substream, int cmd) if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) { acp_dma_stop(rtd->acp_mmio, rtd->ch1); ret = acp_dma_stop(rtd->acp_mmio, rtd->ch2); - rtd->i2ssp_renderbytescount = 0; } else { acp_dma_stop(rtd->acp_mmio, rtd->ch2); ret = acp_dma_stop(rtd->acp_mmio, rtd->ch1); - rtd->i2ssp_capturebytescount = 0; } + rtd->bytescount = 0; break; default: ret = -EINVAL; diff --git a/sound/soc/amd/acp.h b/sound/soc/amd/acp.h index 3b076c6..82470bc 100644 --- a/sound/soc/amd/acp.h +++ b/sound/soc/amd/acp.h @@ -93,8 +93,7 @@ struct audio_substream_data { u32 byte_cnt_high_reg_offset; u32 byte_cnt_low_reg_offset; uint64_t size; - u64 i2ssp_renderbytescount; - u64 i2ssp_capturebytescount; + u64 bytescount; void __iomem *acp_mmio; };