diff options
author | Andre Eisenbach <eisenbach@google.com> | 2017-03-16 19:44:22 +0000 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2017-03-16 19:44:23 +0000 |
commit | 78418e367cc70835238b3127ebca62df65c5d6a0 (patch) | |
tree | 67cf8b76a7d2db2dafea21ce5e921aea4dc0bc36 | |
parent | 68f9ca9d2e15d8f20c5ede0a074f070451e7003a (diff) | |
parent | b31ab240a11a8ce5809d6abeba3c05829a155da2 (diff) | |
download | platform_hardware_broadcom_libbt-78418e367cc70835238b3127ebca62df65c5d6a0.tar.gz platform_hardware_broadcom_libbt-78418e367cc70835238b3127ebca62df65c5d6a0.tar.bz2 platform_hardware_broadcom_libbt-78418e367cc70835238b3127ebca62df65c5d6a0.zip |
Merge "Release wakelock on power-off"
-rw-r--r-- | src/bt_vendor_brcm.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/bt_vendor_brcm.c b/src/bt_vendor_brcm.c index 265132d..01e89a2 100644 --- a/src/bt_vendor_brcm.c +++ b/src/bt_vendor_brcm.c @@ -153,6 +153,9 @@ static int op(bt_vendor_opcode_t opcode, void *param) { ALOGW("NOTE: BT_VND_PWR_ON now forces power-off first"); upio_set_bluetooth_power(UPIO_BT_POWER_ON); + } else { + /* Make sure wakelock is released */ + hw_lpm_set_wake_state(false); } } break; |