OSDN Git Service
(root)
/
android-x86
/
device-generic-common.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
23c6a4f
)
Use btattach for BT bcm UART devices
author
meijjaa
<jjmeijer88@gmail.com>
Mon, 22 Feb 2016 18:57:48 +0000
(19:57 +0100)
committer
Chih-Wei Huang
<cwhuang@linux.org.tw>
Thu, 5 May 2016 18:17:13 +0000
(
02:17
+0800)
init.sh
patch
|
blob
|
history
diff --git
a/init.sh
b/init.sh
index
7fa0f72
..
f0373c0
100644
(file)
--- a/
init.sh
+++ b/
init.sh
@@
-42,11
+42,8
@@
function init_hal_bluetooth()
done
case "$PRODUCT" in
done
case "$PRODUCT" in
- T10*TA)
- modprobe ak8975
- modprobe hci-uart
+ T10*TA|HP*Omni*)
BTUART_PORT=/dev/ttyS1
BTUART_PORT=/dev/ttyS1
- brcm_patchram_plus -d --no2bytes --enable_hci --patchram /system/lib/firmware/brcm/bcm43241b4.hcd $BTUART_PORT
;;
MacBookPro8*)
rmmod b43
;;
MacBookPro8*)
rmmod b43
@@
-64,6
+61,7
@@
function init_hal_bluetooth()
if [ -n "$BTUART_PORT" ]; then
set_property hal.bluetooth.uart $BTUART_PORT
chown bluetooth.bluetooth $BTUART_PORT
if [ -n "$BTUART_PORT" ]; then
set_property hal.bluetooth.uart $BTUART_PORT
chown bluetooth.bluetooth $BTUART_PORT
+ btattach -P bcm -B $BTUART_PORT &
log -t hciconfig -p i "`hciconfig`"
fi
}
log -t hciconfig -p i "`hciconfig`"
fi
}