mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-03-29 22:20:37 +00:00
avrcp: parse all SDP records
This commit is contained in:
parent
f139b9cb4f
commit
20a7c7c874
@ -476,17 +476,9 @@ static void avrcp_handle_sdp_client_query_attribute_value(uint8_t *packet){
|
||||
uint32_t uuid = de_get_uuid32(element);
|
||||
switch (uuid){
|
||||
case BLUETOOTH_SERVICE_CLASS_AV_REMOTE_CONTROL_TARGET:
|
||||
if (sdp_query_context->role == AVRCP_CONTROLLER) {
|
||||
sdp_query_context->parse_sdp_record = 1;
|
||||
break;
|
||||
}
|
||||
break;
|
||||
case BLUETOOTH_SERVICE_CLASS_AV_REMOTE_CONTROL:
|
||||
case BLUETOOTH_SERVICE_CLASS_AV_REMOTE_CONTROL_CONTROLLER:
|
||||
if (sdp_query_context->role == AVRCP_TARGET) {
|
||||
sdp_query_context->parse_sdp_record = 1;
|
||||
break;
|
||||
}
|
||||
sdp_query_context->parse_sdp_record = 1;
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
|
Loading…
x
Reference in New Issue
Block a user