summaryrefslogtreecommitdiff
path: root/android/hal-handsfree.c
diff options
context:
space:
mode:
authorAndrei Emeltchenko <andrei.emeltchenko@intel.com>2014-11-06 10:32:01 +0200
committerSzymon Janc <szymon.janc@tieto.com>2014-11-06 12:31:31 +0100
commit8343735754c098f04c0d81ff4254013f5521956f (patch)
tree71a320f7176a83f6868869f6a49d7b09203d714c /android/hal-handsfree.c
parentea3e91cf13da8f5e716534aa01c88b47e9443839 (diff)
downloadbluez-8343735754c098f04c0d81ff4254013f5521956f.tar.gz
android/handsfree: Add support for new API for handle_dtmf
DTMF 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 3a5eec695..21d444442 100644
--- a/android/hal-handsfree.c
+++ b/android/hal-handsfree.c
@@ -134,7 +134,11 @@ static void handle_dtmf(void *buf, uint16_t len, int fd)
struct hal_ev_handsfree_dtmf *ev = buf;
if (cbs->dtmf_cmd_cb)
+#if ANDROID_VERSION >= PLATFORM_VER(5, 0, 0)
+ cbs->dtmf_cmd_cb(ev->tone, (bt_bdaddr_t *) (ev->bdaddr));
+#else
cbs->dtmf_cmd_cb(ev->tone);
+#endif
}
static void handle_nrec(void *buf, uint16_t len, int fd)