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 <bbiswas@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/linux-5.10/+/2503928
Reviewed-by: svcacv <svcacv@nvidia.com>
Reviewed-by: Sameer Pujar <spujar@nvidia.com>
Reviewed-by: Manish Bhardwaj <mbhardwaj@nvidia.com>
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
GVS: Gerrit_Virtual_Submit
This commit is contained in:
Bitan Biswas
2021-03-23 06:05:28 -07:00
committed by Sameer Pujar
parent d4d56e2908
commit c69eaecfd0

View File

@@ -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 <soc/tegra/fuse.h>
#include <linux/interconnect.h>
#ifdef CONFIG_ARCH_TEGRA_23x_SOC
#include <dt-bindings/interconnect/tegra_icc_id.h>
#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));