From patchwork Tue May 1 20:49:57 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vijendar Mukunda X-Patchwork-Id: 10374421 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 9EA9C60234 for ; Tue, 1 May 2018 20:48:59 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 8C7C128CD6 for ; Tue, 1 May 2018 20:48:59 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 80FC728CED; Tue, 1 May 2018 20:48:59 +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 2F1DE28CD9 for ; Tue, 1 May 2018 20:48:58 +0000 (UTC) Received: from alsa0.perex.cz (localhost [127.0.0.1]) by alsa0.perex.cz (Postfix) with ESMTP id E51DB266F44; Tue, 1 May 2018 22:48:56 +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 4F8352675DF; Tue, 1 May 2018 22:48:54 +0200 (CEST) Received: from NAM02-CY1-obe.outbound.protection.outlook.com (mail-cys01nam02on0054.outbound.protection.outlook.com [104.47.37.54]) by alsa0.perex.cz (Postfix) with ESMTP id 16662266F0F for ; Tue, 1 May 2018 22:48:51 +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=GaA1OTT4FYpOXU0s+xyOI7Mx/piSsB+TtJ6PEPQP6XVlv2XY3gMVf/n2xYD1EDZ4XxLFd9NLO6WHW3zunACjRwPJjxSZiVwgFTtm1PmEysBwiegYBK/etB+LYx+bT71b9sl5WYCmnB8QeblVsVoqm7VafoDFUeDUi//AnP52Oeg= Received: from DM5PR12CA0016.namprd12.prod.outlook.com (2603:10b6:4:1::26) 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.696.13; Tue, 1 May 2018 20:48:48 +0000 Received: from DM3NAM03FT051.eop-NAM03.prod.protection.outlook.com (2a01:111:f400:7e49::204) by DM5PR12CA0016.outlook.office365.com (2603:10b6:4:1::26) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.715.18 via Frontend Transport; Tue, 1 May 2018 20:48:48 +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 DM3NAM03FT051.mail.protection.outlook.com (10.152.83.56) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.715.13 via Frontend Transport; Tue, 1 May 2018 20:48:47 +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; Tue, 1 May 2018 15:48:44 -0500 From: Vijendar Mukunda To: Date: Wed, 2 May 2018 02:19:57 +0530 Message-ID: <1525207810-1305-3-git-send-email-Vijendar.Mukunda@amd.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1525207810-1305-1-git-send-email-Vijendar.Mukunda@amd.com> References: <1525207810-1305-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)(376002)(396003)(346002)(39860400002)(39380400002)(2980300002)(428003)(199004)(189003)(68736007)(186003)(6346003)(126002)(2616005)(81166006)(476003)(7696005)(50466002)(51416003)(50226002)(76176011)(356003)(109986005)(336012)(1671002)(8936002)(81156014)(39060400002)(77096007)(446003)(478600001)(426003)(53936002)(11346002)(36756003)(486006)(86362001)(72206003)(4326008)(16586007)(105586002)(53416004)(5660300001)(26005)(106466001)(47776003)(104016004)(8676002)(6666003)(48376002)(7416002)(97736004)(316002)(2906002)(305945005)(54906003)(266003); DIR:OUT; SFP:1101; SCL:1; SRVR:CY1PR12MB0327; H:SATLEXCHOV02.amd.com; FPR:; SPF:None; LANG:en; PTR:InfoDomainNonexistent; A:1; MX:1; X-Microsoft-Exchange-Diagnostics: 1; DM3NAM03FT051; 1:ub+4ExJWaOmCCz5GyceQTrmzdhQcxIVlINp2zfftJsrAh+yi8N1n8V182LpLMBkOsTF+dwP44AUMQgSdWraCrZeSsfAcD3BSJiG1U5MXp70FlU6F4N6wMsmZR+U5O0sy 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:oTliVrqqWIpvW/SnjKbTAJbUCrsykx01L4HwejzSRNdtSvsJYLe9KbY+IbreWusIywak2G3WzmRLP4lnPFgPYa6stj0J6uU0vZVNgd/ncvKNVcqA21lFu5Yw8vrk7RifFIG9V3u7ms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GmOv4Ij3XNsBbT/vjj3SjSqmqccoExxp/LfFIlPsG8LywGeOHFIu0N3+cW+c0GI99XEGR1na8uBfcQnLXAjCxeKmE4XwnhZ+LEYhTprcXo8l8q6RjuPhikRbHS6jqnAev9eXBl+rW4dw74/AjIbR3LfALZN1lqKoBX+L18NzwTaXapwaV3Rl6phFnQmz5D1QNNinTklo5ZLAcTLEJlmZ+UCa1xnMZ/wYUdLIEu603TSxpgMHzl1Hm37nfR/m8TaTU1vfF/URFHemuLeagxM1jVMAUZKehBP/wnj48KnoyhVsVBtdnkIx2n X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(767451399110); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(5005006)(8121501046)(3231254)(944501410)(52105095)(10201501046)(93006095)(93003095)(3002001)(6055026)(6041310)(20161123562045)(20161123564045)(20161123560045)(20161123558120)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(6072148)(201708071742011); SRVR:CY1PR12MB0327; BCL:0; PCL:0; RULEID:; SRVR:CY1PR12MB0327; X-Microsoft-Exchange-Diagnostics: 1; CY1PR12MB0327; 4:RpgWbz5+dM7nx6eM7E4m6fZCtuzCVU/kCtPWNzeGsg+qAKPrRZKwTYBFcQfvGt6IEGroFCSUvx7RxnoDn+Mw+8NPHcI4ksZIFDPFqUBNHSC47H/1v5R6NlqniikWIh345uAnU4L2CLV99BS8JBhzO7u1Oe6pxEr3eIcTxuafxQXamjLj+3SnxDDKhHphomsVjv19+1uuLgDASXWSSJVMyWqFDJugHAgjU8Je0I0bjSLKUSUaUrysA/j45Gd54jtgyTS2lWOl3rqKH/0eHuZwZ8hpqmfXQYwPFV+KCtu9g9DpAxOczud4M401pcZYoOZ/ X-Forefront-PRVS: 06592CCE58 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; CY1PR12MB0327; 23:0PgEEZe4ANfjGU8UhwMGldRhE9eHTHJvnpiQGfR5f?= =?us-ascii?Q?z9pLcwRJ+DK2Dhmh33HTQC+ItXJBGNE4deMD7eETB77RNQH3HeD60wdLPD2s?= =?us-ascii?Q?il4OpuZvzspV4tq6zlY2cV9MGcT+Bp5iohJVqYxraX5tKp2575x2VWH6s86l?= =?us-ascii?Q?e+27IyTOppO7/mJr5qftGtf5aqMjKBo1W+3aG6ddogAT9ymnEjjyY5ApInJW?= =?us-ascii?Q?uEg82hU5abNAa3UnmE8/k5V4B/T0hUM5tqqepPy34xYv3E34u7icXTLutrSY?= =?us-ascii?Q?3rmUNjvnlfKu5+B+OQoW5/pGa6wDiQQQCif++7/N9kuBFlFdd9aroppgtm7j?= =?us-ascii?Q?rErzLU9eLioC3dBz48JfMZm34O8IBI44dV971NoSe8Uxdw9iyyBFlIxGvSKr?= =?us-ascii?Q?278MmHlMfqetJA1r0neJ0N4gvZgImREEoGKLBnpoz737Ud9+WHYMqfFh7GI3?= =?us-ascii?Q?qeMdUkfT8Eocd1imzSOlc8K5ZNXYYoPUqIRIK2Ewg2+NXIY0sjWTuicfKJIn?= =?us-ascii?Q?5vIrL++EnV6kh87EXq1JhhOrlAvIAVpgPcFycAHeeK6ExL9/93V50OojGeGK?= =?us-ascii?Q?NfrdH5P1Q93DAKju7icuNg9QCdcSxAyfeVKrOs2qK8BA0ZetlkBw5nU5RODq?= =?us-ascii?Q?SN8x9T46e4hcPkZ++IWH4bPMP9c8ItjppquER5Fc6uBQXg2m1Dlp5wSpOH6P?= =?us-ascii?Q?1yiFLsbM0kSPliziCTAXbVynxUdwF5pbC380JDG5ojDus6JW6AI5dxMm7/iy?= =?us-ascii?Q?oW/DyQAmnsHK7m9GxzUlsGGcQkE7yXD7ejDLU0rvHdE6oukyzeQFZXM3no6O?= =?us-ascii?Q?9fHkKg4EzPxbIPdk7LWTGWzJ2XiqR2SGLul2JCWcb1HjGu2YrhEt06XgjrlF?= =?us-ascii?Q?wZeSa/qonvTkQTiTUtV8DQvqGSNGzBGF16N/u60F1bjMM2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3Nhkp05Umw9xcrtPYF6mNXOwPsVG4Z09Eh16PMe431g7f9Nj8A7/UmRIDZRM7GtFIJwdenO8cOlfbb3ElPypxTg==; 5:YGfTNckQi/xZ6RJckU27yf7HgbwW5pvZhoyZ0ciu+yHeog0olepC4al8T0wNF44NantdU6bm24N82+Mr6BeEsXdX2wSYoMqtPSAMa/AQDgc1BuuKZTcd3wM3rJF1RZrPHVMt/ExafwOsR/E3B7eAXsrKONnpIOWwZRmNCo5GcgY=; 24:oTCi2S2zBzwGOh+qVioBGQXMZY7ric54RZznX3SMmT4UP4pTuKJBV8zovBHRdhGlHM1qm5wlvOxWnSZl6s2nisjN6HQy4+I16FnEguIkOzQ= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; CY1PR12MB0327; 7:gtTWXlYgQ2cR9b9Lh5KlDvzhR1QT76hEKyzaEirsFGt4qEjNTnU6rf1/xKYoGhL/Vdjg4zZyLUoczvLZqWOahW2fDkQ9NswCRLl09/BU1xE2ySPotoSKWQYatFB+1nLZzMtfarsU/6rIseRUcJ8h8JgekKrMjQZc0PmPw6xNZaQjFy2YkEwm1+T0PjrYt0CK+iuesnrTZF5SHekNYlwFasiRq43dtss4Hoc+VvLiPC3Mo5Lb8CALP8495x033wJx; 20:Ho7Vl+CYbf19+mXGxiwpbMwbXPpDjJTMl6yr7F9ZUxNKNLYNyOhU2opB+JhfnKzcxKQoHZ5jUn9m7RJW/lYI80eLOovGb4a3CPb71zAv9f7radJwYRUqs/AheGjyVoHyXcUbtlwdhanzIAp8tqRIeVWj/RzeLBKOL6hAJYX08wMOrGNoZUyRJcIeMacnS04T9sh3wmvsT+pGEo/DzuH7yBX0oF360ucx0Qz9lyVTKRz+4UECMOR7pb0guLX++7m/ X-MS-Office365-Filtering-Correlation-Id: 7682eb23-46da-47da-27cd-08d5afa4f01f X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 01 May 2018 20:48:47.5395 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 7682eb23-46da-47da-27cd-08d5afa4f01f 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 , Kuninori Morimoto , Liam Girdwood , Greg Kroah-Hartman , Philippe Ombredanne , Takashi Iwai , Jason Clinton , Mark Brown , Vijendar Mukunda , Alex Deucher , Thomas Gleixner , 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; };