[Tizen-submit] 6002: Changes to Tizen/libmm-sound

noreply at tizen.org noreply at tizen.org
Mon May 20 11:35:13 GMT 2013


Hi,
Prajwal Mohan have made the following changes to libmm-sound in project Tizen. Please review and accept ASAP.

Thank You,

[This message was auto-generated]

---

Request: #6002

  submit:       Tizen:build/libmm-sound(cleanup) -> Tizen


Message:
Submitter: Prajwal Mohan <prajwal.karur.mohan at intel.com>
Comments: submit/tizen/20130517.045052
Git project: platform/core/multimedia/libmm-sound
Tag: submit/tizen/20130517.045052
Commit: 1a25f27 [systemd] Move service to system

State:   accepted   2013-05-16T22:36:44 pkarurmo
Comment: Reviewed Ok

History: new        2013-05-16T21:48:12 tizenrobot
changes files:
--------------

++++++ new changes file:
--- libmm-sound.changes
+++ libmm-sound.changes
@@ -0,0 +1,2 @@
+* Thu Dec 6 2012 Vivian Zhang <vivian.zhang at intel.com> - 0.6.0
+- Support the case that speaker and wired_accessory are 2 separate alsa sinks in pulseaudio for IA build

old:
----
  libmm-sound-0.6.0.tar.gz

new:
----
  libmm-sound-0.7.2.tar.gz
  libmm-sound.changes
  sound-server.path
  sound-server.service

spec files:
-----------
--- libmm-sound.spec
+++ libmm-sound.spec
@@ -1,11 +1,13 @@
 Name:       libmm-sound
 Summary:    MMSound Package contains client lib and sound_server binary
-Version:    0.6.0
-Release:    17
-VCS:        platform/core/multimedia/libmm-sound#submit/tizen/20130517.015640-0-gebde123
+Version:    0.7.2
+Release:    0
+VCS:        platform/core/multimedia/libmm-sound#submit/tizen/20130517.045052-0-g1a25f27
 Group:      System/Libraries
-License:    LGPL
+License:    Apache-2.0
 Source0:    %{name}-%{version}.tar.gz
+Source1:    sound-server.service
+Source2:    sound-server.path
 Requires(pre): /bin/pidof
 Requires(post): /sbin/ldconfig
 Requires(post): /usr/bin/vconftool
@@ -58,18 +60,25 @@
 %build
 ./autogen.sh
 %ifarch %{arm}
-CFLAGS="%{optflags} -fvisibility=hidden -DMM_DEBUG_FLAG -DSEPARATE_EARPHONE_VOLUME -DEXPORT_API=\"__attribute__((visibility(\\\"default\\\")))\""; export CFLAGS
+CFLAGS="%{optflags} -fvisibility=hidden -DMM_DEBUG_FLAG -DEXPORT_API=\"__attribute__((visibility(\\\"default\\\")))\""; export CFLAGS
 %else
-CFLAGS="%{optflags} -fvisibility=hidden -DMM_DEBUG_FLAG -DSEPARATE_EARPHONE_VOLUME -DEXPORT_API=\"__attribute__((visibility(\\\"default\\\")))\""; export CFLAGS
+%if 0%{?simulator}
+CFLAGS="%{optflags} -fvisibility=hidden -DMM_DEBUG_FLAG -DEXPORT_API=\"__attribute__((visibility(\\\"default\\\")))\""; export CFLAGS
+%else
+CFLAGS="%{optflags} -fvisibility=hidden -DMM_DEBUG_FLAG -DSEPARATE_SPEAKER_AND_WIRED_ACCESSORY -DEXPORT_API=\"__attribute__((visibility(\\\"default\\\")))\""; export CFLAGS
+%endif
 %endif
 %configure --prefix=/usr --enable-pulse --enable-security
-make %{?jobs:-j%jobs}
+make %{?_smp_mflags}
 
 %install
-rm -rf %{buildroot}
 %make_install
+install -d %{buildroot}%{_libdir}/systemd/system/multi-user.target.wants
+install -m0644 %{SOURCE1} %{buildroot}%{_libdir}/systemd/system/
+install -m0644 %{SOURCE2} %{buildroot}%{_libdir}/systemd/system/
+ln -sf ../sound-server.path %{buildroot}%{_libdir}/systemd/system/multi-user.target.wants/sound-server.path
 
-
+# FIXME: remove after systemd is in
 mkdir -p %{buildroot}%{_sysconfdir}/rc.d/rc3.d
 mkdir -p %{buildroot}%{_sysconfdir}/rc.d/rc4.d
 mkdir -p %{buildroot}%{_sysconfdir}/rc.d/rc5.d
@@ -81,30 +90,23 @@
 %post
 /sbin/ldconfig
 
-# -DSEPARATE_EARPHONE_VOLUME
-/usr/bin/vconftool set -t int db/private/sound/volume/system 1285 -g 29
-/usr/bin/vconftool set -t int db/private/sound/volume/notification 1799 -g 29
-/usr/bin/vconftool set -t int db/private/sound/volume/alarm 1799 -g 29
-/usr/bin/vconftool set -t int db/private/sound/volume/ringtone 3341 -g 29
-/usr/bin/vconftool set -t int db/private/sound/volume/media 1799 -g 29

Please refer to OBS webUI for more details about this SR.


More information about the Tizen-submit mailing list