bluez5: backend-native: don't hardcode available HFP codecs

Remove most hardcoding of possible HFP codecs. Instead, get what is
available from codec lists.
This commit is contained in:
Pauli Virtanen 2025-06-08 01:07:39 +03:00 committed by Wim Taymans
parent 83f6d719b1
commit 9f34e962a6
2 changed files with 150 additions and 79 deletions

View file

@ -109,10 +109,8 @@ if get_option('spa-plugins').allowed()
mm_dep = dependency('ModemManager', version : '>= 1.10.0', required : get_option('bluez5-backend-native-mm'))
summary({'ModemManager': mm_dep.found()}, bool_yn: true, section: 'Bluetooth backends')
endif
cdata.set('HAVE_LC3', get_option('bluez5-codec-lc3').allowed() and lc3_dep.found())
g722_codec_option = get_option('bluez5-codec-g722')
summary({'G722': g722_codec_option.allowed()}, bool_yn: true, section: 'Bluetooth audio codecs')
cdata.set('HAVE_G722', g722_codec_option.allowed())
endif
have_vulkan = false