Received: by 10.192.165.148 with SMTP id m20csp3477294imm; Mon, 30 Apr 2018 00:24:06 -0700 (PDT) X-Google-Smtp-Source: AB8JxZq656EHvWCj2e+dMcLGXuqDA+L0YU/EBy2ga6KhpfUDn8fGHutBuRr2Odc158KTU7wGCVNL X-Received: by 2002:a63:41c5:: with SMTP id o188-v6mr9304274pga.280.1525073046215; Mon, 30 Apr 2018 00:24:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525073046; cv=none; d=google.com; s=arc-20160816; b=UROfRHU8rRAY19r32pgyaK5I+GH9bn0XkqkX33XOKvtKRzimuLC27wvP6nd8lslUBj DAEshstz4rbqnhZ2E6staembChd3/a1BRvKAowUGPGakdZJnN838Q3gii3MAjRxfxd+K D2plkfA9PYxELXg83UKAqP7LUWVV3fk/8PiHncKYx6Swq/C6Ncrc81wmjkSCMrLZGsA1 CYaff7jDqfBOUvqdt3hAEVHGMWS4XsOP9IW2Xm/6vq39hr8f6a9j7vGuvALWRHh/N8dX azfw2+8aNG6O++1VVILAgaN565DWGRLoj6vhhUTPkSpvkrat3CqG6gsGNuhqEwxJcxJA g5YA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:spamdiagnosticmetadata :spamdiagnosticoutput:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature:arc-authentication-results; bh=0lRrehbl7JC3MdBmjK+WWTNWadKC1i0uw1FOIOKUFjI=; b=jwWlib+VME7MShXdN8zaof8dWFvNxRRUZXPy4GMwvU4a8xR4RRHVwaoxxRhI1msLzU p5xObyArxpvwmCb/M/Qrl+t7gZoaS509CXKqY6NHtsfVybCNJAQPYIC75Nevxej2FRQE TAuPkwYnmfajpa7z5wR7R+K+UBh16MGMC+xCjmeR7BN5cU1J2PHgREzm2extttJ/R93l 5rbSjhWOjcwpd5wNZbPWKhsKTv/VnUpnFP2tx9TiDLNdN756QiBnYtVVU57JC4lp6/Ua LL4qX8WuR5ldrjLujHFGiAgbxrIP8u0MuXUkC4Akl55abrbxODUfM1E9MHAxjAeV+f+w 8M8Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amdcloud.onmicrosoft.com header.s=selector1-amd-com header.b=lGnyqrRR; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b6-v6si6727003plx.211.2018.04.30.00.23.52; Mon, 30 Apr 2018 00:24:06 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@amdcloud.onmicrosoft.com header.s=selector1-amd-com header.b=lGnyqrRR; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752382AbeD3HXL (ORCPT + 99 others); Mon, 30 Apr 2018 03:23:11 -0400 Received: from mail-dm3nam03on0073.outbound.protection.outlook.com ([104.47.41.73]:11414 "EHLO NAM03-DM3-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751705AbeD3HXJ (ORCPT ); Mon, 30 Apr 2018 03:23:09 -0400 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=0lRrehbl7JC3MdBmjK+WWTNWadKC1i0uw1FOIOKUFjI=; b=lGnyqrRRxHEz0R8HCfB5DaYOSzOtoGtynwz/GnoRo0QoR5T8glVZCKjzG/VG9YlGqfXg2hY5eSOC4i8RZYhSbLF6zYPwyrsE1yVbW0LA3woRaZO6w/xlfKE2oTF9Lz+2MU0YMzJJkmLIZxzHZ10lwXYVoRZY6qMkVU7adHjrgH4= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Vijendar.Mukunda@amd.com; Received: from [10.129.12.246] (125.21.194.1) by SN1PR12MB0319.namprd12.prod.outlook.com (2a01:111:e400:5145::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.696.17; Mon, 30 Apr 2018 07:23:02 +0000 Subject: Re: [PATCH 04/11] ASoC: amd: removed separate byte count variables for playback and capture To: Daniel Kurtz Cc: Liam Girdwood , Mark Brown , perex@perex.cz, tiwai@suse.com, alexander.deucher@amd.com, jclinton@chromium.org, Akshu Agrawal , Guenter Roeck , pombredanne@nexb.com, kstewart@linuxfoundation.org, Greg Kroah-Hartman , alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org References: <1524741374-13523-1-git-send-email-Vijendar.Mukunda@amd.com> <1524741374-13523-4-git-send-email-Vijendar.Mukunda@amd.com> From: "Mukunda,Vijendar" Message-ID: Date: Mon, 30 Apr 2018 12:55:43 +0530 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.7.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Originating-IP: [125.21.194.1] X-ClientProxiedBy: MA1PR0101CA0056.INDPRD01.PROD.OUTLOOK.COM (2603:1096:a00:20::18) To SN1PR12MB0319.namprd12.prod.outlook.com (2a01:111:e400:5145::15) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:(7020095)(4652020)(48565401081)(5600026)(4534165)(4627221)(201703031133081)(201702281549075)(2017052603328)(7153060)(7193020);SRVR:SN1PR12MB0319; X-Microsoft-Exchange-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kB7JnCxV0wNhbPPgdQ6CW+c5CNJFHZqhGvbk2eCgI1SOSJivaSbVJ4Mz02mouQFdrlnRIRnPvYJAVK7hvq0ltckZzcKPK7qV1FJVrhfUiV3+sDto8009RfryRaLwO4BqkvJFop+6EFWskR2hoeqkveEWkK+PPiBx0DbfZl74+ayCdX6mHHIm6fH4tu4UMmtNPRwAm6RncDK3UpYtWdGZeXfk0lrVsJ82W0KIWnOkshpi7jLp9IAQ5bhclhlwQm4ktDrkmpY+HvFpSCfeRNoCvi4VJM4+115ZAq9diRrqW46uRyH0bdRqsrw66G/uK/CVVpoXd9IBDQS8RIwRMTmTk34MM+lJgGkYcosHAs2CjiYAUwZX0b;4:jvJe5Wpw+TG0hsoFPyFkc3O8vdeZFJniEvXs/woFpWPwcd16E0p2iWtAJdiwfQlLgqnqYctjnX/zZ1IPACvVwCq/guhQINfOkBpt7v3fF7YQ4INFoXLLs4kYl8OBzQRXWnh3VaFYyxHgWo13n5mdxwzb3IPLscc+400epIrF/tQuBVz2gk8byRdUwD3SKY2aBNg1Rd8KzXovWE9F+FV0fvcEZTSXvD5oqQNvTLfSN9Ue6kJR30jBJJvB1W80kEKfpVVRSrjSYK3XpV2IdXCGEVF0rdCXZJJ7CrSM9xlbRe1zcKY7A1l4j6yanFQ/8I4Y 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)(93006095)(93001095)(3231254)(944501410)(52105095)(3002001)(10201501046)(6055026)(6041310)(20161123562045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123558120)(20161123564045)(20161123560045)(6072148)(201708071742011);SRVR:SN1PR12MB0319;BCL:0;PCL:0;RULEID:;SRVR:SN1PR12MB0319; X-Forefront-PRVS: 0658BAF71F X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10009020)(6049001)(396003)(39380400002)(366004)(346002)(376002)(39860400002)(199004)(189003)(3846002)(81156014)(6666003)(6116002)(66066001)(305945005)(446003)(7736002)(6486002)(65956001)(5660300001)(81166006)(186003)(16526019)(64126003)(50466002)(65806001)(47776003)(36756003)(65826007)(4326008)(8936002)(25786009)(386003)(7416002)(31696002)(76176011)(486006)(86362001)(23676004)(8676002)(2486003)(2906002)(52146003)(229853002)(52116002)(67846002)(6916009)(58126008)(39060400002)(6246003)(31686004)(53546011)(72206003)(476003)(26005)(77096007)(11346002)(316002)(16576012)(97736004)(2616005)(54906003)(106356001)(230700001)(105586002)(478600001)(956004)(68736007)(53936002);DIR:OUT;SFP:1101;SCL:1;SRVR:SN1PR12MB0319;H:[10.129.12.246];FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;A:1;MX:1; Received-SPF: None (protection.outlook.com: amd.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?utf-8?B?MTtTTjFQUjEyTUIwMzE5OzIzOkNmbE1IRmNvSzhLamp3eGR5YXJuRUN4OC9t?= =?utf-8?B?aXF4aWNvVzR1WnJZNUVNZVE3STErV256SHNFSEFJdS90MWhiaTBuZkg0VGFG?= =?utf-8?B?UU1mRVcwQ0dWb0Z2UWJhRzJSdmFaTzErQzNDNkorWStrb2swOGNuQ2xhMlNs?= =?utf-8?B?azhnMGtvZUlvWThhN2Y4b2hncWpWYWtiaG0xSFJhR1FFM0hZdDI0YmhTRVdw?= =?utf-8?B?SjBCVFphLzg2eEZ0aGlPaWJNcjRvbUxKYjE4b1BjTWxBMGlXcS9mdXZYMjAx?= =?utf-8?B?dEZxa0dUTEROV0E2ckMrNzI2THFoeDd5dGEzb29PVWFCR2RXTkU2RU1SL2V0?= =?utf-8?B?czNsR1JzOWcxWndKK0hQaFBqakVnU0dhZktuVkRjM3AwTzQrMHF0ekY3Wllw?= =?utf-8?B?eStHSmxDQ3IwQUxGK05PMm0wdWtmRFpVdVRidFhmcG90VWc0YlE4cS9vekpz?= =?utf-8?B?UjlSVVZ6R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rwIPHv9z2U+H;20:4XWp1ayXDLrKqHTtrQQQPNMgUrvqQs2k7XUD9wn/6d/nQQ3pWHx76ogIp0k6HZAYfpXdNwy5zVesgsob0/0cUOGcqvdLDpjTkwsOa9GzSlD5udNJIyQY6hjJ9gjKFvlX8yEUtxQfrtS+V92B/0evvMShWIVlU9bro/pfxKJKWKYgPr8ZhJrH8l0mP8t/H7JcdtdeFiI2cVa3EPbcnj0tnaqEz62mE5OeQKwlZvW3fhSMY9tPTjGzrUjidDPdEYGl X-MS-Office365-Filtering-Correlation-Id: 5e2c70fb-9e7a-4cc3-ef50-08d5ae6b37a0 X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 30 Apr 2018 07:23:02.2070 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 5e2c70fb-9e7a-4cc3-ef50-08d5ae6b37a0 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN1PR12MB0319 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Monday 30 April 2018 03:11 AM, Daniel Kurtz wrote: > Hi Vijendar, > > On Thu, Apr 26, 2018 at 5:15 AM Vijendar Mukunda > wrote: > >> Removed separate byte count variables for playback and capture. > >> Signed-off-by: Vijendar Mukunda > > Reviewed-by: Daniel Kurtz > >> --- >> 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 019f696..5f34be1 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 = bytescount - rtd->bytescount; > > nit, this could be: > bytescount -= rtd->bytescount; we will fix it and will share fresh patch. > >> 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; >> @@ -947,12 +939,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; >> }; > >> -- >> 2.7.4