OSDN Git Service
(root)
/
android-x86
/
system-bluetooth.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0df9131
)
Delay 200 ms after powering up the BT chip..
author
Jaikumar Ganesh
<jaikumar@google.com>
Fri, 10 Sep 2010 16:54:26 +0000
(09:54 -0700)
committer
Jaikumar Ganesh
<jaikumar@google.com>
Fri, 10 Sep 2010 16:56:24 +0000
(09:56 -0700)
The reset pin requires this time to stabilize.
Patch contributed by:HYUNG SEOUNG YOO <hyungseoung.yoo@samsung.com>
Change-Id: I452c6188696e3598ba22b58a8f4144dad50b7e07
bluedroid/bluetooth.c
patch
|
blob
|
history
diff --git
a/bluedroid/bluetooth.c
b/bluedroid/bluetooth.c
index
b953082
..
2384ae4
100644
(file)
--- a/
bluedroid/bluetooth.c
+++ b/
bluedroid/bluetooth.c
@@
-155,6
+155,9
@@
int bt_enable() {
if (set_bluetooth_power(1) < 0) goto out;
+ // Wait for some time so that BT chip stabilizes
+ usleep(200000); // 200 ms delay
+
LOGI("Starting hciattach daemon");
if (property_set("ctl.start", "hciattach") < 0) {
LOGE("Failed to start hciattach");