Received: by 10.192.165.148 with SMTP id m20csp3476234imm; Mon, 30 Apr 2018 00:22:34 -0700 (PDT) X-Google-Smtp-Source: AB8JxZoVbc87mCOeMbBxbjOuYFhrZ8OTjyuoiX6pH/n2NF7+pN9dLUir+QhRw2QTgkjhPNnl+EyO X-Received: by 2002:a17:902:3225:: with SMTP id y34-v6mr11673401plb.180.1525072954117; Mon, 30 Apr 2018 00:22:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525072954; cv=none; d=google.com; s=arc-20160816; b=xXAkxP36XzCnZMmhHneK15/gvbVj2bn3tJyjVpMI1FP9pvU4BCM5u8TET5T1QEWVmy 0SBvl6o8rkbJgvJ9s823ld38XrkUFSidnzmETB1gstFV9eTk9IwZOGILNxNjLvLTpP6E 0FUTV7yC7UQFySb0Y1cUSr7TYn9ZLR+pfmXfyBIpU7jaBG3kysB43akw9r4qfk3AQ+KJ FTG6K4jjj/fpZMXYkssQH4mjNNpPEQ4jG9vX2K2zfGtwQnZLj5iXpfKxohtAZq2LSjYq 2PCFOhPm6QgBMFstnMO7qGjXtd1oX77Ql8+dZ3SZyukKBW0v2ovwkX2Gzb72FmjRcJQ4 z1Yg== 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=gqN33ztAgtnHZ7siPDdyLemtyyBM+F7tA45yuPz7FAk=; b=MNvRHxUfGe/N4iUVyWV+D2pPbPj+YMoj0KX5tj5Oid7uqeh4GDucxi0puLVCe4GXrA Vc2MzWTEKuKZrQY+NNbpsXCeTbWGskmyGiwqYdFQlou7UmBw6y5KI3xsu4cv0aQCPqR9 Uz/o0QzljVmpiewPIKUPvPc067FZ8Qmj3kSEI887rcU75zQl82cpwC9+jd9mweAAuUID 0BpWeO/FWq0aVe5k/OF2K9NnmLl0twtD7ovyw4zDAtx0Vdt+FPw+N7AEfa8sUT2offT3 wph4nGjtpwluUq99Og0lCxWViRl/6x9E0IsSf7315hnUPz1ANPQ/9PLLmIC2MK+ApRWu Ekjw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amdcloud.onmicrosoft.com header.s=selector1-amd-com header.b=ICUMLRN0; 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 f12-v6si5718200pgp.298.2018.04.30.00.22.18; Mon, 30 Apr 2018 00:22:34 -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=ICUMLRN0; 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 S1751959AbeD3HWG (ORCPT + 99 others); Mon, 30 Apr 2018 03:22:06 -0400 Received: from mail-bl2nam02on0070.outbound.protection.outlook.com ([104.47.38.70]:35264 "EHLO NAM02-BL2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751621AbeD3HWE (ORCPT ); Mon, 30 Apr 2018 03:22:04 -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=gqN33ztAgtnHZ7siPDdyLemtyyBM+F7tA45yuPz7FAk=; b=ICUMLRN0O5LV4hfW6Njs1Eio4AdohvNLjWQt2NgscNlPyYmIqBTeuudnJJCKz2qMrBLG3S4CfqUSUsuF2qkMI22h5/7xKZ352X5mWocoDGWE7C5PajhS78xRmuK0LFVWqmEHzDnQlQUm9DleZtTcXqLKmKRHb4jEcUI+fJNzSKw= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Vijendar.Mukunda@amd.com; Received: from [10.129.12.246] (125.21.194.1) by CY1PR12MB0309.namprd12.prod.outlook.com (2a01:111:e400:50f8::23) 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:21:56 +0000 Subject: Re: [PATCH 03/11] ASoC: amd: added byte count register offset variables to rtd 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 , 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-3-git-send-email-Vijendar.Mukunda@amd.com> From: "Mukunda,Vijendar" Message-ID: Date: Mon, 30 Apr 2018 12:54:20 +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 CY1PR12MB0309.namprd12.prod.outlook.com (2a01:111:e400:50f8::23) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:(7020095)(4652020)(48565401081)(4534165)(4627221)(201703031133081)(201702281549075)(5600026)(2017052603328)(7153060)(7193020);SRVR:CY1PR12MB0309;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cAOImGt+1T4sLJ/sZqfxD6sIPsxmTgdcdJCT9Ezdh3ZxOiK5z1xkBrSmVtLRA4QvqebL8GdnBP5zstgxGzjP5lG1m3xMLF+rKFsaw4hJVMClG6h7wpUTK6mwJqy8GqOUBisRR5wXvTLLvWX9sOQKD/c2nwfZtXcjk30cvL+c7lXcURpsbSFyNox1lEX+MLgJ1iloYCuU6Ohzw6aUxH1fjWS8ZYq68jGEnhWUY7teFu3Jf3/NKBeWLNp14JPITqy3wOAV9T2pn2oIgbNhS0mnjoSxZhNdRzUwwLzYBbeJZnAPilAxUs68qBldkiLPvSAC6vE+hLnRASIpgkQz7PV6zFleKkH7QTytuRAkN5sE2hxr92eo3z9g3BujS9i5+yt8Yu;4:LLM7KdsoDFYwPWCaI7s8mQfdDPhnkeDOZepf0xHbWO/86EquAnODknYdPvmST0uYgZeCO0iPkcfCS8f31TYR7vIkR0MW8mV5Rq9MFfRZ2qFHowzFuXbjZQinjJqFF9PgriemabVAhtkW8r6ghQbLVwmc4MRordCq6xRd0AGwTwwU6GJOdcAZ5PV5RrKGeVo4l4Dnl5GtkAJo5jJcTlt7x3eAmKb0T4v+4w3PiDX6ZkgLU4ztI59YtXj0DamjDvYy0J34n+pUyuOisF2Nvu+fRwdMin7PVBVBMiTiN2xhyEWgqqR9TCUy0TzaWoa3bL2b 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)(8121501046)(5005006)(93006095)(93001095)(3231254)(944501410)(52105095)(10201501046)(3002001)(6055026)(6041310)(20161123562045)(20161123560045)(20161123564045)(20161123558120)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(6072148)(201708071742011);SRVR:CY1PR12MB0309;BCL:0;PCL:0;RULEID:;SRVR:CY1PR12MB0309; X-Forefront-PRVS: 0658BAF71F X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10009020)(6049001)(366004)(346002)(396003)(376002)(39860400002)(39380400002)(189003)(199004)(52116002)(478600001)(6246003)(23676004)(39060400002)(86362001)(52146003)(2906002)(72206003)(305945005)(2486003)(7416002)(5660300001)(76176011)(65826007)(7736002)(97736004)(3846002)(6116002)(67846002)(47776003)(66066001)(65806001)(230700001)(65956001)(36756003)(8936002)(31696002)(81166006)(8676002)(81156014)(4326008)(25786009)(105586002)(106356001)(31686004)(53546011)(956004)(11346002)(446003)(53936002)(186003)(16526019)(486006)(476003)(386003)(229853002)(26005)(316002)(54906003)(16576012)(58126008)(77096007)(6916009)(68736007)(6666003)(6486002)(64126003)(2616005)(50466002);DIR:OUT;SFP:1101;SCL:1;SRVR:CY1PR12MB0309;H:[10.129.12.246];FPR:;SPF:None;PTR:InfoNoRecords;MX:1;A:1;LANG:; Received-SPF: None (protection.outlook.com: amd.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?utf-8?B?MTtDWTFQUjEyTUIwMzA5OzIzOmdoWGx3Y2NMOWRjLzhTTkxXV3J0NExTcEZo?= =?utf-8?B?SzdNV0RGSkM5MksydVFMZk00YVRZdXZGR08zREF6MkxRVGRzRDY2YWZNT2tK?= =?utf-8?B?UHlpRmJ2RkxoT0pXVFFkbzkxQmkrVUl1TkpzYjJEOEhmb2JyMjBTVXlNQXB5?= =?utf-8?B?RGRVU3pnbFc2WkNEamFqVVR2clNsSE9TM1hGV0tnTWZxTXh3SUVORFY5ODRM?= =?utf-8?B?SGRwcG00azd1VUNUdWpWQ0FtVkpFM3BUZDBubmM4SDlUdEdCTnpYSXN3R1Zs?= =?utf-8?B?cU83SkxjOWxpWkpDcU9aN3h2cHV0YkZ3N1pBeUlucEdpcWFjOUI0b0lLeFUx?= =?utf-8?B?Q1lmNExxT1lqbnQrUmVuQXdaL1Zjbks2MUM2bkRyUElLL1ZlMjdtZktBeCtt?= =?utf-8?B?NitsWHdjVHN3QytSVnRoT0MxeXVzTjFWeEZ6OURXcnJTUUp3UE9Wd2NxS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0wltnG5xf2 X-Microsoft-Exchange-Diagnostics: 1;CY1PR12MB0309;6:/VifNml47sSy5Um+08FOB0xKimcUHjBKeNeEpCjv/oz96tLscZmpqo3j7XOBVagsAJPJAUPY1Vh2o92HTXx18NRseRluvxLGMNnXrrOCgDufueRhkeYLOVyvgnGl4s3Ro07Az3gr8ShnqVryU2D0btc1IQlsOES80RPK83fXcCcBYxgh6H9oMicQzz5rJBRrQcfQLztJe72IOKscBGwZ3JxF8UN24woqJ/uWwe7To7Bp+OcJVmyMJyYD0fxBG7hq7EmVc7XKSNx6RH5vcDnhn9NAiTnKg43G+bQqsjb817VEJOZBVJBJ5KIZZGFtLbmh4ZU/G9tqHa4RY+U/LHeu5lw5rexXNhgGV+Xbyw+PpkMav30hFmed+AI7817sdw68VZK9BjFRfm+BAwxItDsKRTk65pgwnIrpVurE/i2DxePJS+gylOtiOmtUmXRlryz8B8tTY99hwsZa44TkkeDcIg==;5:swZmEjpBtkHURyODpjG5IS8LsTjLnYAftEswRGZBZFGBo2uE8jm0BnsSzgrG0VzjlCv6Vgqx96flN0+kvElUKIIgY3LnIE6aaTA0yMJ+yBn/5ceHK/NQsUhl90R6SWBWL5NACTSJVYZK9kEFQv2W9/rCOgWpo69LdXEbBfEptLc=;24:W60oC73XzHRm7DaN2lpE8Tmm6lJIuQ5BPzptkxK/vethFAN4rmvV/gUep5xLjZxxkX3ODTzoV7YNM90Rih+o1hc/MMqBf/aCZ8ZUtM0rYik= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1;CY1PR12MB0309;7:lU5FRS/P+mrAF5yOXhEFpRlIY1TT447d8D/5fXXKEbCuSoFJKoLfM0um1a3ZTc2g1K5pV1jLG7prDzIs/lQEdh2Ui2+N/pP6JfHzw+rwYTIDguHKt/cO20KmGpn2oY2zUHmVXtB9KwttVxtbzYTQAy+zBXKjsDqQjyT55kd1KVj23kA8OwZxndL+svU9pvvfhYMSi6G0JS2FcGp1nUwDrqN8fupsp68sGKaQZxw3sdU5UzYEbxEj0NOLqr/lZlyc;20:FvT909R/IOxzjCUECzDkQkPpSVKsDxvQQq4eYMOt989mDtkkwAimOWlET/Nt5xv23kg5KWZf4NF1pySd/jdFKnCKZNqcy6Q88blibHjMlgxhg3z4yvME2TXk1MeofKbq9Yu9A2rDC0M/v1BB8RVX68dfywMe/C+aNEbhVT7rr48X1gb2lEhgYTEK47uzCd4xL540W4hIpOMiRxl6VJbBheGLNpo9y2W7e/oaz+ZxNILOlFLzGp8x71hGTv08hc5M X-MS-Office365-Filtering-Correlation-Id: 1deffb2a-294e-4a94-ef59-08d5ae6b107e X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 30 Apr 2018 07:21:56.8030 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 1deffb2a-294e-4a94-ef59-08d5ae6b107e X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY1PR12MB0309 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:09 AM, Daniel Kurtz wrote: > Hi Vijendar, > > > On Thu, Apr 26, 2018 at 5:14 AM Vijendar Mukunda > wrote: > >> Added byte count register offset variables to audio_substream_data >> structure. Modified dma pointer callback. > >> Signed-off-by: Vijendar Mukunda > > Please fix the small indentation nits, otherwise this one is: > > Reviewed-by: Daniel Kurtz > >> --- >> sound/soc/amd/acp-pcm-dma.c | 36 +++++++++++++++--------------------- >> sound/soc/amd/acp.h | 2 ++ >> 2 files changed, 17 insertions(+), 21 deletions(-) > >> diff --git a/sound/soc/amd/acp-pcm-dma.c b/sound/soc/amd/acp-pcm-dma.c >> index f18ed9a..019f696 100644 >> --- a/sound/soc/amd/acp-pcm-dma.c >> +++ b/sound/soc/amd/acp-pcm-dma.c >> @@ -793,12 +793,18 @@ static int acp_dma_hw_params(struct > snd_pcm_substream *substream, >> rtd->destination = TO_ACP_I2S_1; >> rtd->dma_dscr_idx_1 = PLAYBACK_START_DMA_DESCR_CH12; >> rtd->dma_dscr_idx_2 = PLAYBACK_START_DMA_DESCR_CH13; >> + rtd->byte_cnt_high_reg_offset = >> + mmACP_I2S_TRANSMIT_BYTE_CNT_HIGH; > > Indent relative to line above with 2 tabs. we will fix it and will post fresh patch. > >> + rtd->byte_cnt_low_reg_offset = > mmACP_I2S_TRANSMIT_BYTE_CNT_LOW; >> } else { >> rtd->ch1 = SYSRAM_TO_ACP_CH_NUM; >> rtd->ch2 = ACP_TO_I2S_DMA_CH_NUM; >> rtd->destination = FROM_ACP_I2S_1; >> rtd->dma_dscr_idx_1 = CAPTURE_START_DMA_DESCR_CH14; >> rtd->dma_dscr_idx_2 = CAPTURE_START_DMA_DESCR_CH15; >> + rtd->byte_cnt_high_reg_offset = >> + mmACP_I2S_RECEIVED_BYTE_CNT_HIGH; > > here too. we will fix it and will post fresh patch. > >> + rtd->byte_cnt_low_reg_offset = > mmACP_I2S_RECEIVED_BYTE_CNT_LOW; >> } > >> size = params_buffer_bytes(params); >> @@ -834,26 +840,15 @@ static int acp_dma_hw_free(struct snd_pcm_substream > *substream) >> return snd_pcm_lib_free_pages(substream); >> } > >> -static u64 acp_get_byte_count(void __iomem *acp_mmio, int stream) >> +static u64 acp_get_byte_count(struct audio_substream_data *rtd) >> { >> - union acp_dma_count playback_dma_count; >> - union acp_dma_count capture_dma_count; >> - u64 bytescount = 0; >> + union acp_dma_count byte_count; > >> - if (stream == SNDRV_PCM_STREAM_PLAYBACK) { >> - playback_dma_count.bcount.high = acp_reg_read(acp_mmio, >> - mmACP_I2S_TRANSMIT_BYTE_CNT_HIGH); >> - playback_dma_count.bcount.low = acp_reg_read(acp_mmio, >> - mmACP_I2S_TRANSMIT_BYTE_CNT_LOW); >> - bytescount = playback_dma_count.bytescount; >> - } else { >> - capture_dma_count.bcount.high = acp_reg_read(acp_mmio, >> - mmACP_I2S_RECEIVED_BYTE_CNT_HIGH); >> - capture_dma_count.bcount.low = acp_reg_read(acp_mmio, >> - mmACP_I2S_RECEIVED_BYTE_CNT_LOW); >> - bytescount = capture_dma_count.bytescount; >> - } >> - return bytescount; >> + byte_count.bcount.high = acp_reg_read(rtd->acp_mmio, >> + > rtd->byte_cnt_high_reg_offset); >> + byte_count.bcount.low = acp_reg_read(rtd->acp_mmio, >> + > rtd->byte_cnt_low_reg_offset); >> + return byte_count.bytescount; >> } > >> static snd_pcm_uframes_t acp_dma_pointer(struct snd_pcm_substream > *substream) >> @@ -869,7 +864,7 @@ static snd_pcm_uframes_t acp_dma_pointer(struct > snd_pcm_substream *substream) >> return -EINVAL; > >> buffersize = frames_to_bytes(runtime, runtime->buffer_size); >> - bytescount = acp_get_byte_count(rtd->acp_mmio, substream->stream); >> + bytescount = acp_get_byte_count(rtd); > >> if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) { >> if (bytescount > rtd->i2ssp_renderbytescount) >> @@ -925,8 +920,7 @@ static int acp_dma_trigger(struct snd_pcm_substream > *substream, int cmd) >> case SNDRV_PCM_TRIGGER_START: >> case SNDRV_PCM_TRIGGER_PAUSE_RELEASE: >> case SNDRV_PCM_TRIGGER_RESUME: >> - bytescount = acp_get_byte_count(rtd->acp_mmio, >> - substream->stream); >> + bytescount = acp_get_byte_count(rtd); >> if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) { >> if (rtd->i2ssp_renderbytescount == 0) >> rtd->i2ssp_renderbytescount = bytescount; >> diff --git a/sound/soc/amd/acp.h b/sound/soc/amd/acp.h >> index 5e25428..3b076c6 100644 >> --- a/sound/soc/amd/acp.h >> +++ b/sound/soc/amd/acp.h >> @@ -90,6 +90,8 @@ struct audio_substream_data { >> u16 destination; >> u16 dma_dscr_idx_1; >> u16 dma_dscr_idx_2; >> + u32 byte_cnt_high_reg_offset; >> + u32 byte_cnt_low_reg_offset; >> uint64_t size; >> u64 i2ssp_renderbytescount; >> u64 i2ssp_capturebytescount; >> -- >> 2.7.4