commit | 8284636fecaf9d679646416988762ce4b3ca685b | [log] [tgz] |
---|---|---|
author | Carter Hsu <carterhsu@google.com> | Fri Jul 13 10:41:29 2018 +0800 |
committer | Carter Hsu <carterhsu@google.com> | Fri Jul 13 06:46:10 2018 +0000 |
tree | 68c4457480d66e690099287a6afa87a862f68210 | |
parent | c0a06f34c88cf9dc017be6178113b35c3c7fc67e [diff] |
audio: add wakelock capability for audiohalservice 1. wake_lock group 2. BLOCK_SUSPEND capability int pm_wake_lock(const char *buf) { const char *str = buf; struct wakelock *wl; u64 timeout_ns = 0; size_t len; int ret = 0; if (!capable(CAP_BLOCK_SUSPEND)) return -EPERM; Bug: 111018819 Test: manual Change-Id: I1283e4b1ab2b95e4e94df045240001485593f1ab Signed-off-by: Carter Hsu <carterhsu@google.com>