aboutsummaryrefslogtreecommitdiff
path: root/src/Makefile
diff options
context:
space:
mode:
authorBhalchandra Gajare <gajare@codeaurora.org>2019-09-04 15:32:35 -0700
committerRohit kumar <rohitkr@codeaurora.org>2020-02-07 12:16:27 +0530
commit986b8e338782a4c8aab83e626949ed5457eb5b69 (patch)
tree5ca7b4cb0bb6c02f8da26e043d7b28c4ab3ee084 /src/Makefile
parent1923b9b0fd7116ba235a812ef00fd6c7c9ed363d (diff)
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 <gajare@codeaurora.org> Signed-off-by: Rohit kumar <rohitkr@codeaurora.org>
Diffstat (limited to 'src/Makefile')
-rw-r--r--src/Makefile8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/Makefile b/src/Makefile
index aa00484..b278f47 100644
--- a/src/Makefile
+++ b/src/Makefile
@@ -15,7 +15,7 @@ INCLUDE_DIRS = -I ../include
override CFLAGS := $(WARNINGS) $(INCLUDE_DIRS) -fPIC $(CFLAGS)
VPATH = ../include/tinyalsa
-OBJECTS = limits.o mixer.o pcm.o
+OBJECTS = limits.o mixer.o pcm.o pcm_plugin.o pcm_hw.o snd_card_plugin.o
LIBVERSION_MAJOR = $(TINYALSA_VERSION_MAJOR)
LIBVERSION = $(TINYALSA_VERSION)
@@ -25,10 +25,16 @@ all: libtinyalsa.a libtinyalsa.so
pcm.o: pcm.c pcm.h
+pcm_plugin.o: pcm_plugin.c pcm_io.h
+
+pcm_hw.o: pcm_hw.c pcm_io.h
+
limits.o: limits.c limits.h
mixer.o: mixer.c mixer.h
+snd_card_plugin.o: snd_card_plugin.c snd_card_plugin.h
+
libtinyalsa.a: $(OBJECTS)
$(AR) $(ARFLAGS) $@ $^