diff options
author | Lukasz Rymanowski <lukasz.rymanowski@tieto.com> | 2014-09-15 13:51:22 +0200 |
---|---|---|
committer | Szymon Janc <szymon.janc@tieto.com> | 2014-09-18 16:36:04 +0200 |
commit | 10c889fa80978f191640bab8151d53f20e63ce75 (patch) | |
tree | 9253a7d3c36e0ecc4e6e90b3f690b1b82e9b381d /android/handsfree-client.c | |
parent | e79b5aef278d697bd2cbed87bd2e0f5e7a80b85d (diff) | |
download | bluez-10c889fa80978f191640bab8151d53f20e63ce75.tar.gz |
android/handsfree-client: Add Volume Control command
Diffstat (limited to 'android/handsfree-client.c')
-rw-r--r-- | android/handsfree-client.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/android/handsfree-client.c b/android/handsfree-client.c index 921272fbf..f2394d016 100644 --- a/android/handsfree-client.c +++ b/android/handsfree-client.c @@ -87,6 +87,14 @@ static void handle_stop_vr(const void *buf, uint16_t len) HAL_OP_HF_CLIENT_STOP_VR, HAL_STATUS_UNSUPPORTED); } +static void handle_volume_control(const void *buf, uint16_t len) +{ + DBG("Not Implemented"); + ipc_send_rsp(hal_ipc, HAL_SERVICE_ID_HANDSFREE_CLIENT, + HAL_OP_HF_CLIENT_VOLUME_CONTROL, + HAL_STATUS_UNSUPPORTED); +} + static const struct ipc_handler cmd_handlers[] = { /* HAL_OP_HF_CLIENT_CONNECT */ { handle_connect, false, @@ -104,6 +112,9 @@ static const struct ipc_handler cmd_handlers[] = { { handle_start_vr, false, 0 }, /* define HAL_OP_HF_CLIENT_STOP_VR */ { handle_stop_vr, false, 0 }, + /* HAL_OP_HF_CLIENT_VOLUME_CONTROL */ + { handle_volume_control, false, + sizeof(struct hal_cmd_hf_client_volume_control) }, }; bool bt_hf_client_register(struct ipc *ipc, const bdaddr_t *addr) |