diff options
| -rw-r--r-- | include/bt_vendor_brcm.h | 4 | ||||
| -rw-r--r-- | include/vnd_flounder64.txt | 10 | ||||
| -rw-r--r-- | src/upio.c | 11 |
3 files changed, 22 insertions, 3 deletions
diff --git a/include/bt_vendor_brcm.h b/include/bt_vendor_brcm.h index 8f336bd..0440d9f 100644 --- a/include/bt_vendor_brcm.h +++ b/include/bt_vendor_brcm.h @@ -210,6 +210,10 @@ #define BT_WAKE_VIA_PROC FALSE #endif +#ifndef BT_WAKE_VIA_PROC_NOTIFY_DEASSERT +#define BT_WAKE_VIA_PROC_NOTIFY_DEASSERT FALSE +#endif + /* SCO_CFG_INCLUDED Do SCO configuration by default. If the firmware patch had been embedded diff --git a/include/vnd_flounder64.txt b/include/vnd_flounder64.txt new file mode 100644 index 0000000..a366b9c --- /dev/null +++ b/include/vnd_flounder64.txt @@ -0,0 +1,10 @@ +VENDOR_BTWRITE_PROC_NODE = "/proc/bluetooth/sleep/lpm" +LPM_IDLE_TIMEOUT_MULTIPLE = 5 +SCO_USE_I2S_INTERFACE = FALSE +SCO_PCM_IF_CLOCK_RATE = 3 +BTVND_DBG = FALSE +BTHW_DBG = TRUE +VNDUSERIAL_DBG = FALSE +BT_WAKE_VIA_PROC_NOTIFY_DEASSERT = TRUE +BT_WAKE_VIA_PROC = TRUE +UPIO_DBG = FALSE @@ -434,9 +434,10 @@ void upio_set(uint8_t pio, uint8_t action, uint8_t polarity) /* * Kick proc btwrite node only at UPIO_ASSERT */ +#if (BT_WAKE_VIA_PROC_NOTIFY_DEASSERT == FALSE) if (action == UPIO_DEASSERT) return; - +#endif fd = open(VENDOR_BTWRITE_PROC_NODE, O_WRONLY); if (fd < 0) @@ -445,8 +446,12 @@ void upio_set(uint8_t pio, uint8_t action, uint8_t polarity) VENDOR_BTWRITE_PROC_NODE, strerror(errno), errno); return; } - - buffer = '1'; +#if (BT_WAKE_VIA_PROC_NOTIFY_DEASSERT == TRUE) + if (action == UPIO_DEASSERT) + buffer = '0'; + else +#endif + buffer = '1'; if (write(fd, &buffer, 1) < 0) { |
