fi
AM_CONDITIONAL([USE_PULSE], [test "x$USE_PULSE" = "xyes"])
+AC_ARG_ENABLE(policy, AC_HELP_STRING([--enable-policy], [enable use of samsung policy module in pulse]),
+[
+ case "${enableval}" in
+ yes) USE_POLICY=yes ; AC_MSG_NOTICE([using samsung policy]);;
+ no) USE_POLICY=no ; AC_MSG_NOTICE([not using samsung policy]);;
+ *) AC_MSG_ERROR(bad value ${enableval} for --enable-policy) ;;
+ esac
+ ],[USE_POLICY=no])
+
+AM_CONDITIONAL([USE_POLICY], [test "x$USE_POLICY" = "xyes"])
+if test "x$USE_POLICY" = "xyes"; then
+ AC_DEFINE([USE_POLICY], 1, [enable samsung policy])
+fi
+
dnl use security --------------------------------------------------------------------------
AC_ARG_ENABLE(security, AC_HELP_STRING([--enable-security], [using security]),
[
%bcond_with audio_session_manager_with_murphy
+%bcond_with pulseaudio_samsung_policy
+
Name: libmm-sound
Summary: MMSound Package contains client lib and sound_server binary
Version: 0.7.2e
%if %{with audio_session_manager_with_murphy}
CFLAGS="$CFLAGS -DMURPHY"; export CFLAGS
%endif
+%if %{with pulseaudio_samsung_policy}
+%configure --prefix=/usr --enable-pulse --enable-security --enable-policy
+%else
%configure --prefix=/usr --enable-pulse --enable-security
+%endif
make %{?_smp_mflags}
%install
#include <errno.h>
+#include "config.h"
#include "include/mm_sound_mgr_common.h"
#include "../include/mm_sound_common.h"
//#include <avsys-audio.h>
#include <pulse/pulseaudio.h>
+
+#ifdef USE_POLICY
#include <pulse/ext-policy.h>
+#endif
#define SUPPORT_MONO_AUDIO
vconf_get_bool(MONO_KEY, &key_value);
debug_msg ("key value = %d\n", key_value);
+#ifdef USE_POLICY
pa_operation_unref (pa_ext_policy_set_mono (pinfo->context, key_value, success_cb, NULL));
+#endif
}
int MMSoundMgrPulseHandleRegisterMonoAudio (void* pinfo)