87 Commits

Author SHA1 Message Date
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
Matthias Ringwald
86a5a72143 a2dp_source: A2DP Source: only connect to remote sink stream endpoints 2020-05-13 10:44:14 +02:00
Matthias Ringwald
17741193d9 a2dp_source: delay set configuration when remote created signaling connection 2019-12-17 17:37:05 +01:00
Milanka Ringwald
8d9aebf58c a2dp_source: ignore acceptor events for now 2019-12-17 15:32:30 +01:00
Milanka Ringwald
63274943dc avdtp: introduce is_initiator param in accept and reject events 2019-12-17 15:21:50 +01:00
Matthias Ringwald
2de6e17d4c avdtp: fix build 2019-12-17 11:02:14 +01:00
Milanka Ringwald
b12cd5a611 avdtp: clean up logs 2019-12-17 10:20:11 +01:00
Milanka Ringwald
5451d60aee a2dp_source: rename global variable 2019-12-17 09:20:12 +01:00
Matthias Ringwald
6535961a1f ignore memcpy return value (always returns first parameter) 2019-12-02 18:17:20 +01:00
Milanka Ringwald
33f3f68c3b a2dp source: wrap avdtp calls [a2371] 2019-11-18 11:37:12 +01:00
Milanka Ringwald
259c7ac346 a2dp: set local seid in a2dp_streaming_emit_can_send_media_packet_now [a2381] 2019-11-15 11:51:30 +01:00
Milanka Ringwald
84e3541e4b bluetooth_psm: replace prefix PSM_ with BLUEOOTH_PSM_ 2019-09-27 15:13:48 +02:00
Milanka Ringwald
62faac7e54 a2dp_source: fix event type in a2dp_signaling_emit_delay_report, forward AVDTP_SUBEVENT_SIGNALING_CAPABILITIES_DONE event 2019-09-21 11:27:55 +02:00
Milanka Ringwald
b5858f2df2 avdtp source: Adapt Bluetooth spec SBC configuration definition to the expected input of SBC Encoder 2019-09-20 15:10:24 +02:00
Milanka Ringwald
8b94010e12 avdtp: forward A2DP_SUBEVENT_SIGNALING_DELAY_REPORT as event to client app; change a2dp sink return value of a2dp_sink_create_stream_endpoint from status to stream endpoint 2019-09-20 14:19:40 +02:00
Matthias Ringwald
e501bae083 Use BTSTACK_FILE__ without __ prefix (MISRAC2012-Rule-21.1) 2019-05-11 19:31:55 +02:00
Matthias Ringwald
cfd2437ec6 a2dp_source: suppport stream reconfiguration (a2dp_source_reconfigure_stream_sampling_frequency) 2018-09-17 12:06:51 +02:00
Matthias Ringwald
d0c510fc6d a2dp: fix compiltion for c++ 2018-06-26 18:25:04 +02:00
Milanka Ringwald
7078e43451 a2dp_source: a2dp_source_create_stream_endpoint returns avdtp_stream_endpoint_t 2018-04-18 11:29:09 +02:00
Milanka Ringwald
59e36844b7 a2dp: remove l2cap register service from init 2018-04-18 10:43:00 +02:00
Milanka Ringwald
485c0a4c68 avdtp: remove list of remote seps, emit instead seps to the app, with event done to mark the end 2018-04-18 10:43:00 +02:00
Milanka Ringwald
b60d3b4722 a2dp source: fix api for create stream endpoint 2018-04-13 17:28:10 +02:00
Milanka Ringwald
a2466f3175 a2dp_source: use correct event on signaling connection failure, extract emit functions 2018-03-09 16:45:23 +01:00
Milanka Ringwald
9900b7faad a2dp source: reject incorrectly initiated incoming media connection 2018-02-23 15:13:18 +01:00
Milanka Ringwald
578eda3e1c a2dp source: fix walk through dicovered remote seps for finding SBC media codec capapbility 2018-02-20 15:50:36 +01:00
Milanka Ringwald
ec3d71e355 avdtp: fix incoming/outgoing connection, introduce more logs 2017-12-01 17:30:20 +01:00
Milanka Ringwald
63331bf43d avdtp source: send event on signaling connection established for both incoming and outgoing connections 2017-12-01 15:23:23 +01:00
Milanka Ringwald
ffa6c1604b avdtp: cache SBC codec info to emot on set config accept 2017-11-27 00:40:37 +01:00
Milanka Ringwald
e7e31fb815 a2dp source: remove get configuration 2017-11-26 23:44:08 +01:00
Milanka Ringwald
e2d6e24b54 a2dp source: move sbc init from a2dp source to demo 2017-11-24 16:37:07 +01:00