bluez5: enable duplex for aptx-ll

aptX-LL sink devices may send back mSBC encoded data corresponding to
microphone input.  It appears to be enabled when the bidirectional link
is set in the caps, and the device also supports this.

Implement mSBC decoding in the duplex channel.

Tested to be working on Avantree Aria Pro.
This commit is contained in:
Pauli Virtanen 2021-08-18 17:19:05 +03:00
parent 623b6df8a2
commit dedc08cdf8
7 changed files with 208 additions and 4 deletions

View file

@ -1946,6 +1946,7 @@ int64_t spa_bt_transport_get_delay_nsec(struct spa_bt_transport *t)
case SPA_BLUETOOTH_AUDIO_CODEC_LDAC:
return 175 * SPA_NSEC_PER_MSEC;
case SPA_BLUETOOTH_AUDIO_CODEC_APTX_LL:
case SPA_BLUETOOTH_AUDIO_CODEC_APTX_LL_DUPLEX:
return 40 * SPA_NSEC_PER_MSEC;
default:
break;