sink: Keep original value of avoid-resampling option 59/180759/1 accepted/tizen/unified/20180611.015408 submit/tizen/20180605.044152 submit/tizen/20180607.021137
authorSangchul Lee <sc11.lee@samsung.com>
Mon, 4 Jun 2018 04:12:25 +0000 (13:12 +0900)
committerSangchul Lee <sc11.lee@samsung.com>
Mon, 4 Jun 2018 04:12:25 +0000 (13:12 +0900)
This option value is set initially from daemon.conf or modules.
Since we will manipulate this option dynamically, it is needed
to store the original value which will be used later on.
e.g.) a failure of the processing

[Version] 11.1-40
[Issue Type] Enhacement

Change-Id: I6d6a141696b41002c4490dbf33416bd299832203
Signed-off-by: Sangchul Lee <sc11.lee@samsung.com>
packaging/pulseaudio.spec
src/pulsecore/sink.c
src/pulsecore/sink.h

index 7444082..e784b2a 100644 (file)
@@ -3,7 +3,7 @@
 Name:             pulseaudio
 Summary:          Improved Linux sound server
 Version:          11.1
-Release:          39
+Release:          40
 Group:            Multimedia/Audio
 License:          LGPL-2.1
 URL:              http://pulseaudio.org
index 5d3445b..ae71125 100644 (file)
@@ -338,6 +338,7 @@ pa_sink* pa_sink_new(
         s->alternate_sample_rate = s->core->alternate_sample_rate;
 #ifdef __TIZEN__
     s->avoid_resampling = data->avoid_resampling;
+    s->origin_avoid_resampling = data->avoid_resampling;
     s->selected_sample_rate = s->default_sample_rate;
 #endif
 
index 0bd9a2c..800b7d0 100644 (file)
@@ -87,6 +87,7 @@ struct pa_sink {
     bool avoid_resampling:1;
     uint32_t *supported_sample_rates;
     uint32_t selected_sample_rate;
+    bool origin_avoid_resampling;
 #endif
 
     pa_idxset *inputs;