From c69eaecfd076a33435eb9e71a3ae452f0304f1f9 Mon Sep 17 00:00:00 2001 From: Bitan Biswas Date: Tue, 23 Mar 2021 06:05:28 -0700 Subject: [PATCH] sound: tegra: isomgr: fix external profile build Fix l4t k5.10 external profile build errors in isomgr bug 200705253 Change-Id: I59fed5a5dbd31d5167a4d995bbc41d21d9e55dea Signed-off-by: Bitan Biswas Reviewed-on: https://git-master.nvidia.com/r/c/linux-5.10/+/2503928 Reviewed-by: svcacv Reviewed-by: Sameer Pujar Reviewed-by: Manish Bhardwaj Reviewed-by: mobile promotions Tested-by: mobile promotions GVS: Gerrit_Virtual_Submit --- sound/soc/tegra/tegra_isomgr_bw.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/sound/soc/tegra/tegra_isomgr_bw.c b/sound/soc/tegra/tegra_isomgr_bw.c index deb63445..c8334e0e 100644 --- a/sound/soc/tegra/tegra_isomgr_bw.c +++ b/sound/soc/tegra/tegra_isomgr_bw.c @@ -1,7 +1,7 @@ /* * tegra_isomgr_bw.c - ADMA bandwidth calculation * - * Copyright (c) 2016-2020 NVIDIA CORPORATION. All rights reserved. + * Copyright (c) 2016-2021 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, @@ -24,7 +24,9 @@ #include "tegra_isomgr_bw.h" #include #include +#ifdef CONFIG_ARCH_TEGRA_23x_SOC #include +#endif #define MAX_BW 393216 /*Maximum KiloByte*/ #define MAX_DEV_NUM 256 @@ -208,8 +210,10 @@ void tegra_isomgr_adma_register(struct device *dev) #endif break; default: +#ifdef CONFIG_ARCH_TEGRA_23x_SOC adma->icc_path_handle = icc_get(dev, TEGRA_ICC_APEDMA, TEGRA_ICC_PRIMARY); +#endif if (IS_ERR(adma->icc_path_handle)) { pr_err("%s: Failed to register Interconnect. err=%ld\n", __func__, PTR_ERR(adma->icc_path_handle));