zephyr/subsys/bluetooth/audio/shell
Emil Gydesen d17cde46d1 Bluetooth: BAP: Shell: Improve handling of PSN when sending
Previously the calculation of the PSN was done using
just a timer. This would not work correctly when
attempting to send multiple packets in a single SDU
interval (e.g. to enqueue 2 or more).

Previously we only ever attempted to send 1 packet in
the `sent` callback but scheduling the work item. However
in the case that the `sent` callback was called twice
before the work item had been triggered (possible due
to the priority of the RX thread being higher than the
system workqueue thread). This has been modified so that
if we can enqueue more packets in the lc3_audio_send_data
function, we re-enqueue the work item. We re-enqueue rather
than sending multiple in a single call to avoid blocking
other items on the system workqueue from being scheduled.
This could cause possible missed intervals (if other workqueue
items are processed), but it should be OK from a ISO perspective,
and the new PSN calculator handles this much better.

Signed-off-by: Emil Gydesen <emil.gydesen@nordicsemi.no>
2023-07-07 14:53:24 +02:00
..
audio.h Bluetooth: BAP: Shell: Improve handling of PSN when sending 2023-07-07 14:53:24 +02:00
bap_broadcast_assistant.c Bluetooth: Audio: Rename bt_codec to bt_audio_codec_{cap, conf, data} 2023-06-30 12:39:50 +02:00
bap_scan_delegator.c Bluetooth: BAP: Filter PA data duplicates by default 2023-06-30 16:12:13 +02:00
bap.c Bluetooth: BAP: Shell: Improve handling of PSN when sending 2023-07-07 14:53:24 +02:00
cap_acceptor.c Bluetooth: Audio: Shell: Add CAP Acceptor Set Member AD data 2023-03-24 17:35:11 +00:00
cap_initiator.c Bluetooth: Audio: Rename bt_codec to bt_audio_codec_{cap, conf, data} 2023-06-30 12:39:50 +02:00
CMakeLists.txt Bluetooth: TMAP: Add TMAP shell module 2023-06-30 16:10:51 +02:00
csip_set_coordinator.c Bluetooth: CSIP: Shell: Fix discover_members 2023-06-29 21:05:02 +02:00
csip_set_member.c
has_client.c
has.c Bluetooth: Audio: Make HAS optional notify characteristics optional 2023-05-26 09:09:06 -04:00
mcc.c Bluetooth: MCC: Shell: Format IDs as 64-bit (llu) 2023-06-22 06:05:57 -04:00
media_controller.c Bluetooth: Audio: Shell: Fix long/int32_t value checks 2023-06-02 18:56:17 -04:00
micp_mic_ctlr.c
micp_mic_dev.c Bluetooth: MICP: Shell: Add missing "mic_dev" for MICP cmds 2023-04-19 17:14:30 +02:00
mpl.c
tbs_client.c
tbs.c
tmap.c Bluetooth: TMAP: Add TMAP shell module 2023-06-30 16:10:51 +02:00
vcp_vol_ctlr.c
vcp_vol_rend.c