_bt_headset_event_cb(BLUETOOTH_EVENT_AUDIO_AVC_STATUS,
result, &mode,
event_info->cb, event_info->user_data);
+ } else if (strcasecmp(signal_name, BT_MEDIA_VOLUME_CHANGE) == 0) {
+ unsigned int volume;
+
+ g_variant_get(parameters, "(u)", &volume);
+ _bt_avrcp_event_cb(BLUETOOTH_EVENT_AVRCP_VOLUME_CHANGED,
+ result, &volume,
+ event_info->cb, event_info->user_data);
}
#endif
}
_bt_avrcp_event_cb(BLUETOOTH_EVENT_AVRCP_DELAY_CHANGED,
result, &delay,
event_info->cb, event_info->user_data);
- } else if (strcasecmp(signal_name, BT_MEDIA_VOLUME_CHANGE) == 0) {
- unsigned int volume;
-
- g_variant_get(parameters, "(u)", &volume);
- _bt_avrcp_event_cb(BLUETOOTH_EVENT_AVRCP_VOLUME_CHANGED,
- result, &volume,
- event_info->cb, event_info->user_data);
}
}
__bt_audio_set_avc_mode(mode);
/* Send the initial volume to application */
- _bt_send_event(BT_AVRCP_EVENT,
+ _bt_send_event(BT_HEADSET_EVENT,
BLUETOOTH_EVENT_AVRCP_VOLUME_CHANGED,
g_variant_new("(u)", absolute_volume));
}
return;
}
- _bt_send_event(BT_AVRCP_EVENT,
+ _bt_send_event(BT_HEADSET_EVENT,
BLUETOOTH_EVENT_AVRCP_VOLUME_CHANGED,
g_variant_new("(u)", absolute_volume));
}