alsa: Minor debug log addition

It's helpful to know what kind of scheduling latency we're expecting in
that debug log.
This commit is contained in:
Arun Raghavan 2012-11-22 10:00:07 +05:30
parent 45f8ece06e
commit 3371528178

View file

@ -1824,8 +1824,9 @@ static void thread_func(void *userdata) {
(double) ((int64_t) real_sleep - (int64_t) rtpoll_sleep) / PA_USEC_PER_MSEC); (double) ((int64_t) real_sleep - (int64_t) rtpoll_sleep) / PA_USEC_PER_MSEC);
#endif #endif
if (u->use_tsched && real_sleep > rtpoll_sleep + u->tsched_watermark) if (u->use_tsched && real_sleep > rtpoll_sleep + u->tsched_watermark)
pa_log_info("Scheduling delay of %0.2fms, you might want to investigate this to improve latency...", pa_log_info("Scheduling delay of %0.2fms > %0.2fms, you might want to investigate this to improve latency...",
(double) (real_sleep - rtpoll_sleep) / PA_USEC_PER_MSEC); (double) (real_sleep - rtpoll_sleep) / PA_USEC_PER_MSEC,
(double) (u->tsched_watermark) / PA_USEC_PER_MSEC);
} }
if (u->sink->flags & PA_SINK_DEFERRED_VOLUME) if (u->sink->flags & PA_SINK_DEFERRED_VOLUME)