bluez5: backend-native: use quirks + usb adapter caps for checking msbc

Use the quirks database to check whether to enable MSBC codec for each
device.

If quirks don't allow ALT1 mode for an USB adapter, check whether the
adapter has an usable ALT6 mode and disable MSBC if not.
This commit is contained in:
Pauli Virtanen 2021-06-13 21:52:41 +03:00
parent b57ae8c2a6
commit 5e0b63b149
4 changed files with 157 additions and 22 deletions

View file

@ -55,6 +55,9 @@ if fdk_aac_dep.found()
endif
if not get_option('bluez5-backend-hsp-native').disabled() or not get_option('bluez5-backend-hfp-native').disabled()
if libusb_dep.found()
bluez5_deps += libusb_dep
endif
bluez5_sources += ['backend-native.c']
endif