From 91b569eecb548dbc318f04e46fb696e684e6eb43 Mon Sep 17 00:00:00 2001 From: Niranjan Dighe Date: Fri, 3 May 2019 13:59:14 +0530 Subject: [PATCH] ASoC: adsp: remove fe to be mapping Find correct ADSP-FE to ADSP-ADMAIF mapping by traversing through the plugins and reading the source reg value instead of looking up from pcm_path array. Bug 2567523 Change-Id: I1177c3d5de7d3f3e5cd26fccb9a973bd252f657a Signed-off-by: Niranjan Dighe Reviewed-on: https://git-master.nvidia.com/r/2109933 (cherry picked from commit 591268f8067da50f0cc66f49b1ebf7f4d65d56fd) Reviewed-on: https://git-master.nvidia.com/r/2125969 Reviewed-by: Automatic_Commit_Validation_User GVS: Gerrit_Virtual_Submit Reviewed-by: Hariharan Sivaraman Reviewed-by: Nitin Pai Reviewed-by: mobile promotions Tested-by: mobile promotions --- sound/soc/tegra-alt/include/tegra210_adsp_alt.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/sound/soc/tegra-alt/include/tegra210_adsp_alt.h b/sound/soc/tegra-alt/include/tegra210_adsp_alt.h index 19e083c4..c9dccf01 100644 --- a/sound/soc/tegra-alt/include/tegra210_adsp_alt.h +++ b/sound/soc/tegra-alt/include/tegra210_adsp_alt.h @@ -1,7 +1,7 @@ /* * tegra210_adsp_alt.h - Tegra210 ADSP header * - * Copyright (c) 2014-2018 NVIDIA CORPORATION. All rights reserved. + * Copyright (c) 2014-2019 NVIDIA CORPORATION. All rights reserved. * * This program is free software; you can redistribute it and/or modify it * under the terms and conditions of the GNU General Public License, @@ -243,3 +243,5 @@ enum tegra210_adsp_virt_regs { (access == SNDRV_PCM_ACCESS_MMAP_NONINTERLEAVED) || \ (access == SNDRV_PCM_ACCESS_MMAP_COMPLEX) #endif + +#define ADSP_BACKEND_TO_ADMAIF(be_reg) (be_reg - ADSP_ADMAIF_START)