From: KimJeongYeon Date: Fri, 14 Oct 2016 06:11:50 +0000 (+0900) Subject: loopback: add volume type of sink-input X-Git-Tag: accepted/tizen/3.0/ivi/20161109.124716^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=4b413d612bde20acb69e78cf331f7c4095a79ffe;p=platform%2Fupstream%2Fpulseaudio.git loopback: add volume type of sink-input 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 Change-Id: I34681ffe18f109b10eb306c4a015e3666e6392c1 --- diff --git a/packaging/pulseaudio.spec b/packaging/pulseaudio.spec index 0b1aee1..052eae1 100644 --- a/packaging/pulseaudio.spec +++ b/packaging/pulseaudio.spec @@ -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 diff --git a/src/modules/module-loopback.c b/src/modules/module-loopback.c index b3b9557..3233855 100644 --- a/src/modules/module-loopback.c +++ b/src/modules/module-loopback.c @@ -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);