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 --- Android.bp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'Android.bp') diff --git a/Android.bp b/Android.bp index 0d4122d..11be745 100644 --- a/Android.bp +++ b/Android.bp @@ -5,6 +5,9 @@ cc_library { srcs: [ "src/mixer.c", "src/pcm.c", + "src/pcm_hw.c", + "src/pcm_plugin.c", + "src/snd_card_plugin.c", ], cflags: ["-Werror", "-Wno-macro-redefined"], export_include_dirs: ["include"], @@ -15,6 +18,8 @@ cc_library { enabled: false, }, }, + + system_shared_libs: ["libc", "libdl"], } cc_binary { -- cgit v1.2.3