hci_get_sco_packet_length_for_connection() function
Get SCO payload length for existing SCO connection and current SCO Voice setting
Return value
Length of SCO payload in bytes (not audio frames) incl. 3 byte header
Notes
Using SCO packets of the exact length is required for USB transfer in general and some H4 controllers as well