From patchwork Thu Apr 26 11:15:47 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Mukunda,Vijendar" X-Patchwork-Id: 10365619 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 6B7E060542 for ; Thu, 26 Apr 2018 11:22:23 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 5CC0629077 for ; Thu, 26 Apr 2018 11:22:23 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 518AE2905B; Thu, 26 Apr 2018 11:22:23 +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 3728028FE5 for ; Thu, 26 Apr 2018 11:22:22 +0000 (UTC) Received: from alsa0.perex.cz (localhost [127.0.0.1]) by alsa0.perex.cz (Postfix) with ESMTP id A65772676AB; Thu, 26 Apr 2018 13:13:36 +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 7878226772B; Thu, 26 Apr 2018 13:13:34 +0200 (CEST) Received: from NAM01-BN3-obe.outbound.protection.outlook.com (mail-bn3nam01on0048.outbound.protection.outlook.com [104.47.33.48]) by alsa0.perex.cz (Postfix) with ESMTP id 0400126722C for ; Thu, 26 Apr 2018 13:13:30 +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=FH7QM35Cy8Y6jRrVHjxnotC780gaXkHBD9qMGmxYxok=; b=rJQ9PZ8LvGLL99Nu/g9RgEHG/Hu2kbmRwUIuet9P0dhTn6j5ziv7IH0d6+XEEJCzloxRB6ZftD0vum1bzytUucl3keITbuY9QP4sHohbWm/d+z4Eqj5mvwWJrgrzlW/TlaUeyLvGkzik+ImMW9qTbvWLYggNN+soia9gASr1WH8= Received: from SN1PR12CA0105.namprd12.prod.outlook.com (2603:10b6:802:21::40) by CY1PR12MB0759.namprd12.prod.outlook.com (2a01:111:e400:59d1::29) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.696.14; Thu, 26 Apr 2018 11:13:28 +0000 Received: from CO1NAM03FT052.eop-NAM03.prod.protection.outlook.com (2a01:111:f400:7e48::205) by SN1PR12CA0105.outlook.office365.com (2603:10b6:802:21::40) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.715.18 via Frontend Transport; Thu, 26 Apr 2018 11:13:28 +0000 Authentication-Results: spf=none (sender IP is 165.204.84.17) smtp.mailfrom=amd.com; roeck-us.net; dkim=none (message not signed) header.d=none; roeck-us.net; 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 CO1NAM03FT052.mail.protection.outlook.com (10.152.81.213) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.20.696.11 via Frontend Transport; Thu, 26 Apr 2018 11:13:27 +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; Thu, 26 Apr 2018 06:13:21 -0500 From: Vijendar Mukunda To: Date: Thu, 26 Apr 2018 16:45:47 +0530 Message-ID: <1524741374-13523-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)(376002)(39860400002)(396003)(346002)(39380400002)(2980300002)(428003)(189003)(199004)(8936002)(106466001)(105586002)(86362001)(97736004)(53416004)(6666003)(68736007)(47776003)(5660300001)(50226002)(81166006)(8676002)(50466002)(81156014)(48376002)(426003)(486006)(476003)(126002)(36756003)(2616005)(1671002)(305945005)(336012)(72206003)(26005)(478600001)(77096007)(186003)(39060400002)(109986005)(4326008)(51416003)(53936002)(7696005)(59450400001)(104016004)(54906003)(316002)(2906002)(16586007)(356003)(266003); DIR:OUT; SFP:1101; SCL:1; SRVR:CY1PR12MB0759; H:SATLEXCHOV01.amd.com; FPR:; SPF:None; LANG:en; PTR:InfoDomainNonexistent; MX:1; A:1; X-Microsoft-Exchange-Diagnostics: 1; CO1NAM03FT052; 1:n3Ax6IFBnYiGyQGltlpOMNZa3c+mQmNmOFyeRFrnJ1Sb1+4QsnO2xfaKlNjQTJ3KhCq1MpypdhSDMCJbfj4X3EcCsfMbCZLUw1fhopLxsI/iI6ypnmNfXWXSRTHaDWv4 X-MS-PublicTrafficType: Email X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(5600026)(4534165)(4627221)(201703031133081)(201702281549075)(2017052603328)(7153060); SRVR:CY1PR12MB0759; X-Microsoft-Exchange-Diagnostics: 1; CY1PR12MB0759; 3:6CKy62/Kw+yvem9I1GLh6Ue09me/wz81Mrfin6uQPkaWngkbuvix8+4lcWzBcAcarKlHwrzau77j6loj8B+mPsANW4vR/hqp2y963+9qH6i3jIh7HHnB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1GbfULnPWS/OJbqN6wyMPwGbpmjuRFTH7XbZNp9siiHA4H4oYJAf6LgcQ+CVrb6ozAgtRdVXwwDNg320MA8oZKBJmIz9gGPVuJoo1/u84vE8SzI5OytbsKwWx1P6ciozTeCrdQEqxQ+zeJl0h8VpdgFS2fVSbFiYuDlHFjF2Az78c++/GMNTcKFFsHAwJ6JCHFIWPhGIceAOCBQJfH2e3WhZ/i3XMp1Th0KMrI9D3Wq70fnBdvcUAq6U4TT8CeF50V0Lk3DwEafbU08LZkixedY/4igwRHkpFu3O5m4o20TmghchbO1gY3duNP0zlILEp96iwqUez8+eaZ5zDeBLiV/ZtX2rqwCRqOVPXQu 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)(93003095)(3002001)(3231232)(944501410)(52105095)(10201501046)(6055026)(6041310)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123560045)(20161123562045)(20161123564045)(20161123558120)(6072148)(201708071742011); SRVR:CY1PR12MB0759; BCL:0; PCL:0; RULEID:; SRVR:CY1PR12MB0759; X-Microsoft-Exchange-Diagnostics: 1; CY1PR12MB0759; 4:cvuWIuJA+PwQUm/zpa+UABLpe6KPpagBF+OxQqJSdJD3BE5sU5Zh0jIAC4wb1h8Deu7eetfOMqgp6PA+kNxCFT78A7k1hVDQCtAisCXCJlpEGsK1VmE/8+KPrhAxfNkzspiFxP6ueYPmciu8JA03s2Bhd4pmbY4jN2Up/QUvyEZeCSy6/JdUR2nFYPQZLwHmdzLRBayB5dAaTrWUqMtw6/e49TPFu7sxmgzggV2814HVDTp/mhdK+a5k9OC+BbHWxiDR6YUumhJn6B54z7sMnMXC43wXEaMeeMRHMckG3QIOrvr+WgqoaR0KrhiuznYV X-Forefront-PRVS: 0654257CF5 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; CY1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PEGcKtf8xiL8WoKfdcJThE+CmFCKWZiFJ6ecJmDcT0J+d1lR9sprn0j5n/N6CO/dJXFy7CNP2O0wAaVQ==; 5:kCNepQ21WKB/8qvgaP1WawVKwmjzwABj67XRq18kaKQUB/GvLyHkyjatnl2skQ4mrNOr9JyI+B9M6lJM9cTvYdPKspy6U82pcmuXrbwf4StwEhuinp1uSr655EbhJyTllUMigfcBv+g6BlIldK13eOKggXS0NnZUxXA0np80ugs=; 24:lI1fcmDn0fqttbivd0/29GD4meRMGo6qeSJxFPWX3Ri+lwg4YXbM38oyqf4eEQea+hcSj8QxgzNJ8L+CTBkHTBavZR2/W9jl30Km8aLn5rE= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; CY1PR12MB0759; 7:2NgVJpVaO6fgK/79FIQdBqBVq0Xrlrr6xBSTruCuwJohGdqdOHdVAFGrenlH30PwTNZ2KN9pdybkyzCmqqbV38jkAwsaf/UwwNke0UQKocTg+a/2PVEx8AkHK7TzcKkA6UYbDZWGxMu0w/c0zfx06wQRNHgBL26uivhCv9OHkMg1xbePJxUwYFHUatTbISgaQ/sFasPflsYGNJt1dop1iKttNMy7KuavV/EoLAJqW15RmaIaY0sZVWWEgi1Syido; 20:Suuilt/fIeqcPiHhR+vm9ux7Vg+KzggUgx/R02PF8v62mOjWjsPdwQ67UJgSrYV3y/nYf6Jmxvozk5I1k/crF7ii7kwC+b7L0jBOBGvAzfMra1UG2X4bMXpjfNadH98vZRzkHxESzK3DZAuJJJaGMDVEaE1exeUkXUuboeNaMmySyu7CoPAwOYGpngu15+btLmcj7GI7HP0t7tJnBlp4YVDPDlTPGDk2Zn584STvp4i6UwA7KJPaysUpJGki7qNm X-MS-Office365-Filtering-Correlation-Id: 47d16960-c8b1-4ab5-87ae-08d5ab66bc4c X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 26 Apr 2018 11:13:27.3970 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 47d16960-c8b1-4ab5-87ae-08d5ab66bc4c 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: CY1PR12MB0759 Cc: "moderated list:SOUND - SOC LAYER / DYNAMIC AUDIO POWER MANAGEM..." , Liam Girdwood , open list , Takashi Iwai , Jason Clinton , Mark Brown , Vijendar Mukunda , Alex Deucher , Akshu Agrawal , Guenter Roeck Subject: [alsa-devel] [PATCH 01/11] ASoC: amd: rename audio_substream_data variable 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 In order to make audio_substream_data structure variable consistent throughout the code, changed the name from audio_config to rtd wherever applicable. Signed-off-by: Vijendar Mukunda --- sound/soc/amd/acp-pcm-dma.c | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/sound/soc/amd/acp-pcm-dma.c b/sound/soc/amd/acp-pcm-dma.c index 5ffe2ef..9c026c4 100644 --- a/sound/soc/amd/acp-pcm-dma.c +++ b/sound/soc/amd/acp-pcm-dma.c @@ -317,13 +317,13 @@ static void acp_pte_config(void __iomem *acp_mmio, struct page *pg, } static void config_acp_dma(void __iomem *acp_mmio, - struct audio_substream_data *audio_config, + struct audio_substream_data *rtd, u32 asic_type) { u32 pte_offset, sram_bank; u16 ch1, ch2, destination, dma_dscr_idx; - if (audio_config->direction == SNDRV_PCM_STREAM_PLAYBACK) { + if (rtd->direction == SNDRV_PCM_STREAM_PLAYBACK) { pte_offset = ACP_PLAYBACK_PTE_OFFSET; ch1 = SYSRAM_TO_ACP_CH_NUM; ch2 = ACP_TO_I2S_DMA_CH_NUM; @@ -344,25 +344,25 @@ static void config_acp_dma(void __iomem *acp_mmio, destination = FROM_ACP_I2S_1; } - acp_pte_config(acp_mmio, audio_config->pg, audio_config->num_of_pages, + acp_pte_config(acp_mmio, rtd->pg, rtd->num_of_pages, pte_offset); - if (audio_config->direction == SNDRV_PCM_STREAM_PLAYBACK) + if (rtd->direction == SNDRV_PCM_STREAM_PLAYBACK) dma_dscr_idx = PLAYBACK_START_DMA_DESCR_CH12; else dma_dscr_idx = CAPTURE_START_DMA_DESCR_CH14; /* Configure System memory <-> ACP SRAM DMA descriptors */ - set_acp_sysmem_dma_descriptors(acp_mmio, audio_config->size, - audio_config->direction, pte_offset, ch1, + set_acp_sysmem_dma_descriptors(acp_mmio, rtd->size, + rtd->direction, pte_offset, ch1, sram_bank, dma_dscr_idx, asic_type); - if (audio_config->direction == SNDRV_PCM_STREAM_PLAYBACK) + if (rtd->direction == SNDRV_PCM_STREAM_PLAYBACK) dma_dscr_idx = PLAYBACK_START_DMA_DESCR_CH13; else dma_dscr_idx = CAPTURE_START_DMA_DESCR_CH15; /* Configure ACP SRAM <-> I2S DMA descriptors */ - set_acp_to_i2s_dma_descriptors(acp_mmio, audio_config->size, - audio_config->direction, sram_bank, + set_acp_to_i2s_dma_descriptors(acp_mmio, rtd->size, + rtd->direction, sram_bank, destination, ch2, dma_dscr_idx, asic_type); }