diff options
author | Alden DSouza <aldend@google.com> | 2020-02-05 11:03:29 -0800 |
---|---|---|
committer | Alden DSouza <aldend@google.com> | 2020-02-05 11:03:29 -0800 |
commit | 4d726d43d95c44a23b9443d8a44abcb70ec12f24 (patch) | |
tree | 04a2ed0378fdd66ddd949bafee043c5805fc9647 | |
parent | b81b8f61070906858b4cf7f9bb56c878828017e5 (diff) | |
download | yukawa-4d726d43d95c44a23b9443d8a44abcb70ec12f24.tar.gz |
yukawa: Enable BT A2DP sink profile
Bug: b/148950978
Test: Verified Yukawa can be connected to an A2DP source e.g. phone,
and music playback works as expected.
Change-Id: Ib264c19089f11488bf97371502685d86ca3881b3
-rw-r--r-- | audio/audio_policy_configuration.xml | 3 | ||||
-rwxr-xr-x | bluetooth/bdroid_buildcfg.h | 4 | ||||
-rw-r--r-- | overlay/packages/apps/Bluetooth/res/values/config.xml | 20 |
3 files changed, 24 insertions, 3 deletions
diff --git a/audio/audio_policy_configuration.xml b/audio/audio_policy_configuration.xml index bb9f67c..f0f5294 100644 --- a/audio/audio_policy_configuration.xml +++ b/audio/audio_policy_configuration.xml @@ -112,9 +112,6 @@ <!-- Remote Submix Audio HAL --> <xi:include href="r_submix_audio_policy_configuration.xml"/> - <!-- A2DP Audio HAL --> - <xi:include href="a2dp_audio_policy_configuration.xml"/> - </modules> <!-- End of Modules section --> diff --git a/bluetooth/bdroid_buildcfg.h b/bluetooth/bdroid_buildcfg.h index d145b03..63cc8c7 100755 --- a/bluetooth/bdroid_buildcfg.h +++ b/bluetooth/bdroid_buildcfg.h @@ -17,6 +17,10 @@ #ifndef _BDROID_BUILDCFG_H #define _BDROID_BUILDCFG_H +#define BTA_DM_COD \ + { 0x2C, 0x04, 0x14 } +#define BTA_AV_SINK_INCLUDED TRUE + #define BLE_VND_INCLUDED TRUE // Turn off BLE_PRIVACY_SPT. Remote reconnect fails on 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..84206a0 --- /dev/null +++ b/overlay/packages/apps/Bluetooth/res/values/config.xml @@ -0,0 +1,20 @@ +<resources> + <bool name="profile_supported_a2dp">false</bool> + <bool name="profile_supported_hs_hfp">false</bool> + <bool name="profile_supported_pbap">false</bool> + <bool name="profile_supported_map">false</bool> + <bool name="profile_supported_hdp">false</bool> + <bool name="profile_supported_opp">false</bool> + <bool name="enable_phone_policy">false</bool> + + <bool name="profile_supported_hfpclient">false</bool> + <bool name="hfp_client_connection_service_enabled">false</bool> + <bool name="profile_supported_pbapclient">false</bool> + <bool name="profile_supported_pan">false</bool> + <bool name="profile_supported_mapmce">false</bool> + + <bool name="profile_supported_hid_host">true</bool> + <bool name="profile_supported_avrcp_target">true</bool> + <bool name="profile_supported_avrcp_controller">true</bool> + <bool name="profile_supported_a2dp_sink">true</bool> +</resources> |