From 78e7dccc08db81cc95810dc928d956ecf7199853 Mon Sep 17 00:00:00 2001 From: YK Jeffrey Chao Date: Wed, 17 Oct 2012 21:31:07 -0700 Subject: 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 --- src/hardware.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/hardware.c') 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, \ -- cgit v1.2.3