diff --git a/service/profiles/avrcp/control/avrcp_control_service.c b/service/profiles/avrcp/control/avrcp_control_service.c index 45956f2..eba132e 100644 --- a/service/profiles/avrcp/control/avrcp_control_service.c +++ b/service/profiles/avrcp/control/avrcp_control_service.c @@ -364,6 +364,9 @@ static void handle_avrcp_get_capability_response(avrcp_msg_t* msg) case NOTIFICATION_EVT_VOLUME_CHANGED: /* don't work on controller role */ break; + case NOTIFICATION_EVT_TRACK_CHANGED: + bt_sal_avrcp_control_register_notification(addr, *cap, 0); + break; default: break; } @@ -412,6 +415,11 @@ static void handle_avrcp_register_notification_response(avrcp_msg_t* msg) /* don't work on controller role */ break; } + case NOTIFICATION_EVT_TRACK_CHANGED: { + BT_LOGD("track changed, get track info now..."); + bt_sal_avrcp_control_get_element_attributes(addr, 0, NULL); + break; + } default: break; }