From 81cb4f1311718abb1b0880f5479fb975a4b9476b Mon Sep 17 00:00:00 2001 From: Dipesh Gandhi Date: Mon, 16 Sep 2019 15:53:22 +0530 Subject: ASoC: tegra-virt-alt: lpthread init via amixer Change exposes lpthread/adsp usage trigger via amixer. This is needed to make sound card aware of lpthread state. Without this STR adsp feature breaks as currently lpthread is written in such a manner which does not allow adsp to suspend. Bug 200552183 Change-Id: I2cc1e0fd805a982686bbd034b2c6e094b56df23b Signed-off-by: Dipesh Gandhi Reviewed-on: https://git-master.nvidia.com/r/2198693 (cherry picked from commit e9bd14fd6eb0305cc583092752e6bdccc9c5e76a) Reviewed-on: https://git-master.nvidia.com/r/2210547 Reviewed-by: Uday Gupta Reviewed-by: Automatic_Commit_Validation_User GVS: Gerrit_Virtual_Submit Reviewed-by: Nitin Pai Reviewed-by: mobile promotions Tested-by: mobile promotions --- include/linux/tegra_nvadsp.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'include/linux') diff --git a/include/linux/tegra_nvadsp.h b/include/linux/tegra_nvadsp.h index 9778ec6a0..d06ef4e9c 100644 --- a/include/linux/tegra_nvadsp.h +++ b/include/linux/tegra_nvadsp.h @@ -1,7 +1,7 @@ /* * A Header file for managing ADSP/APE * - * 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, @@ -198,7 +198,8 @@ void nvadsp_os_stop(void); int __must_check nvadsp_os_suspend(void); void dump_adsp_sys(void); void nvadsp_get_os_version(char *, int); - +int adsp_usage_set(unsigned int val); +unsigned int adsp_usage_get(void); /* * ADSP TSC */ -- cgit v1.2.2