summaryrefslogtreecommitdiffstats
path: root/src/upio.c
diff options
context:
space:
mode:
authorDevin Kim <dojip.kim@lge.com>2014-08-25 23:55:11 +0000
committerAndroid Git Automerger <android-git-automerger@android.com>2014-08-25 23:55:11 +0000
commit3c6fa1114f34347d27b6b46dec1f3940bd50ed11 (patch)
treeaeafe9a630e02b28b12aa7e3af94b88962e87f8b /src/upio.c
parentf425be011d13aeacd1a68729de99c442e4c293b5 (diff)
parent822e4da8a67b777df7fa40b00aba434cb94ff601 (diff)
downloadandroid_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
Diffstat (limited to 'src/upio.c')
-rw-r--r--src/upio.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/upio.c b/src/upio.c
index 360c6d4..9008355 100644
--- a/src/upio.c
+++ b/src/upio.c
@@ -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");