],[USE_PRELINK=no])
AM_CONDITIONAL([USE_PRELINK], [test "x$USE_PRELINK" = "xyes"])
+#### light-weight ipc support ####
+AC_ARG_ENABLE(lwipc, AC_HELP_STRING([--enable-lwipc], [enable light weight ipc]),
+[
+ case "${enableval}" in
+ yes) USE_LWIPC=yes ;;
+ no) USE_LWIPC=no ;;
+ *) AC_MSG_ERROR(bad value ${enableval} for --enable-lwipc) ;;
+ esac
+ ],[USE_LWIPC=no])
+if test "x$USE_LWIPC" = "xyes"; then
+PKG_CHECK_MODULES(LWIPC, lwipc)
+AC_SUBST(LWIPC_CFLAGS)
+AC_SUBST(LWIPC_LIBS)
+fi
+AM_CONDITIONAL([USE_LWIPC], [test "x$USE_LWIPC" = "xyes"])
+
#### Database support ####
AC_ARG_WITH([database],
Name: pulseaudio
Summary: Improved Linux sound server
Version: 5.0
-Release: 85
+Release: 86
Group: Multimedia/Audio
License: LGPL-2.1+
URL: http://pulseaudio.org
%if %{with pulseaudio_dlog}
BuildRequires: pkgconfig(dlog)
%endif
+%if "%{?TIZEN_PRODUCT_TV}" == "1"
+BuildRequires: pkgconfig(lwipc)
+%endif
Requires: udev
Requires(post): /sbin/ldconfig
Requires(postun): /sbin/ldconfig
%endif
%if "%{?TIZEN_PRODUCT_TV}" == "1"
--enable-prelink \
+ --enable-lwipc \
%endif
--with-udev-rules-dir=%{udev_dir}/rules.d \
--with-system-user=pulse \
# This is needed because automake doesn't properly expand the foreach below
pulseaudio_DEPENDENCIES = libpulsecore-@PA_MAJORMINOR@.la libpulsecommon-@PA_MAJORMINOR@.la libpulse.la $(PREOPEN_LIBS)
+if USE_LWIPC
+pulseaudio_CFLAGS += $(LWIPC_CFLAGS) -DUSE_LWIPC
+pulseaudio_LDADD += $(LWIPC_LIBS)
+endif
+
if HAVE_DBUS
pulseaudio_CFLAGS += $(DBUS_CFLAGS)
pulseaudio_SOURCES += daemon/server-lookup.c daemon/server-lookup.h
#include <pulsecore/cpu-x86.h>
#include <pulsecore/cpu-orc.h>
+#ifdef USE_LWIPC
+#include <lwipc.h>
+#endif
#include "cmdline.h"
#include "cpulimit.h"
#include "daemon-conf.h"
#ifdef __TIZEN__
#define PA_READY "/tmp/.pa_ready"
#ifdef TIZEN_TV
+#ifdef USE_LWIPC
+#define PULSEAUDIO_READY "pulseaudio_ready"
+#else
#define PULSEAUDIO_READY "/tmp/.pulseaudio_ready"
#endif
+#endif
#endif /* __TIZEN__ */
#ifdef HAVE_LIBWRAP
/* Only one instance of these variables */
if ((fd_pa_ready = creat(PA_READY, 0644)) != -1)
close(fd_pa_ready);
#ifdef TIZEN_TV
+#ifdef USE_LWIPC
+ if (LwipcEventDone(PULSEAUDIO_READY) < 0)
+ pa_log_error("cannot create PULSEAUDIO_READY(pulseaudio_ready)");
+ else
+ pa_log_warn("PULSEAUDIO_READY(%s) event was created", PULSEAUDIO_READY);
+#else
if ((fd_pulseaudio_ready = creat(PULSEAUDIO_READY, 0644)) != -1) {
pa_log_warn("PULSEAUDIO_READY(%s) file was created", PULSEAUDIO_READY);
close(fd_pulseaudio_ready);
- } else {
+ } else
pa_log_error("cannot create PULSEAUDIO_READY(/tmp/.pulseaudio_ready)");
- }
+#endif
#endif
#endif /* __TIZEN__ */
retval = 0;