summaryrefslogtreecommitdiff
path: root/android/handsfree-client.c
diff options
context:
space:
mode:
authorLukasz Rymanowski <lukasz.rymanowski@tieto.com>2014-09-15 13:51:21 +0200
committerSzymon Janc <szymon.janc@tieto.com>2014-09-18 16:36:04 +0200
commite79b5aef278d697bd2cbed87bd2e0f5e7a80b85d (patch)
tree25e0e7cebec44879d0cc561bfcb5df5ca64e62c0 /android/handsfree-client.c
parente6e85977cc3f5ddf2de337c7fbf3eaaed8ea3903 (diff)
downloadbluez-e79b5aef278d697bd2cbed87bd2e0f5e7a80b85d.tar.gz
android/handsfree-client: Add Start/Stop Voice Recognition command
Diffstat (limited to 'android/handsfree-client.c')
-rw-r--r--android/handsfree-client.c18
1 files changed, 18 insertions, 0 deletions
diff --git a/android/handsfree-client.c b/android/handsfree-client.c
index a65868ea5..921272fbf 100644
--- a/android/handsfree-client.c
+++ b/android/handsfree-client.c
@@ -73,6 +73,20 @@ static void handle_disconnect_audio(const void *buf, uint16_t len)
HAL_STATUS_UNSUPPORTED);
}
+static void handle_start_vr(const void *buf, uint16_t len)
+{
+ DBG("Not Implemented");
+ ipc_send_rsp(hal_ipc, HAL_SERVICE_ID_HANDSFREE_CLIENT,
+ HAL_OP_HF_CLIENT_START_VR, HAL_STATUS_UNSUPPORTED);
+}
+
+static void handle_stop_vr(const void *buf, uint16_t len)
+{
+ DBG("Not Implemented");
+ ipc_send_rsp(hal_ipc, HAL_SERVICE_ID_HANDSFREE_CLIENT,
+ HAL_OP_HF_CLIENT_STOP_VR, HAL_STATUS_UNSUPPORTED);
+}
+
static const struct ipc_handler cmd_handlers[] = {
/* HAL_OP_HF_CLIENT_CONNECT */
{ handle_connect, false,
@@ -86,6 +100,10 @@ static const struct ipc_handler cmd_handlers[] = {
/* HAL_OP_HF_CLIENT_DISCONNECT_AUDIO */
{ handle_disconnect_audio, false,
sizeof(struct hal_cmd_hf_client_disconnect_audio) },
+ /* define HAL_OP_HF_CLIENT_START_VR */
+ { handle_start_vr, false, 0 },
+ /* define HAL_OP_HF_CLIENT_STOP_VR */
+ { handle_stop_vr, false, 0 },
};
bool bt_hf_client_register(struct ipc *ipc, const bdaddr_t *addr)