diff options
| author | YK Jeffrey Chao <jechao@broadcom.com> | 2012-10-17 21:31:07 -0700 |
|---|---|---|
| committer | Matthew Xie <mattx@google.com> | 2012-10-22 23:59:52 -0700 |
| commit | 78e7dccc08db81cc95810dc928d956ecf7199853 (patch) | |
| tree | 50d24b67ee771ac64ca2bb3779586b802e96b34f /src/hardware.c | |
| parent | 41a117f83f745525c5bc3d2b46d0ea7e6a791ee3 (diff) | |
| download | android_hardware_broadcom_libbt-78e7dccc08db81cc95810dc928d956ecf7199853.tar.gz android_hardware_broadcom_libbt-78e7dccc08db81cc95810dc928d956ecf7199853.tar.bz2 android_hardware_broadcom_libbt-78e7dccc08db81cc95810dc928d956ecf7199853.zip | |
Add new user-to-kernel interface for Bluetooth low power mode control (1/2)
The bluesleep kernel module was used in Tegra3 platform to perform Bluetooth
low power wakelock and interrup control. Add new user-to-kernel interface
through proc fs nodes for Bluedroid to feed bluesleep with the HCI_DEV events
which bluesleep was monitoring on.
bug 7347413
Change-Id: I791be1042d5573e5207aa81e3d59fa418134f9fe
Conflicts:
libbt/include/vnd_manta.txt
Diffstat (limited to 'src/hardware.c')
| -rw-r--r-- | src/hardware.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/hardware.c b/src/hardware.c index 397507d..45008ef 100644 --- a/src/hardware.c +++ b/src/hardware.c @@ -1045,10 +1045,12 @@ uint8_t hw_lpm_enable(uint8_t turn_on) if (turn_on) { memcpy(p, &lpm_param, LPM_CMD_PARAM_SIZE); + upio_set(UPIO_LPM_MODE, UPIO_ASSERT, 0); } else { memset(p, 0, LPM_CMD_PARAM_SIZE); + upio_set(UPIO_LPM_MODE, UPIO_DEASSERT, 0); } if ((ret = bt_vendor_cbacks->xmit_cb(HCI_VSC_WRITE_SLEEP_MODE, p_buf, \ |
