summaryrefslogtreecommitdiff
path: root/android/hal-handsfree.c
diff options
context:
space:
mode:
authorAndrei Emeltchenko <andrei.emeltchenko@intel.com>2014-11-06 10:31:56 +0200
committerSzymon Janc <szymon.janc@tieto.com>2014-11-06 12:31:31 +0100
commit0473ce49b10a3625d83735fbe3c3aa38f2bbc7fd (patch)
tree40253258933df966f352e5101b6d1190e21da7a9 /android/hal-handsfree.c
parent3abafb415e2bf6ef4ce780e168c071ed0ec56c7f (diff)
downloadbluez-0473ce49b10a3625d83735fbe3c3aa38f2bbc7fd.tar.gz
android/handsfree: Add support for new API for vr_cmd_cb
Voice Recognition Command notification callback has new parameter bdaddr.
Diffstat (limited to 'android/hal-handsfree.c')
-rw-r--r--android/hal-handsfree.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/android/hal-handsfree.c b/android/hal-handsfree.c
index dfa37e79b..c465277b1 100644
--- a/android/hal-handsfree.c
+++ b/android/hal-handsfree.c
@@ -58,7 +58,11 @@ static void handle_vr_state(void *buf, uint16_t len, int fd)
struct hal_ev_handsfree_vr_state *ev = buf;
if (cbs->vr_cmd_cb)
+#if ANDROID_VERSION >= PLATFORM_VER(5, 0, 0)
+ cbs->vr_cmd_cb(ev->state, (bt_bdaddr_t *) (ev->bdaddr));
+#else
cbs->vr_cmd_cb(ev->state);
+#endif
}
static void handle_answer(void *buf, uint16_t len, int fd)