OSDN Git Service

Use btattach for BT bcm UART devices
authormeijjaa <jjmeijer88@gmail.com>
Mon, 22 Feb 2016 18:57:48 +0000 (19:57 +0100)
committerChih-Wei Huang <cwhuang@linux.org.tw>
Thu, 5 May 2016 18:17:13 +0000 (02:17 +0800)
init.sh

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
-               T10*TA)
-                       modprobe ak8975
-                       modprobe hci-uart
+               T10*TA|HP*Omni*)
                        BTUART_PORT=/dev/ttyS1
-                       brcm_patchram_plus -d --no2bytes --enable_hci --patchram /system/lib/firmware/brcm/bcm43241b4.hcd $BTUART_PORT
                        ;;
                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
+               btattach -P bcm -B $BTUART_PORT &
                log -t hciconfig -p i "`hciconfig`"
        fi
 }