From abe23b588589631e65d438185f05fd3438927e68 Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Sat, 9 May 2020 01:21:11 +0200 Subject: [PATCH] ALSA backend: ignore idempotent latency settings --- libs/backends/alsa/alsa_audiobackend.cc | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/libs/backends/alsa/alsa_audiobackend.cc b/libs/backends/alsa/alsa_audiobackend.cc index 71bef7517a..e246ad63af 100644 --- a/libs/backends/alsa/alsa_audiobackend.cc +++ b/libs/backends/alsa/alsa_audiobackend.cc @@ -435,6 +435,9 @@ AlsaAudioBackend::set_output_channels (uint32_t cc) int AlsaAudioBackend::set_systemic_input_latency (uint32_t sl) { + if (_systemic_audio_input_latency == sl) { + return 0; + } _systemic_audio_input_latency = sl; if (_run) { update_systemic_audio_latencies(); @@ -445,6 +448,9 @@ AlsaAudioBackend::set_systemic_input_latency (uint32_t sl) int AlsaAudioBackend::set_systemic_output_latency (uint32_t sl) { + if (_systemic_audio_output_latency == sl) { + return 0; + } _systemic_audio_output_latency = sl; if (_run) { update_systemic_audio_latencies();