summaryrefslogtreecommitdiff
path: root/android/hal-handsfree.c
diff options
context:
space:
mode:
authorAndrei Emeltchenko <andrei.emeltchenko@intel.com>2014-11-06 10:31:59 +0200
committerSzymon Janc <szymon.janc@tieto.com>2014-11-06 12:31:31 +0100
commit2ce0bb3c23e65e8a2dd910b517a94dc0c7da00c5 (patch)
tree81d3d83aac624c01a6b15da6c7000e4281745504 /android/hal-handsfree.c
parentb6e754e1bf187f52407a9fbd12e420a9df26b2a4 (diff)
downloadbluez-2ce0bb3c23e65e8a2dd910b517a94dc0c7da00c5.tar.gz
android/handsfree: Add support for new API for volume_cmd_cb
Volume Command notification callback has new parameter bdaddr.
Diffstat (limited to 'android/hal-handsfree.c')
-rw-r--r--android/hal-handsfree.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/android/hal-handsfree.c b/android/hal-handsfree.c
index dc40a17a3..bb64da01d 100644
--- a/android/hal-handsfree.c
+++ b/android/hal-handsfree.c
@@ -96,7 +96,12 @@ static void handle_volume(void *buf, uint16_t len, int fd)
struct hal_ev_handsfree_volume *ev = buf;
if (cbs->volume_cmd_cb)
+#if ANDROID_VERSION >= PLATFORM_VER(5, 0, 0)
+ cbs->volume_cmd_cb(ev->type, ev->volume,
+ (bt_bdaddr_t *) (ev->bdaddr));
+#else
cbs->volume_cmd_cb(ev->type, ev->volume);
+#endif
}
static void handle_dial(void *buf, uint16_t len, int fd)