zephyr/subsys/bluetooth/audio
Emil Gydesen 9d3e287572 Bluetooth: Audio: Fix ASCS CP subscribe in discovery
During discovery the unicast client subscribes to the
ASCS CP characteristic. However, this was done asynchronously
at the end of the discovery, and the discovery complete
callback was called before the subscription was done.

Since the unicast client relies on the auto CCC discovery,
the actual subscription takes place a few connection intervals
after the unicast_client_ep_set_cp function was called. The
result of this is that the actual subscription was missing
when the unicast client application starts performing
BAP operations.

The change done here postpones the discovery callback
until after the CP subscription has taken place, ensuring
that the unicast client correctly receives the CP notifications
when performing BAP operations. This also allows the unicast
client to use the discovery parameter in the
bt_audio_discover_params struct, rather than yet another
discovery parameter struct, saving some memory.

Signed-off-by: Emil Gydesen <emil.gydesen@nordicsemi.no>
2023-02-06 22:05:15 +09:00
..
aics_client.c Bluetooth: Use Zephyr standard log system instead of bluetooth/common/log 2022-11-25 17:08:36 +01:00
aics_internal.h subsystems: migrate includes to <zephyr/...> 2022-05-09 12:07:35 +02:00
aics.c Bluetooth: Use Zephyr standard log system instead of bluetooth/common/log 2022-11-25 17:08:36 +01:00
ascs_internal.h Bluetooth: audio: ascs: Make ascs_ep_set_metadata static 2022-10-19 16:00:33 +02:00
ascs.c bluetooth: audio: Fix dereference before NULL check 2023-01-30 23:47:55 +00:00
audio_internal.h Bluetooth: Audio: Add bt_audio_dir_str to improve logging of dir 2023-01-09 12:18:03 +01:00
audio_iso.c Bluetooth: Audio: Add bt_audio_dir_str to improve logging of dir 2023-01-09 12:18:03 +01:00
audio_iso.h Bluetooth: Audio: Add (un)bind of audio iso for streams 2023-01-04 10:35:14 +01:00
audio.c Bluetooth: audio: Add security requirements check 2022-08-16 12:19:43 +02:00
bap_broadcast_assistant.c Bluetooth: Audio: Fix broadcast assistant recv state pointer value 2022-11-29 09:50:22 +01:00
bap_internal.h Bluetooth: Audio: Rename BASS and BASS client 2022-11-16 11:17:52 +01:00
bap_scan_delegator.c bluetooth: Fix using size instead of len 2023-01-18 07:27:00 -05:00
broadcast_sink.c Bluetooth: Use Zephyr standard log system instead of bluetooth/common/log 2022-11-25 17:08:36 +01:00
broadcast_source.c Bluetooth: Audio: Broadcast source reconfigure missing streaming QoS 2023-01-27 18:10:34 +09:00
cap_acceptor.c Bluetooth: Audio: Fix CAP Acceptor Debug log level 2023-01-09 15:27:28 +00:00
cap_initiator.c Bluetooth: Audio: Fix CAP initiator debug level 2023-01-09 15:27:28 +00:00
cap_internal.h everywhere: Fix legacy include paths 2022-07-18 16:16:47 +00:00
cap_stream.c Bluetooth: Audio: Add CAP stream 2022-10-24 10:39:11 +02:00
ccid_internal.h subsystems: migrate includes to <zephyr/...> 2022-05-09 12:07:35 +02:00
ccid.c
CMakeLists.txt Bluetooth: Audio: Modify the compile guard for audio_iso.c 2023-01-10 09:58:54 +01:00
codec.c Bluetooth: Audio: Add missing codec debug Kconfig 2023-01-09 15:27:28 +00:00
csip_crypto.c Bluetooth: Use Zephyr standard log system instead of bluetooth/common/log 2022-11-25 17:08:36 +01:00
csip_crypto.h Bluetooth: Audio: Rename CSIS to CSIP 2022-11-24 15:23:48 +01:00
csip_internal.h all: Fix "#if IS_ENABLED(CONFIG_FOO)" occurrences 2022-12-21 10:09:23 +01:00
csip_set_coordinator.c bluetooth: audio: Fix NULL dereference 2023-01-30 23:46:25 +00:00
csip_set_member.c all: Fix "#if IS_ENABLED(CONFIG_FOO)" occurrences 2022-12-21 10:09:23 +01:00
endpoint.h Bluetooth: Audio: Add support for encrypted broadcast 2023-01-06 10:35:25 +00:00
has_client.c Bluetooth: Use Zephyr standard log system instead of bluetooth/common/log 2022-11-25 17:08:36 +01:00
has_internal.h
has.c Bluetooth: Audio: HAS: Fix notifications/indications 2023-01-23 11:54:21 -08:00
Kconfig Bluetooth: Audio: Rename vcs.h to vcp.h as well as the Kconfig file 2022-11-28 17:43:40 +01:00
Kconfig.aics Bluetooth: Use Zephyr standard log system instead of bluetooth/common/log 2022-11-25 17:08:36 +01:00
Kconfig.ascs Bluetooth: Audio: ASCS: Make ASE Allocation Dynamic 2022-12-20 09:23:00 +01:00
Kconfig.baps Bluetooth: Audio: Audio ISO use log_config_inherit 2023-01-09 15:27:28 +00:00
Kconfig.bass Bluetooth: Audio: Rename BASS and BASS client 2022-11-16 11:17:52 +01:00
Kconfig.cap Bluetooth: Audio: Fix CAP initiator debug level 2023-01-09 15:27:28 +00:00
Kconfig.csip Bluetooth: Use Zephyr standard log system instead of bluetooth/common/log 2022-11-25 17:08:36 +01:00
Kconfig.has Bluetooth: has: Make HAS registration dynamic 2022-12-20 17:04:45 +00:00
Kconfig.mcs Bluetooth: Use Zephyr standard log system instead of bluetooth/common/log 2022-11-25 17:08:36 +01:00
Kconfig.mctl Bluetooth: Use Zephyr standard log system instead of bluetooth/common/log 2022-11-25 17:08:36 +01:00
Kconfig.micp Bluetooth: Use Zephyr standard log system instead of bluetooth/common/log 2022-11-25 17:08:36 +01:00
Kconfig.mpl Bluetooth: Use Zephyr standard log system instead of bluetooth/common/log 2022-11-25 17:08:36 +01:00
Kconfig.pacs Bluetooth: Use Zephyr standard log system instead of bluetooth/common/log 2022-11-25 17:08:36 +01:00
Kconfig.tbs Bluetooth: Use Zephyr standard log system instead of bluetooth/common/log 2022-11-25 17:08:36 +01:00
Kconfig.vcp Bluetooth: Audio: Specify bt_vcp_vol_rend API 2022-11-28 17:43:40 +01:00
Kconfig.vocs Bluetooth: Use Zephyr standard log system instead of bluetooth/common/log 2022-11-25 17:08:36 +01:00
mcc.c Bluetooth: Audio: Fix logging of object ID in mcc.c 2022-12-19 18:12:50 +01:00
mcs_internal.h subsystems: migrate includes to <zephyr/...> 2022-05-09 12:07:35 +02:00
mcs.c Bluetooth: Use Zephyr standard log system instead of bluetooth/common/log 2022-11-25 17:08:36 +01:00
media_proxy_internal.h Bluetooth: Use Zephyr standard log system instead of bluetooth/common/log 2022-11-25 17:08:36 +01:00
media_proxy.c Bluetooth: Use Zephyr standard log system instead of bluetooth/common/log 2022-11-25 17:08:36 +01:00
micp_mic_ctlr.c Bluetooth: Use Zephyr standard log system instead of bluetooth/common/log 2022-11-25 17:08:36 +01:00
micp_mic_dev.c Bluetooth: Use Zephyr standard log system instead of bluetooth/common/log 2022-11-25 17:08:36 +01:00
mpl_internal.h
mpl.c Bluetooth: Use Zephyr standard log system instead of bluetooth/common/log 2022-11-25 17:08:36 +01:00
pacs_internal.h Bluetooth: audio: pacs: Hotfix invalid PACS length 2022-11-04 10:00:00 +01:00
pacs.c Bluetooth: Audio: Add BT_AUDIO_CONTEXT_TYPE_UNSPECIFIED as default ctx 2023-01-17 13:17:03 +01:00
stream.c Bluetooth: audio: Improve stream coupling for CIS as the unicast client 2023-01-18 09:56:52 +01:00
stream.h Bluetooth: audio: Factor out bt_audio_iso pool 2022-11-04 08:55:12 +00:00
tbs_client.c Bluetooth: Audio: TBS: Fix read buffer 2023-01-09 12:18:55 +01:00
tbs_internal.h Bluetooth: Audio: TBS: Fix read buffer 2023-01-09 12:18:55 +01:00
tbs.c all: Fix "#if IS_ENABLED(CONFIG_FOO)" occurrences 2022-12-21 10:09:23 +01:00
unicast_client_internal.h Bluetooth: audio: Factor out bt_audio_iso pool 2022-11-04 08:55:12 +00:00
unicast_client.c Bluetooth: Audio: Fix ASCS CP subscribe in discovery 2023-02-06 22:05:15 +09:00
unicast_server.c Bluetooth: Use Zephyr standard log system instead of bluetooth/common/log 2022-11-25 17:08:36 +01:00
unicast_server.h Bluetooth: Audio: Remove caching ASE on release 2022-09-27 09:16:21 +00:00
vcp_internal.h Bluetooth: Audio: Use bt_vcp_vol_ctlr instead of bt_vcp 2022-11-28 17:43:40 +01:00
vcp_vol_ctlr.c Bluetooth: Audio: Use bt_vcp_vol_ctlr instead of bt_vcp 2022-11-28 17:43:40 +01:00
vcp_vol_rend.c Bluetooth: Audio: Vol rend use bt_vcp_vol_rend instead of bt_vcp 2022-11-28 17:43:40 +01:00
vocs_client.c Bluetooth: Audio: Rename VCS to VCP 2022-11-28 17:43:40 +01:00
vocs_internal.h
vocs.c Bluetooth: Audio: Ignore RFU VOCS location 2023-01-20 16:11:31 +01:00