modify BtDeviceNode for rk3328
authorhuangjc <huangjc@rock-chips.com>
Wed, 17 Oct 2018 09:26:47 +0000 (17:26 +0800)
committerhuangjc <huangjc@rock-chips.com>
Wed, 17 Oct 2018 09:26:47 +0000 (17:26 +0800)
Change-Id: Ic92ce8b4328506ad1d19fe1abed2125fe6579935

rtkbt/rtkbt.mk
rtkbt/vendor/etc/bluetooth/rtkbt_S0.conf [new file with mode: 0755]

index b346311642c4c2da710227fc725ada26924006da..620a0f298a2f24e40c8695a3c18fe9a4b2c9b4bf 100755 (executable)
@@ -10,10 +10,16 @@ BOARD_HAVE_BLUETOOTH_RTK_COEX := true
 ifneq ($(filter atv box, $(strip $(TARGET_BOARD_PLATFORM_PRODUCT))), )
 BOARD_BLUETOOTH_BDROID_BUILDCFG_INCLUDE_DIR := $(CUR_PATH)/bluetooth
 endif
+ifneq ($(filter rk3328, $(strip $(TARGET_BOARD_PLATFORM))), )
+PRODUCT_COPY_FILES += \
+        $(CUR_PATH)/vendor/etc/bluetooth/rtkbt_S0.conf:vendor/etc/bluetooth/rtkbt.conf
 
+else
 PRODUCT_COPY_FILES += \
        $(CUR_PATH)/vendor/etc/bluetooth/rtkbt.conf:vendor/etc/bluetooth/rtkbt.conf
 
+endif
+
 ifeq ($(strip $(TARGET_BOARD_PLATFORM_PRODUCT)), tablet)
 BT_FIRMWARE_FILES := $(shell ls $(CUR_PATH)/vendor/firmware)
 PRODUCT_COPY_FILES += \
diff --git a/rtkbt/vendor/etc/bluetooth/rtkbt_S0.conf b/rtkbt/vendor/etc/bluetooth/rtkbt_S0.conf
new file mode 100755 (executable)
index 0000000..87a8241
--- /dev/null
@@ -0,0 +1,38 @@
+# RELEASE NAME: 20180702_BT_ANDROID_9.0
+# Bluetooth Device Name; NULL or comment means "ro.product.model"
+#Name=Realtek Bluetooth
+
+# Device Class
+DevClassServiceClass=0x1A
+DevClassMajorClass=0x01
+DevClassMinorClass=0x1C
+
+#Indicate USB or UART driver bluetooth
+#BtDeviceNode=/dev/rtk_btusb
+BtDeviceNode=?/dev/ttyS0:H5
+
+# Enable BtSnoop logging function
+# valid value : true, false
+RtkBtsnoopDump=false
+
+# BtSnoop log output file
+BtSnoopFileName=/data/misc/bluedroid/btsnoop_hci.cfa
+
+# Preserve existing BtSnoop log before overwriting
+BtSnoopSaveLog=true
+
+#bit0 = 1,don't show heartbeat packet in btsnoop
+RtkbtLogFilter=1
+
+# configuration for uart card to save HCI log for slave
+H5LogOutput=0
+
+# Enable Coex log
+BtCoexLogOutput=0
+
+# Enable net btsnoop Dump
+RtkBtsnoopNetDump=false
+
+
+# Enable auto restart bt
+RtkBtAutoRestart=true