summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVishal Mahaveer2014-11-14 11:51:48 -0600
committerVishal Mahaveer2014-11-14 11:51:48 -0600
commit7a7080371e3ff3a4973d9944d175a637aba3d460 (patch)
treeb73be61b636831c165762ca6ffee888e270b1500
parentd0b1d21809b85a9a17479846c05501ddc212f365 (diff)
downloaddevice-ti-jacinto6evm-7a7080371e3ff3a4973d9944d175a637aba3d460.tar.gz
device-ti-jacinto6evm-7a7080371e3ff3a4973d9944d175a637aba3d460.tar.xz
device-ti-jacinto6evm-7a7080371e3ff3a4973d9944d175a637aba3d460.zip
jacinto6evm: update bluedroid configuration
Update bluedroid device configuration to enable car related Bluetooth profiles. Reference patch taken from device/lge/hammerhead. Change-Id: Idc3a00c98ce5a0f89153ad248d45994ad414ef0d Signed-off-by: Vishal Mahaveer <vishalm@ti.com>
-rw-r--r--audio/legacy/audio_policy.conf8
-rw-r--r--bluetooth/bdroid_buildcfg.h6
-rw-r--r--overlay/packages/apps/Bluetooth/res/values/config.xml20
3 files changed, 34 insertions, 0 deletions
diff --git a/audio/legacy/audio_policy.conf b/audio/legacy/audio_policy.conf
index a806163..a7f0f30 100644
--- a/audio/legacy/audio_policy.conf
+++ b/audio/legacy/audio_policy.conf
@@ -65,6 +65,14 @@ audio_hw_modules {
65 devices AUDIO_DEVICE_OUT_ALL_A2DP 65 devices AUDIO_DEVICE_OUT_ALL_A2DP
66 } 66 }
67 } 67 }
68 inputs {
69 a2dp {
70 sampling_rates 44100|48000
71 channel_masks AUDIO_CHANNEL_IN_MONO|AUDIO_CHANNEL_IN_STEREO
72 formats AUDIO_FORMAT_PCM_16_BIT
73 devices AUDIO_DEVICE_IN_BLUETOOTH_A2DP
74 }
75 }
68 } 76 }
69 r_submix { 77 r_submix {
70 outputs { 78 outputs {
diff --git a/bluetooth/bdroid_buildcfg.h b/bluetooth/bdroid_buildcfg.h
index 38aa2b0..5cc4ade 100644
--- a/bluetooth/bdroid_buildcfg.h
+++ b/bluetooth/bdroid_buildcfg.h
@@ -19,4 +19,10 @@
19 19
20#define BTM_DEF_LOCAL_NAME "Jacinto6" 20#define BTM_DEF_LOCAL_NAME "Jacinto6"
21 21
22/* Handsfree device */
23#define BTA_DM_COD {0x20, 0x04, 0x08}
24
25/* Enable A2DP sink */
26#define BTA_AV_SINK_INCLUDED TRUE
27
22#endif 28#endif
diff --git a/overlay/packages/apps/Bluetooth/res/values/config.xml b/overlay/packages/apps/Bluetooth/res/values/config.xml
new file mode 100644
index 0000000..35b7e49
--- /dev/null
+++ b/overlay/packages/apps/Bluetooth/res/values/config.xml
@@ -0,0 +1,20 @@
1<?xml version="1.0" encoding="utf-8"?>
2<!-- Copyright (C) 2009-2012 Broadcom Corporation
3 Licensed under the Apache License, Version 2.0 (the "License");
4 you may not use this file except in compliance with the License.
5 You may obtain a copy of the License at
6
7 http://www.apache.org/licenses/LICENSE-2.0
8
9 Unless required by applicable law or agreed to in writing, software
10 distributed under the License is distributed on an "AS IS" BASIS,
11 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 See the License for the specific language governing permissions and
13 limitations under the License.
14-->
15
16<resources>
17 <bool name="profile_supported_a2dp_sink">true</bool>
18 <bool name="profile_supported_avrcp_controller">true</bool>
19 <bool name="profile_supported_hfpclient">true</bool>
20</resources>