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 <ndighe@nvidia.com>
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 <hariharans@nvidia.com>
Reviewed-by: Nitin Pai <npai@nvidia.com>
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
This commit is contained in:
Niranjan Dighe
2019-05-03 13:59:14 +05:30
committed by Sameer Pujar
parent 9313373d8f
commit 91b569eecb

View File

@@ -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)