[PATCH 1/6] Alsa support for Maemo SDK (n770): Build configuration

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This patch file changes the build configuration files to add alsa-dsp
plugin to communicate
with n770 system.

Signed-off-by: Eduardo Valentin <eduardo.valentin@xxxxxxxxxxx>

diffstat:
Makefile.am       |    2 +-
configure.in      |   10 ++++++++++
maemo/Makefile.am |   15 +++++++++++++++
3 files changed, 26 insertions(+), 1 deletion(-)


--
Eduardo Bezerra Valentin
diff -pruN a/Makefile.am b/Makefile.am
--- a/Makefile.am	2006-09-12 09:52:25.000000000 -0400
+++ b/Makefile.am	2006-11-01 12:03:14.000000000 -0400
@@ -11,7 +11,7 @@ if HAVE_AVCODEC
 A52DIR = a52
 endif
 
-SUBDIRS = oss mix $(JACKDIR) $(PULSEDIR) $(SAMPLERATEDIR) $(A52DIR) doc
+SUBDIRS = oss mix $(JACKDIR) $(PULSEDIR) $(SAMPLERATEDIR) $(A52DIR) maemo doc
 EXTRA_DIST = hgcompile version COPYING.GPL
 AUTOMAKE_OPTIONS = foreign
 
diff -pruN a/configure.in b/configure.in
--- a/configure.in	2006-09-12 09:52:25.000000000 -0400
+++ b/configure.in	2006-11-01 12:03:23.000000000 -0400
@@ -3,6 +3,8 @@ AC_INIT(oss/pcm_oss.c)
 AM_INIT_AUTOMAKE(alsa-plugins, 1.0.13rc2)
 AC_PREFIX_DEFAULT(/usr)
 
+AC_CONFIG_HEADERS(config.h)
+
 AC_PROG_CC
 AC_PROG_INSTALL
 AC_DISABLE_STATIC
@@ -22,6 +24,13 @@ AM_CONDITIONAL(HAVE_PULSE, test x$HAVE_P
 PKG_CHECK_MODULES(samplerate, [samplerate], [HAVE_SAMPLERATE=yes], [HAVE_SAMPLERATE=no])
 AM_CONDITIONAL(HAVE_SAMPLERATE, test x$HAVE_SAMPLERATE = xyes)
 
+PKG_CHECK_MODULES(DBUS, [dbus-1], [HAVE_DBUS=yes], [HAVE_DBUS=no])
+AM_CONDITIONAL(HAVE_DBUS, test x$HAVE_DBUS = xyes)
+
+if test "$HAVE_DBUS" = "yes"; then
+        AC_DEFINE(USE_RESOURCE_MANAGER, 1,"Use dbus server as a resouce manager")
+fi
+
 AC_ARG_WITH([avcodec-includedir],
 	[--with-avcodec-includedir=dir    AVcodec include directory],
 	[AVCODEC_CFLAGS="-I$withval"], [AVCODEC_CFLAGS=""])
@@ -53,5 +62,6 @@ AC_OUTPUT([
 	mix/Makefile
 	rate/Makefile
 	a52/Makefile
+	maemo/Makefile
 	doc/Makefile
 ])
diff -pruN a/maemo/Makefile.am b/maemo/Makefile.am
--- a/maemo/Makefile.am	1969-12-31 20:00:00.000000000 -0400
+++ b/maemo/Makefile.am	2006-11-01 12:03:14.000000000 -0400
@@ -0,0 +1,15 @@
+asound_module_pcm_alsa_dsp_LTLIBRARIES = libasound_module_pcm_alsa_dsp.la
+asound_module_ctl_dsp_ctl_LTLIBRARIES = libasound_module_ctl_dsp_ctl.la
+
+asound_module_pcm_alsa_dspdir = $(libdir)/alsa-lib
+asound_module_ctl_dsp_ctldir = $(libdir)/alsa-lib
+
+AM_CFLAGS = -Wall -fPIC -DPIC -O2 @ALSA_CFLAGS@ $(DBUS_CFLAGS)
+AM_LDFLAGS = -shared -lm -ldl -lpthread -module -avoid-version -export-dynamic $(DBUS_LIBS)
+
+libasound_module_pcm_alsa_dsp_la_SOURCES = dsp-protocol.c alsa-dsp.c
+libasound_module_pcm_alsa_dsp_la_LIBADD = @ALSA_LIBS@
+
+libasound_module_ctl_dsp_ctl_la_SOURCES = dsp-protocol.c dsp-ctl.c
+libasound_module_ctl_dsp_ctl_la_LIBADD = @ALSA_LIBS@
+
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Alsa-devel mailing list
Alsa-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/alsa-devel

[Index of Archives]     [ALSA User]     [Linux Audio Users]     [Kernel Archive]     [Asterisk PBX]     [Photo Sharing]     [Linux Sound]     [Video 4 Linux]     [Gimp]     [Yosemite News]

  Powered by Linux