From 986b8e338782a4c8aab83e626949ed5457eb5b69 Mon Sep 17 00:00:00 2001 From: Bhalchandra Gajare Date: Wed, 4 Sep 2019 15:32:35 -0700 Subject: tinyalsa: add support for PCM plugins Update the pcm framework to support plugins. Resolve the pcm device node to be either kernel device or virtual device and setup function pointers accordingly. Implement framework functionality for pcm_plugin.c for ease of plugin development. Plugin itself is compiled as shared object (.so) and dynamically linked from pcm_plugin.c. Signed-off-by: Bhalchandra Gajare Signed-off-by: Rohit kumar --- meson.build | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'meson.build') diff --git a/meson.build b/meson.build index abbca8e..4510ef0 100644 --- a/meson.build +++ b/meson.build @@ -4,11 +4,17 @@ project ('tinyalsa', 'c', tinyalsa_includes = include_directories('.', 'include') +cc = meson.get_compiler('c') + +# Dependency on libdl +dl_dep = cc.find_library('dl') + tinyalsa = library('tinyalsa', - 'src/mixer.c', 'src/pcm.c', + 'src/mixer.c', 'src/pcm.c', 'src/pcm_hw.c', 'src/pcm_plugin.c', 'src/snd_card_plugin.c', include_directories: tinyalsa_includes, version: meson.project_version(), - install: true) + install: true, + dependencies: dl_dep) # For use as a Meson subproject tinyalsa_dep = declare_dependency(link_with: tinyalsa, -- cgit v1.2.3