loopback: add volume type of sink-input 72/96172/1 accepted/tizen/3.0/ivi/20161109.124716 accepted/tizen/3.0/mobile/20161109.124257 accepted/tizen/3.0/tv/20161109.124526 accepted/tizen/3.0/wearable/20161109.124626 submit/tizen_3.0/20161108.053851
authorKimJeongYeon <jeongyeon.kim@samsung.com>
Fri, 14 Oct 2016 06:11:50 +0000 (15:11 +0900)
committerSeungbae Shin <seungbae.shin@samsung.com>
Tue, 8 Nov 2016 05:32:06 +0000 (14:32 +0900)
To providing volume control of loopback sound, add type of volume property to sink-input as "media".
Therefore loopback volume will be controlled along with "media" type. This patch is TV profile only.

[Version] 5.0.98
[Profile] TV
[Issue Type] Product feature

Signed-off-by: KimJeongYeon <jeongyeon.kim@samsung.com>
Change-Id: I34681ffe18f109b10eb306c4a015e3666e6392c1

packaging/pulseaudio.spec
src/modules/module-loopback.c

index 0b1aee1..052eae1 100644 (file)
@@ -11,7 +11,7 @@
 Name:             pulseaudio
 Summary:          Improved Linux sound server
 Version:          5.0
-Release:          97
+Release:          98
 Group:            Multimedia/Audio
 License:          LGPL-2.1+
 URL:              http://pulseaudio.org
index b3b9557..3233855 100644 (file)
@@ -873,6 +873,11 @@ int pa__init(pa_module *m) {
     if (sink_dont_move)
         sink_input_data.flags |= PA_SINK_INPUT_DONT_MOVE;
 
+#if defined(__TIZEN__) && defined(TIZEN_FEATURE_TV_PROD)
+    /* Set volume type of stream */
+    pa_proplist_sets(sink_input_data.proplist, PA_PROP_MEDIA_TIZEN_VOLUME_TYPE, "media");
+#endif
+
     pa_sink_input_new(&u->sink_input, m->core, &sink_input_data);
     pa_sink_input_new_data_done(&sink_input_data);