diff options
author | Andrei Emeltchenko <andrei.emeltchenko@intel.com> | 2014-11-05 16:38:47 +0200 |
---|---|---|
committer | Szymon Janc <szymon.janc@tieto.com> | 2014-11-06 12:08:06 +0100 |
commit | 86b2b8c24e69b417eabb5e2a8eb68849533c8644 (patch) | |
tree | 4b5c0efd2fc5e981cb3790afeaf0c974a45ab8bf /android/handsfree.c | |
parent | e16ccc08874f9d04f31d648be8554ae85c9f63ad (diff) | |
download | bluez-86b2b8c24e69b417eabb5e2a8eb68849533c8644.tar.gz |
android/handsfree: Add support for new API for stop_vr
stop_voice_recognition() in new Android API has bd_addr parameter.
Diffstat (limited to 'android/handsfree.c')
-rw-r--r-- | android/handsfree.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/android/handsfree.c b/android/handsfree.c index 60568c264..d31482cb2 100644 --- a/android/handsfree.c +++ b/android/handsfree.c @@ -1915,12 +1915,16 @@ done: static void handle_stop_vr(const void *buf, uint16_t len) { + const struct hal_cmd_handsfree_stop_vr *cmd = buf; struct hf_device *dev; + bdaddr_t bdaddr; uint8_t status; DBG(""); - dev = find_default_device(); + android2bdaddr(cmd->bdaddr, &bdaddr); + + dev = find_device(&bdaddr); if (!dev) { status = HAL_STATUS_FAILED; goto done; |