sink-input: adjust log level of empty-pop operations 34/309034/1 accepted/tizen_unified accepted/tizen_unified_x tizen accepted/tizen/unified/20240409.135559 accepted/tizen/unified/20240409.155903 accepted/tizen/unified/x/20240411.011838
authorSeungbae Shin <seungbae.shin@samsung.com>
Thu, 4 Apr 2024 04:58:00 +0000 (13:58 +0900)
committerSeungbae Shin <seungbae.shin@samsung.com>
Thu, 4 Apr 2024 04:58:09 +0000 (13:58 +0900)
+ Update initial value of empty pop threshold to avoid misleading information.

[Version] 15.0-31
[Issue Type] Update

Change-Id: I248fba76d2f3fc65253373b7802ce1fe8bddd1ad

packaging/pulseaudio.spec
src/pulsecore/core.c
src/pulsecore/sink-input.c

index f426b6d..67fb95c 100644 (file)
@@ -4,7 +4,7 @@
 Name:             pulseaudio
 Summary:          Improved Linux sound server
 Version:          15.0
-Release:          30
+Release:          31
 Group:            Multimedia/Audio
 License:          LGPL-2.1
 URL:              http://pulseaudio.org
index 0d0983b..0dbfb37 100644 (file)
@@ -205,7 +205,7 @@ pa_core* pa_core_new(pa_mainloop_api *m, bool shared, bool enable_memfd, size_t
     c->pcm_dump = 0;
 #endif
 #ifdef TIZEN_EMPTY_POP
-    c->empty_pop_threshold = 10;
+    c->empty_pop_threshold = 60;  /* will be updated by pa_daemon_conf_load() */
 #endif
 
     return c;
index 6ae10dc..ce08dd5 100644 (file)
@@ -2683,7 +2683,7 @@ static void _empty_pop_print_duration(pa_sink_input *i, uint32_t empty_pop_durat
 
     i->empty_pop_previous_duration = empty_pop_duration;
 
-    pa_log_debug("[%u] empty pop (no sink-input data) for [%u] sec., timeout is [%u] sec.",
+    pa_log_warn("[%u] empty pop (no sink-input data) for [%u] sec., timeout is [%u] sec.",
                   i->index, empty_pop_duration, i->core->empty_pop_threshold);
 }
 
@@ -2691,7 +2691,7 @@ static void _empty_pop_reset(pa_sink_input *i) {
     i->empty_pop_initial_timestamp = 0;
     i->empty_pop_previous_duration = 0;
 
-    pa_log_debug("[%u] empty pop reset...", i->index);
+    pa_log_warn("[%u] empty pop reset...", i->index);
 }
 
 void pa_sink_input_update_empty_pop(pa_sink_input *i, size_t length, bool *is_timeout) {