mirror of
git://nv-tegra.nvidia.com/linux-nv-oot.git
synced 2025-12-22 17:25:35 +03:00
ASoC: tegra-alt: remove redundant variable from dma data
Structure tegra_alt_pcm_dma_params has member 'wrap', which is not used anywhere except for initialization in admaif driver. Hence removed from the dma data structure. Bug 200503387 Change-Id: I8cf9d0eb5f2c05c79a472f9143dfe2e96083b8e3 Signed-off-by: Sameer Pujar <spujar@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/2102677 GVS: Gerrit_Virtual_Submit Reviewed-by: Uday Gupta <udayg@nvidia.com> Reviewed-by: Jonathan Hunter <jonathanh@nvidia.com> Reviewed-by: Ravindra Lokhande <rlokhande@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
* tegra_pcm_alt.h - Definitions for Tegra PCM driver
|
||||
*
|
||||
* Author: Stephen Warren <swarren@nvidia.com>
|
||||
* Copyright (c) 2011-2017 NVIDIA CORPORATION. All rights reserved.
|
||||
* Copyright (c) 2011-2019 NVIDIA CORPORATION. All rights reserved.
|
||||
*
|
||||
* Based on code copyright/by:
|
||||
*
|
||||
@@ -35,7 +35,6 @@
|
||||
|
||||
struct tegra_alt_pcm_dma_params {
|
||||
unsigned long addr;
|
||||
unsigned long wrap;
|
||||
unsigned long width;
|
||||
unsigned long req_sel;
|
||||
const char *chan_name;
|
||||
|
||||
@@ -1261,7 +1261,6 @@ static int tegra_admaif_probe(struct platform_device *pdev)
|
||||
TEGRA_ADMAIF_XBAR_RX_FIFO_READ +
|
||||
(i * TEGRA_ADMAIF_CHANNEL_REG_STRIDE);
|
||||
|
||||
admaif->playback_dma_data[i].wrap = 4;
|
||||
admaif->playback_dma_data[i].width = 32;
|
||||
admaif->playback_dma_data[i].req_sel = i + 1;
|
||||
if (of_property_read_string_index(pdev->dev.of_node,
|
||||
@@ -1283,7 +1282,6 @@ static int tegra_admaif_probe(struct platform_device *pdev)
|
||||
}
|
||||
admaif->playback_dma_data[i].buffer_size = buffer_size;
|
||||
|
||||
admaif->capture_dma_data[i].wrap = 4;
|
||||
admaif->capture_dma_data[i].width = 32;
|
||||
admaif->capture_dma_data[i].req_sel = i + 1;
|
||||
if (of_property_read_string_index(pdev->dev.of_node,
|
||||
|
||||
Reference in New Issue
Block a user