mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-29 05:40:27 -04:00
modules: add ffado driver module
This commit is contained in:
parent
6a0df592f2
commit
3c44634dd8
4 changed files with 1069 additions and 0 deletions
|
|
@ -405,6 +405,9 @@ lilv_lib = dependency('lilv-0', required: get_option('lv2'))
|
||||||
summary({'lilv (for lv2 plugins)': lilv_lib.found()}, bool_yn: true)
|
summary({'lilv (for lv2 plugins)': lilv_lib.found()}, bool_yn: true)
|
||||||
cdata.set('HAVE_LILV', lilv_lib.found())
|
cdata.set('HAVE_LILV', lilv_lib.found())
|
||||||
|
|
||||||
|
libffado_dep = dependency('libffado', required: get_option('libffado'))
|
||||||
|
summary({'ffado': libffado_dep.found()}, bool_yn: true)
|
||||||
|
|
||||||
check_functions = [
|
check_functions = [
|
||||||
['gettid', '#include <unistd.h>', ['-D_GNU_SOURCE'], []],
|
['gettid', '#include <unistd.h>', ['-D_GNU_SOURCE'], []],
|
||||||
['memfd_create', '#include <sys/mman.h>', ['-D_GNU_SOURCE'], []],
|
['memfd_create', '#include <sys/mman.h>', ['-D_GNU_SOURCE'], []],
|
||||||
|
|
|
||||||
|
|
@ -322,3 +322,7 @@ option('opus',
|
||||||
description: 'Enable code that depends on opus',
|
description: 'Enable code that depends on opus',
|
||||||
type: 'feature',
|
type: 'feature',
|
||||||
value: 'auto')
|
value: 'auto')
|
||||||
|
option('libffado',
|
||||||
|
description: 'Enable code that depends on libffado',
|
||||||
|
type: 'feature',
|
||||||
|
value: 'auto')
|
||||||
|
|
|
||||||
|
|
@ -14,6 +14,7 @@ module_sources = [
|
||||||
'module-example-sink.c',
|
'module-example-sink.c',
|
||||||
'module-example-source.c',
|
'module-example-source.c',
|
||||||
'module-fallback-sink.c',
|
'module-fallback-sink.c',
|
||||||
|
'module-ffado-driver.c',
|
||||||
'module-filter-chain.c',
|
'module-filter-chain.c',
|
||||||
'module-jack-tunnel.c',
|
'module-jack-tunnel.c',
|
||||||
'module-jackdbus-detect.c',
|
'module-jackdbus-detect.c',
|
||||||
|
|
@ -185,6 +186,19 @@ endif
|
||||||
|
|
||||||
summary({'jack-tunnel': build_module_jack_tunnel}, bool_yn: true, section: 'Optional Modules')
|
summary({'jack-tunnel': build_module_jack_tunnel}, bool_yn: true, section: 'Optional Modules')
|
||||||
|
|
||||||
|
build_module_ffado_driver = libffado_dep.found()
|
||||||
|
if build_module_ffado_driver
|
||||||
|
pipewire_module_jack_tunnel = shared_library('pipewire-module-ffado-driver',
|
||||||
|
[ 'module-ffado-driver.c' ],
|
||||||
|
include_directories : [configinc],
|
||||||
|
install : true,
|
||||||
|
install_dir : modules_install_dir,
|
||||||
|
install_rpath: modules_install_dir,
|
||||||
|
dependencies : [mathlib, dl_lib, pipewire_dep, libffado_dep],
|
||||||
|
)
|
||||||
|
endif
|
||||||
|
|
||||||
|
summary({'ffado-driver': build_module_ffado_driver}, bool_yn: true, section: 'Optional Modules')
|
||||||
|
|
||||||
|
|
||||||
pipewire_module_profiler = shared_library('pipewire-module-profiler',
|
pipewire_module_profiler = shared_library('pipewire-module-profiler',
|
||||||
|
|
|
||||||
1048
src/modules/module-ffado-driver.c
Normal file
1048
src/modules/module-ffado-driver.c
Normal file
File diff suppressed because it is too large
Load diff
Loading…
Add table
Add a link
Reference in a new issue