From 40e0fb39fdcc6c8bd658f9b538348fa77903ffc7 Mon Sep 17 00:00:00 2001 From: meijjaa Date: Mon, 22 Feb 2016 19:57:48 +0100 Subject: [PATCH] Use btattach for BT bcm UART devices --- init.sh | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/init.sh b/init.sh index 7fa0f72..f0373c0 100644 --- 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 } -- 2.11.0