Upgrade bluez5_37 :Merge the code from private
[platform/upstream/bluez.git] / android / avrcp.c
old mode 100644 (file)
new mode 100755 (executable)
index bcb4228..8c3e25a
@@ -748,11 +748,12 @@ static const struct avrcp_control_ind control_ind = {
 
 static bool handle_register_notification_rsp(struct avrcp *session, int err,
                                                uint8_t code, uint8_t event,
-                                               uint8_t *params,
+                                               void *params,
                                                void *user_data)
 {
        struct avrcp_device *dev = user_data;
        struct hal_ev_avrcp_volume_changed ev;
+       uint8_t *volume = params;
 
        if (err < 0) {
                error("AVRCP: %s", strerror(-err));
@@ -766,7 +767,7 @@ static bool handle_register_notification_rsp(struct avrcp *session, int err,
                return false;
 
        ev.type = code;
-       ev.volume = params[0] & 0x7f;
+       ev.volume = volume[0];
 
        ipc_send_notif(hal_ipc, HAL_SERVICE_ID_AVRCP,
                                        HAL_EV_AVRCP_VOLUME_CHANGED,