Skip to content
  • Igor Kovalenko's avatar
    bluetooth: mSBC: Decode packets larger than mSBC frame · 9916f0ea
    Igor Kovalenko authored and PulseAudio Marge Bot's avatar PulseAudio Marge Bot committed
    Bluetooth transport layer already allows for packets larger than mSBC frame, and
    there are up to 1 + MTU / (mSBC packet size) complete frames to be decoded from
    each incoming SCO packet.
    
    Now decoder fails when there is more than one complete frame available, which
    could happen if MTU size is larger than 1.5 * (mSBC packet size) = 90
    
    Fix this by adding a loop over avialable frames, and adjust decoded buffer size
    to allow decoding up to 1 + MTU / (mSBC packet size) frames at once.
    
    Part-of: <!706>
    9916f0ea