mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-02-21 12:40:42 +00:00
avdtp: renamed definition of supported features
This commit is contained in:
parent
e2f2541787
commit
1904e5a145
@ -12,17 +12,18 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
|
||||
- HFP: Fix parsing of empty fields, e.g. phone number in +CLCC and other AT commands
|
||||
- sm: Fix validation of confirm value for secure connection Passkey entry
|
||||
- AVDTP: fix invalid response for Get Capabilities request if Delay Reporting was supported
|
||||
|
||||
|
||||
### Added
|
||||
- GAP: Detect Secure Connection -> Legacy Connection Downgrade Attack by remote features and actual encryption type (BIAS)
|
||||
- GAP: Mutual authentication: request authentication after Classic connection got encrypted (BIAS)
|
||||
- Windows port for Dialog DA14585 connected via serial port
|
||||
- AVRCP: introduced AVRCP_FEATURE_MASK_* as alternative to avrcp_controller_supported_feature_t and avrcp_target_supported_feature_t enums
|
||||
- AVDTP: renamed definition of supported features from AVDTP_SOURCE_SF_ and AVDTP_SINK_SF_ to AVDTP_SOURCE_FEATURE_MASK_ and AVDTP_SINK_FEATURE_MASK_ respectively.
|
||||
|
||||
### Changed
|
||||
- CVSD PLC: treat zero frames as good and allow to mark data as bad, e.g. if reported by controller as erroneous
|
||||
- btstack_audio: add set_volume() to sink and set_gain() to source interfaces
|
||||
- GAP: set minium required encryption key size for Classic connections to 7, matching the Core spec
|
||||
- GAP: set minimum required encryption key size for Classic connections to 7, matching the Core spec
|
||||
|
||||
## Changes May 2020
|
||||
|
||||
|
@ -260,7 +260,7 @@ static int a2dp_and_avrcp_setup(void){
|
||||
sdp_init();
|
||||
// setup AVDTP sink
|
||||
memset(sdp_avdtp_sink_service_buffer, 0, sizeof(sdp_avdtp_sink_service_buffer));
|
||||
a2dp_sink_create_sdp_record(sdp_avdtp_sink_service_buffer, 0x10001, AVDTP_SINK_SF_HEADPHONE, NULL, NULL);
|
||||
a2dp_sink_create_sdp_record(sdp_avdtp_sink_service_buffer, 0x10001, AVDTP_SINK_FEATURE_MASK_HEADPHONE, NULL, NULL);
|
||||
sdp_register_service(sdp_avdtp_sink_service_buffer);
|
||||
|
||||
// setup AVRCP Controller
|
||||
|
@ -304,7 +304,7 @@ static int a2dp_source_and_avrcp_services_init(void){
|
||||
|
||||
// Create A2DP Source service record and register it with SDP.
|
||||
memset(sdp_a2dp_source_service_buffer, 0, sizeof(sdp_a2dp_source_service_buffer));
|
||||
a2dp_source_create_sdp_record(sdp_a2dp_source_service_buffer, 0x10001, AVDTP_SOURCE_SF_PLAYER, NULL, NULL);
|
||||
a2dp_source_create_sdp_record(sdp_a2dp_source_service_buffer, 0x10001, AVDTP_SOURCE_FEATURE_MASK_PLAYER, NULL, NULL);
|
||||
sdp_register_service(sdp_a2dp_source_service_buffer);
|
||||
|
||||
// Create AVRCP target service record and register it with SDP.
|
||||
|
@ -63,15 +63,15 @@ extern "C" {
|
||||
#define AVDTP_MAX_CONTENT_PROTECTION_TYPE_VALUE_LEN 10
|
||||
|
||||
// Supported Features
|
||||
#define AVDTP_SOURCE_SF_PLAYER 0x0001u
|
||||
#define AVDTP_SOURCE_SF_MICROPHONE 0x0002u
|
||||
#define AVDTP_SOURCE_SF_TUNER 0x0004u
|
||||
#define AVDTP_SOURCE_SF_MIXER 0x0008u
|
||||
#define AVDTP_SOURCE_FEATURE_MASK_PLAYER 0x0001u
|
||||
#define AVDTP_SOURCE_FEATURE_MASK_MICROPHONE 0x0002u
|
||||
#define AVDTP_SOURCE_FEATURE_MASK_TUNER 0x0004u
|
||||
#define AVDTP_SOURCE_FEATURE_MASK_MIXER 0x0008u
|
||||
|
||||
#define AVDTP_SINK_SF_HEADPHONE 0x0001u
|
||||
#define AVDTP_SINK_SF_SPEAKER 0x0002u
|
||||
#define AVDTP_SINK_SF_RECORDER 0x0004u
|
||||
#define AVDTP_SINK_SF_AMPLIFIER 0x0008u
|
||||
#define AVDTP_SINK_FEATURE_MASK_HEADPHONE 0x0001u
|
||||
#define AVDTP_SINK_FEATURE_MASK_SPEAKER 0x0002u
|
||||
#define AVDTP_SINK_FEATURE_MASK_RECORDER 0x0004u
|
||||
#define AVDTP_SINK_FEATURE_MASK_AMPLIFIER 0x0008u
|
||||
|
||||
// ACP to INT, Signal Response Header Error Codes
|
||||
#define BAD_HEADER_FORMAT 0x01
|
||||
|
@ -733,7 +733,7 @@ int btstack_main(int argc, const char * argv[]){
|
||||
// Initialize SDP
|
||||
sdp_init();
|
||||
memset(sdp_avdtp_sink_service_buffer, 0, sizeof(sdp_avdtp_sink_service_buffer));
|
||||
a2dp_sink_create_sdp_record(sdp_avdtp_sink_service_buffer, 0x10001, AVDTP_SINK_SF_HEADPHONE, NULL, NULL);
|
||||
a2dp_sink_create_sdp_record(sdp_avdtp_sink_service_buffer, 0x10001, AVDTP_SINK_FEATURE_MASK_HEADPHONE, NULL, NULL);
|
||||
sdp_register_service(sdp_avdtp_sink_service_buffer);
|
||||
// printf("BTstack AVDTP Sink, supported features 0x%04x\n", );
|
||||
gap_set_local_name("BTstack AVDTP Sink PTS 00:00:00:00:00:00");
|
||||
|
@ -761,7 +761,7 @@ int btstack_main(int argc, const char * argv[]){
|
||||
// Initialize SDP
|
||||
sdp_init();
|
||||
memset(sdp_avdtp_source_service_buffer, 0, sizeof(sdp_avdtp_source_service_buffer));
|
||||
a2dp_source_create_sdp_record(sdp_avdtp_source_service_buffer, 0x10002, AVDTP_SOURCE_SF_PLAYER, NULL, NULL);
|
||||
a2dp_source_create_sdp_record(sdp_avdtp_source_service_buffer, 0x10002, AVDTP_SOURCE_FEATURE_MASK_PLAYER, NULL, NULL);
|
||||
sdp_register_service(sdp_avdtp_source_service_buffer);
|
||||
|
||||
gap_set_local_name("BTstack AVDTP Source PTS 00:00:00:00:00:00");
|
||||
|
Loading…
x
Reference in New Issue
Block a user