aboutsummaryrefslogtreecommitdiff
path: root/bluetooth/bt_vendor.conf
blob: 1f4a63afd258bfc0a840ef0e0fc0e7126e5e348f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
#######################################################################################
# Common configurations (applies to both V4L2 & non-V4L2)
#######################################################################################

# UART device port where Bluetooth controller is attached (default ttyS1)
UartPort = /dev/brcm_bt_drv
UimUartPort = /dev/ttyHS0

# Target Baudrate to change to if different from 3000000
# This entry is mandatory if using V4L2
UartBaudRate = 3000000

# Firmware patch file location (compile default /vendor/firmware)
FwPatchFilePath = /system/etc/firmware

# uncomment if you want to load a specific version
FwPatchFileName = BCM43xx.hcd

# Firmware patch setttlement delay in millisec
# This entry is mandatory if using V4L2
FwPatchSettlementDelay = 100

# host/bt wake polarity to match with kernel settings
# 0: active low (negative logic)
# 1: active high (positive logic) (default)
LpmWakePolarity = 1

# stack/controller idle timeout in units (300/25ms)
# make sur controller supports 25ms
#LpmIdleTimeout = 2

#**************************************
# SCO I2S/PCM interface
#   0: PCM
#   1: I2S
#**************************************
#ScoInterface = 0

#**************************************
# SCO over PCM
#
# Configuration for SCO over PCM interface, which parameters are represented by array.
# Each PCM parameters' definations are listed as below, in order. Be NOTICED that
# this setting is ONLY VALID as PCM interface is selected/used.
#
#  PCM Frame Type (SCO_PCM_IF_FRAME_TYPE)
#   - 0: Short
#   - 1: Long
#
#  PCM Sync Mode (SCO_PCM_IF_SYNC_MODE)
#   - 0: Slave
#   - 1: Master
#
#  PCM Clock Mode (SCO_PCM_IF_CLOCK_MODE)
#   - 0: Slave
#   - 1: Master
#
#  PCM NBS(Narrow Band Speech) Clock Rate (SCO_PCM_IF_CLOCK_RATE)
#   - 0:  128K
#   - 1:  256K
#   - 2:  512K
#   - 3: 1024K
#   - 4: 2048K
#
#  PCM WBS(Wide Band Speech) Clock Rate (SCO_I2SPCM_IF_CLOCK_RATE4WBS)
#   - 0:  128K
#   - 1:  256K
#   - 2:  512K
#   - 3: 1024K
#   - 4: 2048K
#
# PCM WBS (Wide Band Speech) Sample Rate (SCO_I2SPCM_IF_SAMPLE_RATE)
#
#   - 0: 8K
#   - 1: 16K
#   - 2: 4K
#
#    Carriers do not support 16K voice samples at present,
#    so, setting PCM WBS Sample Rate to 8K (0) for now.
#
#**************************************
#ScoPCMifParams = {0,0,0,4,4,0}

#**************************************
# PCM Format
#
# Configuration for PCM format, which parameters are represented by array.
# Each PCM format parameters' definations/descriptions are listed as below, in order.
#
#  Shift Mode (PCM_DATA_FMT_SHIFT_MODE)
#   - 0: MSB first
#   - 1: LSB first
#
#  Fill Bits (PCM_DATA_FMT_FILL_BITS)
#   - Specifies the value with which to fill unused bits
#     if Fill_Method is set to programmable
#
#  Fill Method (PCM_DATA_FMT_FILL_METHOD)
#   - 0 : 0's
#   - 1 : 1's
#   - 2 : Signed
#   - 3 : Programmable
#
#  Fill Num (PCM_DATA_FMT_FILL_NUM)
#   - Specifies the number of bits to be filled
#
#  Justify Mode (PCM_DATA_FMT_JUSTIFY_MODE)
#   - 0: Left justify (fill data shifted out last)
#   - 1: Right justify (fill data shifted out first)
#
#**************************************
#ScoPCMFmtParams = {0,0,3,0,0}

#######################################################################################

#######################################################################################
# Configurations specific to V4L2 based solution
#######################################################################################

# Setting this to true enables Low Power Mode (LPM) in the shared
# line discipline driver. Set this to fale if the LPM is not
# enabled or if it is handled in the platform
LpmEnable=true

#For hammerhead and grouper LPM is through bluesleep
#LPM for maguro and manta is done by UART driver itself
LpmUseBluesleep=false

#Set to true if bd address was programmed into firmware using OTP
UseControllerBdaddr=false

#Enable debugging (add values below to enable multiple options)
# enable logging in driver for init/release driver      : 1
# enable logging in driver for open                     : 2
# enable logging in driver for close                    : 4
# enable logging in driver for Tx                       : 8
# enable logging in driver for Rx                       : 16
DBG_BT_DRV = 31
DBG_LDISC_DRV = 31
DBG_FM_DRV = 31
#***************************************************************************

#######################################################################################