commit | 68fe7783a87fae107c8ab644ae9e482adb725f4b | [log] [tgz] |
---|---|---|
author | jb.qi <jb.qi@mobiletek.cn> | Mon Sep 18 20:40:58 2023 -0700 |
committer | jb.qi <jb.qi@mobiletek.cn> | Mon Sep 18 20:40:58 2023 -0700 |
tree | 219baf66893fab969d9afef386496ce39e26062d | |
parent | 0dccf2cb8841ef1b62ad4912ca6f66a6d4da2510 [diff] [blame] |
[Bugfix][T106BUG-224]acquire_wake_lock return is 0 Only Configure: No Affected branch: master Affected module: autosuspend Is it affected on both ZXIC and MTK: only ZXIC Self-test: Yes Doc Update: No Change-Id: Ied02e15d7bbb6ac25d232a451c539e0883828f2f
diff --git a/cap/zx297520v3/src/lynq/lib/liblynq-qser-autosuspend/lynq-qser-autosuspend.cpp b/cap/zx297520v3/src/lynq/lib/liblynq-qser-autosuspend/lynq-qser-autosuspend.cpp index 3ff2634..2a5ff52 100755 --- a/cap/zx297520v3/src/lynq/lib/liblynq-qser-autosuspend/lynq-qser-autosuspend.cpp +++ b/cap/zx297520v3/src/lynq/lib/liblynq-qser-autosuspend/lynq-qser-autosuspend.cpp
@@ -301,6 +301,14 @@ } ret = read_lock_table(); ret = acquire_wake_lock( 0, lock_status.lock_name[fd]); + if(ret > 0) + { + ret = 0; + } + else + { + ret = -1; + } return ret; } @@ -318,6 +326,14 @@ return -1; } ret = release_wake_lock(lock_status.lock_name[fd]); + if(ret > 0) + { + ret = 0; + } + else + { + ret = -1; + } return ret; }