bluez5: add spa_bt_iso_io that does the low-level part for ISO

Add factored out helper for ISO socket I/O.

ISO sockets need synchronization of writes and audio position for
different stream fds in the same isochronous group, and it's easier to
separate out the part that coordinates it.
This commit is contained in:
Pauli Virtanen 2023-03-25 16:58:27 +02:00 committed by Wim Taymans
parent 0ed124f0fb
commit cec050ac25
5 changed files with 494 additions and 1 deletions

View file

@ -522,6 +522,8 @@ void spa_bt_device_update_last_bluez_action_time(struct spa_bt_device *device);
#define spa_bt_device_add_listener(d,listener,events,data) \
spa_hook_list_append(&(d)->listener_list, listener, events, data)
struct spa_bt_iso_io;
struct spa_bt_sco_io;
struct spa_bt_sco_io *spa_bt_sco_io_create(struct spa_loop *data_loop, int fd, uint16_t read_mtu, uint16_t write_mtu);
@ -611,6 +613,7 @@ struct spa_bt_transport {
uint8_t bap_cig;
uint8_t bap_cis;
struct spa_bt_iso_io *iso_io;
struct spa_bt_sco_io *sco_io;
struct spa_source volume_timer;