mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-10-29 05:40:23 -04:00
alsa: support fixed latency range in alsa modules
This adds a boolean module parameter to disable automatic dynamic latency readjustments on underruns, but leaves automatic dynamic watermark readjustments untouched.
This commit is contained in:
parent
6124bf8951
commit
7a387fed36
5 changed files with 47 additions and 10 deletions
|
|
@ -1008,6 +1008,10 @@ static void fix_playback_buffer_attr(playback_stream *s) {
|
|||
tlength_usec -= s->configured_sink_latency;
|
||||
}
|
||||
|
||||
pa_log_debug("Requested latency=%0.2f ms, Received latency=%0.2f ms",
|
||||
(double) sink_usec / PA_USEC_PER_MSEC,
|
||||
(double) s->configured_sink_latency / PA_USEC_PER_MSEC);
|
||||
|
||||
/* FIXME: This is actually larger than necessary, since not all of
|
||||
* the sink latency is actually rewritable. */
|
||||
if (tlength_usec < s->configured_sink_latency + 2*minreq_usec)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue