diff options
| author | Devin Kim <dojip.kim@lge.com> | 2014-08-25 23:55:11 +0000 |
|---|---|---|
| committer | Android Git Automerger <android-git-automerger@android.com> | 2014-08-25 23:55:11 +0000 |
| commit | 3c6fa1114f34347d27b6b46dec1f3940bd50ed11 (patch) | |
| tree | aeafe9a630e02b28b12aa7e3af94b88962e87f8b | |
| parent | f425be011d13aeacd1a68729de99c442e4c293b5 (diff) | |
| parent | 822e4da8a67b777df7fa40b00aba434cb94ff601 (diff) | |
| download | android_hardware_broadcom_libbt-3c6fa1114f34347d27b6b46dec1f3940bd50ed11.tar.gz android_hardware_broadcom_libbt-3c6fa1114f34347d27b6b46dec1f3940bd50ed11.tar.bz2 android_hardware_broadcom_libbt-3c6fa1114f34347d27b6b46dec1f3940bd50ed11.zip | |
am 822e4da8: Do not set timer if PROC_BTWRITE_TIMER_TIMEOUT_MS == 0
* commit '822e4da8a67b777df7fa40b00aba434cb94ff601':
Do not set timer if PROC_BTWRITE_TIMER_TIMEOUT_MS == 0
| -rw-r--r-- | src/upio.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -372,6 +372,7 @@ void upio_set(uint8_t pio, uint8_t action, uint8_t polarity) ALOGE("upio_set : write(%s) failed: %s (%d)", VENDOR_LPM_PROC_NODE, strerror(errno),errno); } +#if (PROC_BTWRITE_TIMER_TIMEOUT_MS != 0) else { if (action == UPIO_ASSERT) @@ -395,6 +396,7 @@ void upio_set(uint8_t pio, uint8_t action, uint8_t polarity) } } } +#endif if (fd >= 0) close(fd); @@ -453,6 +455,7 @@ void upio_set(uint8_t pio, uint8_t action, uint8_t polarity) ALOGE("upio_set : write(%s) failed: %s (%d)", VENDOR_BTWRITE_PROC_NODE, strerror(errno),errno); } +#if (PROC_BTWRITE_TIMER_TIMEOUT_MS != 0) else { lpm_proc_cb.btwrite_active = TRUE; @@ -469,6 +472,7 @@ void upio_set(uint8_t pio, uint8_t action, uint8_t polarity) timer_settime(lpm_proc_cb.timer_id, 0, &ts, 0); } } +#endif UPIODBG("proc btwrite assertion"); |
