mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-03-16 16:20:50 +00:00
a2dp_sink: drop unused local seid argument in a2dp_sink_establish_stream
This commit is contained in:
parent
8db801ac50
commit
d3f12e4555
@ -50,6 +50,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
|
||||
- GAP: use stack defaults for LE Connection Parameter Updates
|
||||
- GAP: set minimum and maximum CE length to 0
|
||||
- GAP: ENABLE_EXPLICIT_DEDICATED_BONDING_DISCONNECT disables disconnect after dedicated bonding
|
||||
- A2DP Sink: drop unused local seid argument in a2dp_sink_establish_stream
|
||||
- bluetooth: indicated identity address in resolved address type names
|
||||
- chipset/bcm: look for PatchRAM file DEVICE_NAME...hcd
|
||||
- btstack_audio: added get_samplerate function to help with audio sample rate synchronization
|
||||
|
@ -1180,13 +1180,12 @@ static void stdin_process(char cmd){
|
||||
uint8_t volume;
|
||||
avrcp_battery_status_t old_battery_status;
|
||||
|
||||
a2dp_sink_demo_stream_endpoint_t * stream_endpoint = &a2dp_sink_demo_stream_endpoint;
|
||||
a2dp_sink_demo_a2dp_connection_t * a2dp_connection = &a2dp_sink_demo_a2dp_connection;
|
||||
a2dp_sink_demo_avrcp_connection_t * avrcp_connection = &a2dp_sink_demo_avrcp_connection;
|
||||
|
||||
switch (cmd){
|
||||
case 'b':
|
||||
status = a2dp_sink_establish_stream(device_addr, stream_endpoint->a2dp_local_seid, &a2dp_connection->a2dp_cid);
|
||||
status = a2dp_sink_establish_stream(device_addr, &a2dp_connection->a2dp_cid);
|
||||
printf(" - Create AVDTP connection to addr %s, and local seid %d, cid 0x%02x.\n",
|
||||
bd_addr_to_str(device_addr), a2dp_connection->a2dp_local_seid, a2dp_connection->a2dp_cid);
|
||||
break;
|
||||
|
@ -123,14 +123,8 @@ void a2dp_sink_finalize_stream_endpoint(avdtp_stream_endpoint_t * stream_endpoin
|
||||
avdtp_sink_finalize_stream_endpoint(stream_endpoint);
|
||||
}
|
||||
|
||||
uint8_t a2dp_sink_establish_stream(bd_addr_t bd_addr, uint8_t local_seid, uint16_t * avdtp_cid){
|
||||
avdtp_stream_endpoint_t * stream_endpoint = avdtp_get_stream_endpoint_for_seid(local_seid);
|
||||
if (stream_endpoint == NULL){
|
||||
log_info("No local_stream_endpoint for seid %d", local_seid);
|
||||
return ERROR_CODE_COMMAND_DISALLOWED;
|
||||
}
|
||||
uint8_t a2dp_sink_establish_stream(bd_addr_t bd_addr, uint16_t * avdtp_cid){
|
||||
uint16_t outgoing_cid;
|
||||
|
||||
uint8_t status = avdtp_sink_connect(bd_addr, &outgoing_cid);
|
||||
if (status != ERROR_CODE_SUCCESS){
|
||||
return status;
|
||||
|
@ -116,10 +116,9 @@ void a2dp_sink_register_media_handler(void (*callback)(uint8_t local_seid, uint8
|
||||
/**
|
||||
* @brief Establish stream.
|
||||
* @param remote
|
||||
* @param local_seid ID of a local stream endpoint.
|
||||
* @param out_a2dp_cid Assigned A2DP channel identifier used for furhter A2DP commands.
|
||||
* @param out_a2dp_cid Assigned A2DP channel identifier used for furhter A2DP commands.
|
||||
*/
|
||||
uint8_t a2dp_sink_establish_stream(bd_addr_t remote, uint8_t local_seid, uint16_t * out_a2dp_cid);
|
||||
uint8_t a2dp_sink_establish_stream(bd_addr_t remote, uint16_t * out_a2dp_cid);
|
||||
|
||||
#ifdef ENABLE_AVDTP_ACCEPTOR_EXPLICIT_START_STREAM_CONFIRMATION
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user