Parent: 7b10e72de6f41585f087e6fc338106b44d3e69c9
Author: Pauli Virtanen <pav@iki.fi>
Committer: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Date: 2023-07-05 20:48:31
Tree: 4de9bfb5b2a11a260d171d2b854c06649e35268e
bap: wait for CIG to become configurable before recreating CIS ISO sockets cannot be reconnected before all sockets in the same CIG have been closed, if the CIG was previously active. Keep track which endpoints have active CIG, and postpone connecting CIS until their CIG is no longer active. This addresses getting EBUSY from connect() when multiple CIS in the same CIG move streaming -> qos at the same time, which disconnects CIS and recreates them. The EBUSY originates from COMMAND_DISALLOWED response to Set CIG Parameters. This requires the kernel side do the Disconnect CIS / Remove CIG / Set CIG Parameters HCI command steps in the right order, when all old sockets are closed first before connecting new ones.
Diffstat
| M | profiles/audio/bap.c | | | 107 | ++++++++++++++++++++++++++++++++++++++++- - - - - - - - - - |
1 files changed, 97 insertions(+), 10 deletions(-)