mbox series

[BlueZ,0/1] bap: Replace global bcast_pa_requests with a queue for each adapter

Message ID 20240408142724.12511-1-vlad.pruteanu@nxp.com (mailing list archive)
Headers show
Series bap: Replace global bcast_pa_requests with a queue for each adapter | expand

Message

Vlad Pruteanu April 8, 2024, 2:27 p.m. UTC
This patch replaces the old global implementation of the bcast_pa_requests
queue with one that stores the queue per adapter. The pa_timer has also
been modified to be per adapter. The timer is now stopped when the queue is
empty. The bcast_pa_requests queue, along with the pa_timer_id are now
stored in the bap_data structure. Each adapter already has a coresponding
entry in the sessions queue. Operations on the old bcast_pa_requests have
been modified to be made on the appropriate bap_data entry.

The bap_bcast_remove function has also been updated to remove from the
queue entries of devices that were freed.

Vlad Pruteanu (1):
  bap: Replace global bcast_pa_requests with a queue for each adapter

 profiles/audio/bap.c | 109 +++++++++++++++++++++++++++++++------------
 1 file changed, 79 insertions(+), 30 deletions(-)