summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVishal Mahaveer <vishalm@ti.com>2014-11-14 11:51:48 -0600
committerVishal Mahaveer <vishalm@ti.com>2014-11-14 11:51:48 -0600
commit7a7080371e3ff3a4973d9944d175a637aba3d460 (patch)
treeb73be61b636831c165762ca6ffee888e270b1500
parentd0b1d21809b85a9a17479846c05501ddc212f365 (diff)
downloadjacinto6evm-7a7080371e3ff3a4973d9944d175a637aba3d460.tar.gz
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 {
devices AUDIO_DEVICE_OUT_ALL_A2DP
}
}
+ inputs {
+ a2dp {
+ sampling_rates 44100|48000
+ channel_masks AUDIO_CHANNEL_IN_MONO|AUDIO_CHANNEL_IN_STEREO
+ formats AUDIO_FORMAT_PCM_16_BIT
+ devices AUDIO_DEVICE_IN_BLUETOOTH_A2DP
+ }
+ }
}
r_submix {
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 @@
#define BTM_DEF_LOCAL_NAME "Jacinto6"
+/* Handsfree device */
+#define BTA_DM_COD {0x20, 0x04, 0x08}
+
+/* Enable A2DP sink */
+#define BTA_AV_SINK_INCLUDED TRUE
+
#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 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Copyright (C) 2009-2012 Broadcom Corporation
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
+
+<resources>
+ <bool name="profile_supported_a2dp_sink">true</bool>
+ <bool name="profile_supported_avrcp_controller">true</bool>
+ <bool name="profile_supported_hfpclient">true</bool>
+</resources>