142 Commits

Author SHA1 Message Date
Matthias Ringwald
1da2869325 a2dp_source: use a2dp_source_state from connection 2021-03-23 18:46:56 +01:00
Matthias Ringwald
1e3240657b a2dp_source: lookup connection before access to a2dp_source_state 2021-03-23 18:46:56 +01:00
Matthias Ringwald
ff43929d9e a2dp_source: mirror global a2dp_source_state in connection struct 2021-03-23 18:46:56 +01:00
Matthias Ringwald
ca0e2e7e9f a2dp_source: skip stream endpoints that are reported as 'in use' during configuration 2021-03-12 14:15:00 +01:00
Matthias Ringwald
cd0bbc03f2 a2dp_source: fix a2dp_source_establish_stream
a2dp_source_establish_stream did return an error if an avdtp connection exists, even if the previous attempt to setup a sep failed
2021-03-12 14:12:10 +01:00
Matthias Ringwald
3e6cf58192 a2dp/avdtp: mark capabilities as const 2021-02-16 11:07:35 +01:00
Matthias Ringwald
8691a66c78 a2dp, avdtp: use a2dp_source_set_config_{TYPE} and avdtp_config{TYPE}_store to avoid large number of parameters 2021-02-04 19:13:57 +01:00
Matthias Ringwald
5bfc74a2d8 a2dp_source: fix warning 2021-01-24 23:11:52 +01:00
Matthias Ringwald
fdd788fee8 avdtp: move helper to set/get configuration into avdtp_util 2021-01-20 17:26:07 +01:00
Matthias Ringwald
7569dc6180 a2dp: support de-init 2021-01-18 21:54:36 +01:00
Bjoern Hartmann
8869c7875d a2dp_source: add send media payload with rtp function 2021-01-14 15:51:50 +01:00
Bjoern Hartmann
636a58caf1 a2dp_source: fix: store missing media codec type 2021-01-14 15:51:24 +01:00
Matthias Ringwald
4c5b56ffe3 a2dp_source: remove unused param 2021-01-14 15:51:24 +01:00
Matthias Ringwald
cc85b8eac3 a2dp_source: support multiple local stream endpoints 2021-01-14 15:51:24 +01:00
Matthias Ringwald
f0b590dc99 avdtp: move a2dp source context into a2dp_source 2021-01-14 15:51:24 +01:00
Matthias Ringwald
80555d912a a2dp_source: support new codecs in a2dp_source_reconfigure_stream_sampling_frequency 2021-01-14 15:51:24 +01:00
Matthias Ringwald
33553e7e91 a2dp_source: move reconfigure sampling frequency to end of file 2021-01-14 15:51:24 +01:00
Matthias Ringwald
4667abb701 a2dp_source: extract functions to set sampling frequency 2021-01-14 15:51:24 +01:00
Matthias Ringwald
80dc008856 avdtp: use frequency in hz and general channel mode for sbc config 2021-01-14 15:46:13 +01:00
Matthias Ringwald
8226b499f4 a2dp_source: only select SBC endpoint if no other config received from app 2021-01-14 15:46:13 +01:00
Matthias Ringwald
5695c5cc37 avdtp_source, a2dp_source: allow to send media packets without RTP header 2021-01-14 15:46:13 +01:00
Matthias Ringwald
ec9b5b0fdc avdtp: rename media_codec_sbc_info as it's used for all codecs 2021-01-14 15:46:13 +01:00
Matthias Ringwald
cbfa0fc659 a2dp_source: add a2dp_source_set_config_{TYPE} 2021-01-14 15:46:13 +01:00
Matthias Ringwald
0fa4346cf1 a2dp: extract a2dp_source_set_config_sbc 2021-01-14 15:46:13 +01:00
Matthias Ringwald
3663964fb1 a2dp_source: emit A2DP_SUBEVENT_SIGNALING_CAPABILITIES_COMPLETE 2021-01-14 15:46:13 +01:00
Matthias Ringwald
7fdb77e0bb a2dp_source: forward all codecs / configuration events 2021-01-14 11:45:07 +01:00
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