mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-31 22:25:38 -04:00
bluez5: backend-native: Add a ModemManager dependency
Some Linux phones doesn't use oFono but ModemManager to control the modem.
This commit is contained in:
parent
05a133f5b5
commit
28533cb615
3 changed files with 12 additions and 0 deletions
|
|
@ -92,6 +92,10 @@ option('bluez5-backend-hfp-native',
|
||||||
description: 'Enable HFP in native backend in bluez5 spa plugin',
|
description: 'Enable HFP in native backend in bluez5 spa plugin',
|
||||||
type: 'feature',
|
type: 'feature',
|
||||||
value: 'enabled')
|
value: 'enabled')
|
||||||
|
option('bluez5-backend-native-mm',
|
||||||
|
description: 'Enable ModemManager in native backend in bluez5 spa plugin',
|
||||||
|
type: 'feature',
|
||||||
|
value: 'disabled')
|
||||||
option('bluez5-backend-ofono',
|
option('bluez5-backend-ofono',
|
||||||
description: 'Enable oFono HFP backend in bluez5 spa plugin (no dependency on oFono)',
|
description: 'Enable oFono HFP backend in bluez5 spa plugin (no dependency on oFono)',
|
||||||
type: 'feature',
|
type: 'feature',
|
||||||
|
|
|
||||||
|
|
@ -66,6 +66,10 @@ if get_option('spa-plugins').allowed()
|
||||||
summary({'Opus': opus_dep.found()}, bool_yn: true, section: 'Bluetooth audio codecs')
|
summary({'Opus': opus_dep.found()}, bool_yn: true, section: 'Bluetooth audio codecs')
|
||||||
lc3_dep = dependency('lc3', required : get_option('bluez5-codec-lc3'))
|
lc3_dep = dependency('lc3', required : get_option('bluez5-codec-lc3'))
|
||||||
summary({'LC3': lc3_dep.found()}, bool_yn: true, section: 'Bluetooth audio codecs')
|
summary({'LC3': lc3_dep.found()}, bool_yn: true, section: 'Bluetooth audio codecs')
|
||||||
|
if get_option('bluez5-backend-hsp-native').allowed() or get_option('bluez5-backend-hfp-native').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
|
||||||
endif
|
endif
|
||||||
avcodec_dep = dependency('libavcodec', required: get_option('ffmpeg'))
|
avcodec_dep = dependency('libavcodec', required: get_option('ffmpeg'))
|
||||||
jack_dep = dependency('jack', version : '>= 1.9.10', required: get_option('jack'))
|
jack_dep = dependency('jack', version : '>= 1.9.10', required: get_option('jack'))
|
||||||
|
|
|
||||||
|
|
@ -10,6 +10,7 @@ cdata.set('HAVE_BLUEZ_5_BACKEND_NATIVE',
|
||||||
get_option('bluez5-backend-hfp-native').allowed())
|
get_option('bluez5-backend-hfp-native').allowed())
|
||||||
cdata.set('HAVE_BLUEZ_5_BACKEND_HSP_NATIVE', get_option('bluez5-backend-hsp-native').allowed())
|
cdata.set('HAVE_BLUEZ_5_BACKEND_HSP_NATIVE', get_option('bluez5-backend-hsp-native').allowed())
|
||||||
cdata.set('HAVE_BLUEZ_5_BACKEND_HFP_NATIVE', get_option('bluez5-backend-hfp-native').allowed())
|
cdata.set('HAVE_BLUEZ_5_BACKEND_HFP_NATIVE', get_option('bluez5-backend-hfp-native').allowed())
|
||||||
|
cdata.set('HAVE_BLUEZ_5_BACKEND_NATIVE_MM', get_option('bluez5-backend-native-mm').allowed())
|
||||||
cdata.set('HAVE_BLUEZ_5_BACKEND_OFONO', get_option('bluez5-backend-ofono').allowed())
|
cdata.set('HAVE_BLUEZ_5_BACKEND_OFONO', get_option('bluez5-backend-ofono').allowed())
|
||||||
cdata.set('HAVE_BLUEZ_5_BACKEND_HSPHFPD', get_option('bluez5-backend-hsphfpd').allowed())
|
cdata.set('HAVE_BLUEZ_5_BACKEND_HSPHFPD', get_option('bluez5-backend-hsphfpd').allowed())
|
||||||
cdata.set('HAVE_BLUEZ_5_HCI', dependency('bluez', version: '< 6', required: false).found())
|
cdata.set('HAVE_BLUEZ_5_HCI', dependency('bluez', version: '< 6', required: false).found())
|
||||||
|
|
@ -38,6 +39,9 @@ if get_option('bluez5-backend-hsp-native').allowed() or get_option('bluez5-backe
|
||||||
if libusb_dep.found()
|
if libusb_dep.found()
|
||||||
bluez5_deps += libusb_dep
|
bluez5_deps += libusb_dep
|
||||||
endif
|
endif
|
||||||
|
if mm_dep.found()
|
||||||
|
bluez5_deps += mm_dep
|
||||||
|
endif
|
||||||
bluez5_sources += ['backend-native.c']
|
bluez5_sources += ['backend-native.c']
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue