mods: Suspend adsp instead of stopping

Bug 200381062

Change-Id: I36d7eba4159209606adf89fdf41615e39ff87d5c
Signed-off-by: Ajay Nandakumar <anandakumarm@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/1645024
Reviewed-by: Sachin Nikam <snikam@nvidia.com>
Tested-by: Sachin Nikam <snikam@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: svc-mobile-coverity <svc-mobile-coverity@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
This commit is contained in:
Ajay Nandakumar
2018-01-24 10:51:53 +05:30
committed by Laxman Dewangan
parent 5014bffa1f
commit e2187c16d6

View File

@@ -1,7 +1,7 @@
/*
* mods_adsp.c - This file is part of NVIDIA MODS kernel driver.
*
* Copyright (c) 2014-2017, NVIDIA CORPORATION. All rights reserved.
* Copyright (c) 2014-2018, NVIDIA CORPORATION. All rights reserved.
*
* NVIDIA MODS kernel driver is free software: you can redistribute it and/or
* modify it under the terms of the GNU General Public License,
@@ -33,8 +33,7 @@ int esc_mods_adsp_start(struct file *pfile)
int esc_mods_adsp_stop(struct file *pfile)
{
nvadsp_os_stop();
return OK;
return nvadsp_os_suspend();
}
int esc_mods_adsp_run_app(struct file *pfile, struct MODS_ADSP_RUN_APP_INFO *p)