diff options
author | Jakub Tyszkowski <jakub.tyszkowski@tieto.com> | 2014-11-21 16:13:53 +0100 |
---|---|---|
committer | Szymon Janc <szymon.janc@gmail.com> | 2014-11-25 20:56:56 +0100 |
commit | 52336869851c28aa388ea6a08769bf4944fef974 (patch) | |
tree | 829916dcb7b55b979acb5d5d0209227378d9f829 /android/hal-bluetooth.c | |
parent | f18597cad496fc7279d4f4ff107e275e1732ed7e (diff) | |
download | bluez-52336869851c28aa388ea6a08769bf4944fef974.tar.gz |
android/hal: Add HAL for A2DP Sink role
This role was introduced with some devices in Android 5. The same set
of IPC structs and defines is used as in Sink as it uses the same HAL
API as Source does, but just yet another instance of HAL.
Diffstat (limited to 'android/hal-bluetooth.c')
-rw-r--r-- | android/hal-bluetooth.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/android/hal-bluetooth.c b/android/hal-bluetooth.c index 7be02edd9..cceb196ea 100644 --- a/android/hal-bluetooth.c +++ b/android/hal-bluetooth.c @@ -898,6 +898,9 @@ static const void *get_profile_interface(const char *profile_id) if (!strcmp(profile_id, BT_PROFILE_MAP_CLIENT_ID)) return bt_get_map_client_interface(); + + if (!strcmp(profile_id, BT_PROFILE_ADVANCED_AUDIO_SINK_ID)) + return bt_get_a2dp_sink_interface(); #endif return NULL; |