Received: by 10.192.165.148 with SMTP id m20csp2197307imm; Thu, 26 Apr 2018 07:20:39 -0700 (PDT) X-Google-Smtp-Source: AIpwx486HztKT2OdWl2ZnD9vLhUZLGq7oKkMmMSpy3GACaMA6avATIX28lAJEXs2xb4IyebLWBBG X-Received: by 2002:a17:902:aa90:: with SMTP id d16-v6mr34142719plr.189.1524752439015; Thu, 26 Apr 2018 07:20:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524752438; cv=none; d=google.com; s=arc-20160816; b=PAiJjQU0iA6TR30SB/Yncg/AqyGnsQfgFw9ltP3yX0digQ3bJXWaZjdRHZFRGbq8LW 6wykaelwHFZ/UMSnGdJ33PX7WH0n7JlILYfQR/saGh2gX5NfZlGIxRR/dWJvw5YX2cIZ IqWEkemdzkvi6IWPka4KUAKW5729zHpz8oVd1jvuhfRtvhaxHVpZyGzKoTT4eaqGcc9B mmI7RLSo3RP9aQOuOKLPC9i4AKylbY8EHp6UOTN8jA/IFZapaJUau7qJ9DAiYICQRs1a t4Dl4fggtapZTbKMNYjVzF/Q+OOtYoyoOus1yUURbswlPT2S4GVDOp7wJX8qwy5qi1hc mJZQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:date:message-id:in-reply-to:subject:cc:to :from:dkim-signature:arc-authentication-results; bh=kzDv6mJx8FrW64XV471GRZW7Y/BeaAPOJc8E6MO3beM=; b=zP9jTjE428SCK9Nap3NyFRD3sFYnh3CDXaT5X/ZvSt64REp0DEwJvd8w8K1xxLJerc CPPZoY9MYt+4lRo5qTsd2rocvUxUiHeu0paVksLO7Xa7hAxSm+9AhjRqxC7xxzkcVfVN /c3HLSJKWSqOlkF7J/ZttwBGh05aK96cLHFJJXam+nCS3V0RMe332oRTzGRRyDfGTRCA BBEf2R3NsVwpqBg67N6QLxhMweVV8OQXAGN5yiN7rDIa6JwXV4/kVHiUun1/bOs/FL/Q M7pYC7BSpA84dOo+abQogWbzwZOsdvq6ome+wzEENHfw2wFdRuNV7ztP5xQEdw9GTv6w f0oA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@sirena.org.uk header.s=20170815-heliosphere header.b=VYjvrV8u; 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 w6-v6si15526012pll.50.2018.04.26.07.20.24; Thu, 26 Apr 2018 07:20:38 -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=fail header.i=@sirena.org.uk header.s=20170815-heliosphere header.b=VYjvrV8u; 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 S1756262AbeDZOTO (ORCPT + 99 others); Thu, 26 Apr 2018 10:19:14 -0400 Received: from heliosphere.sirena.org.uk ([172.104.155.198]:40572 "EHLO heliosphere.sirena.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754727AbeDZOTN (ORCPT ); Thu, 26 Apr 2018 10:19:13 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sirena.org.uk; s=20170815-heliosphere; h=Date:Message-Id:In-Reply-To: Subject:Cc:To:From:Sender:Reply-To:MIME-Version:Content-Type: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:References: List-Id:List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner: List-Archive; bh=kzDv6mJx8FrW64XV471GRZW7Y/BeaAPOJc8E6MO3beM=; b=VYjvrV8uk67m oIldTQA/2uacCNeLy1uQ8Kz0vxPXM6TF8sfTeOZtRBV7TWSW1p8ea71cBHGZ9kXuvuvhg4YElNHE2 gDMlciALtTccX2pQLojPYUaSFFiafZs+Nwg2ZAgvpHYc01HQdlk2IRoTybN0O88QBaFbIMhcET7mg 47eTY=; Received: from debutante.sirena.org.uk ([2001:470:1f1d:6b5::3] helo=debutante) by heliosphere.sirena.org.uk with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1fBhjm-0005Xv-Vu; Thu, 26 Apr 2018 14:19:07 +0000 Received: from broonie by debutante with local (Exim 4.90_1) (envelope-from ) id 1fBhjm-0003zD-9F; Thu, 26 Apr 2018 15:19:06 +0100 From: Mark Brown To: Mukunda@sirena.org.uk, Vijendar Cc: Vijendar Mukunda , Mark Brown , "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 , alsa-devel@alsa-project.org Subject: Applied "ASoC: amd: rename audio_substream_data variable" to the asoc tree In-Reply-To: <1524741374-13523-1-git-send-email-Vijendar.Mukunda@amd.com> Message-Id: Date: Thu, 26 Apr 2018 15:19:06 +0100 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The patch ASoC: amd: rename audio_substream_data variable has been applied to the asoc tree at https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent to Linus during the next merge window (or sooner if it is a bug fix), however if problems are discovered then the patch may be dropped or reverted. You may get further e-mails resulting from automated or manual testing and review of the tree, please engage with people reporting problems and send followup patches addressing any issues that are reported if needed. If any updates are required or you are submitting further changes they should be sent as incremental updates against current git, existing patches will not be replaced. Please add any relevant lists and maintainers to the CCs when replying to this mail. Thanks, Mark From 8349b7f53da03a46c08cb6c33833df68837b61e0 Mon Sep 17 00:00:00 2001 From: "Mukunda, Vijendar" Date: Thu, 26 Apr 2018 16:45:47 +0530 Subject: [PATCH] ASoC: amd: rename audio_substream_data variable 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 Signed-off-by: Mark Brown --- 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 5ffe2efc6363..9c026c4d26d4 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); } -- 2.17.0