116 Commits

Author SHA1 Message Date
Matthias Ringwald
e883851f1d fix warnings for log_info/printf 2020-11-30 11:59:26 +01:00
Milanka Ringwald
e0d13a1902 avoid warning for set but unused variables when log_info and log_error are disabled 2020-10-27 14:34:31 +01:00
Matthias Ringwald
8276777316 a2dp source: fix crash on outgoing connection after previous incoming one
The pointer to the user media codec configuration buffer was stored in stream_endpoint.remote_configuration, which was set to zero in avdtp_reset_stream_endpoint. The user buffer is now stored separately and it is updateds when the configuration gets set/updated. The field media_codec_sbc_info is used by a2dp configure and reconfigure.
2020-10-13 13:25:33 +02:00
Matthias Ringwald
f8cade38b7 a2dp_source: set media codec len 2020-10-12 18:30:23 +02:00
Matthias Ringwald
1c8795f6af avdtp: improve debug output 2020-10-09 11:40:48 +02:00
Milanka Ringwald
163a4e3213 a2dp_source: improve log info 2020-10-02 15:00:55 +02:00
Milanka Ringwald
22bed8e12d a2dp: remove redundant functions 2020-10-01 16:14:41 +02:00
Milanka Ringwald
c91f9817de a2dp_source, avrcp: clean up log_info 2020-09-29 21:14:04 +02:00
Milanka Ringwald
38c24fced1 a2dp_source: trigger set config after all capabilities are reported 2020-09-29 20:59:04 +02:00
Matthias Ringwald
75718a3256 a2dp_source: accept sbc configuration from remote sink and stop outgoing activities 2020-09-29 17:48:59 +02:00
Milanka Ringwald
1e043e5bc3 a2dp_source: add log info 2020-09-29 17:23:33 +02:00
Matthias Ringwald
077564c843 a2dp_source: reset discovery timer while remote is active as initiator 2020-09-29 17:06:47 +02:00
Matthias Ringwald
d7cef2744b a2dp_source: track if timer is active 2020-09-29 17:05:09 +02:00
Milanka Ringwald
83733477bb a2dp_source: set delay_report capability for remote, if reported 2020-09-29 15:18:10 +02:00
Milanka Ringwald
57d30cd064 a2dp_source: call get_all_capabilities instead of get_capabilities 2020-09-22 15:55:28 +02:00
Milanka Ringwald
47612f7f1a a2dp: cleanup logs 2020-09-15 14:20:11 +02:00
Milanka Ringwald
3f8d9db275 a2dp_source: on reconfigure event, set state to A2DP_STREAMING_OPENED 2020-09-15 14:20:11 +02:00
Milanka Ringwald
c82cf54a8a a2dp_source: fix sep discovery for incoming connection 2020-09-11 09:05:44 +02:00
Matthias Ringwald
17ddf5013d avdtp/a2dp: add finalize stream endpoint function 2020-09-07 16:48:38 +02:00
Milanka Ringwald
a4ec7672d7 avdtp: fix compile warnings 2020-08-26 09:00:01 +02:00
Matthias Ringwald
5509e8887f a2dp_source, avrcp_controller: fix warnings 2020-08-21 16:20:46 +02:00
Matthias Ringwald
0ca82ad21a a2dp_source: fix forwarding of delay reporting event 2020-08-21 14:23:54 +02:00
Matthias Ringwald
696f1aba04 a2dp_source: document behaviour for different use cases, outgoing has priority, streamline code 2020-08-20 15:35:00 +02:00
Matthias Ringwald
cd94cb8e7b a2dp_source: keep a2dp state as global 2020-08-19 16:34:23 +02:00
Matthias Ringwald
cf6e4a8c62 a2dp_source: always emit signaling connection established 2020-08-19 14:37:46 +02:00
Matthias Ringwald
29c1fe6736 a2dp_source: extract a2dp_source_discover_stream_endpoints 2020-08-19 14:35:04 +02:00
Matthias Ringwald
49523328ea avdtp_source: remove send_stream_established_for_outgoing_connection 2020-08-19 14:06:25 +02:00
Milanka Ringwald
8a7c69df9b a2dp_source: handle reconfigure, check if initiator 2020-08-19 11:17:16 +02:00
Milanka Ringwald
fb58b87ad7 a2dp_source: notify app on error only for the outgoing connection establishment 2020-08-19 11:17:16 +02:00
Milanka Ringwald
b79396703d a2dp_source: check early if stream endpoint is initialised, later call assert 2020-08-19 11:17:16 +02:00
Milanka Ringwald
26f6cd9d31 a2dtp: use a2dp helper functions to send events 2020-08-19 11:17:16 +02:00
Milanka Ringwald
906f010c0a a2dp_source: check earlier if stream endpoint is configured 2020-08-19 11:17:16 +02:00
Milanka Ringwald
45c1e06ec7 a2dp_source: use a2dp_replace_subevent_id_and_emit_cmd 2020-08-19 11:17:16 +02:00
Milanka Ringwald
0d176b654b avdtp: perform seps discovery on every connections, and stop with the first suitable 2020-08-19 11:17:16 +02:00
Milanka Ringwald
87d9d50861 a2dp_source: move app state to connection as a2dp_source_state 2020-08-19 11:17:16 +02:00
Matthias Ringwald
8c4485bcad a2dp: enter connected state if command is rejected, always forward sbc config as sink 2020-07-30 11:57:19 +02:00
Matthias Ringwald
a3dbe420ba a2dp_source: rework get capabilities query 2020-07-29 11:28:42 +02:00
Matthias Ringwald
7d4fd418ae a2dp_source: use active_remote_sep only as initiator, only use active_remote_sep_index 2020-07-29 11:02:48 +02:00
Matthias Ringwald
cf95ebe8f4 a2dp_source: forward stream state changes in both acceptor and initiator roles 2020-07-28 17:04:09 +02:00
Milanka Ringwald
23edb87eff avdtp: use Bluetooth error codes 2020-07-23 08:14:39 +02:00
Matthias Ringwald
791baace3f a2dp_sink/source: keep state on unexpected events 2020-07-22 17:54:59 +02:00
Matthias Ringwald
77092f3ebc avdtp: remove avdtp_context_t 2020-07-13 12:19:36 +02:00
Matthias Ringwald
702fd9c2c7 a2dp: call user packet handler directly 2020-07-11 16:10:48 +02:00
Matthias Ringwald
38106e952d avdtp: remove a2dp_callback from avdtp_context_t 2020-07-11 16:02:34 +02:00
Milanka Ringwald
b401ff594c avdtp: remove context param from disconnect call 2020-07-11 14:58:09 +02:00
Milanka Ringwald
297feb5f52 avdtp: remove unused param 2020-07-10 17:04:17 +02:00
Milanka Ringwald
d8e1539477 avdtp: remove stream endpoints from context, fix unused param in avdtp_get_stream_endpoint_for_seid 2020-07-10 16:46:58 +02:00
Milanka Ringwald
a1fb0563e9 avdtp: use btstack_assert, remove sdp_query_context 2020-07-10 15:18:05 +02:00
Milanka Ringwald
149deddbd9 avdtp: differentiate SDP queries towards sink and source 2020-07-10 10:53:14 +02:00
Milanka Ringwald
1436d179b7 avdtp: rename getter functions 2020-07-06 11:37:08 +02:00