loopback: add volume type of sink-input 57/92257/1 accepted/tizen/common/20161109.140230 accepted/tizen/ivi/20161109.002819 accepted/tizen/mobile/20161109.002427 accepted/tizen/tv/20161109.002640 accepted/tizen/wearable/20161109.002735 submit/tizen/20161108.054351
authorKimJeongYeon <jeongyeon.kim@samsung.com>
Fri, 14 Oct 2016 06:11:50 +0000 (15:11 +0900)
committerKimJeongYeon <jeongyeon.kim@samsung.com>
Fri, 14 Oct 2016 06:57:15 +0000 (15:57 +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);