fix microphone lag with PA
commit58c15e523af3e70149248e8a2a9dab0fefb4ce91
authorMartin Schrodt <martin@schrodt.org>
Sat, 15 Jun 2019 15:38:52 +0000 (15 17:38 +0200)
committerGerd Hoffmann <kraxel@redhat.com>
Wed, 3 Jul 2019 06:50:56 +0000 (3 08:50 +0200)
tree8d6b1486cff3474369a566a0216ac7d1d020d38d
parent474f3938d79ab36b9231c9ad3b5a9314c2aeacde
fix microphone lag with PA

Several people have reported to have bag microphone lag with the PA
backend. While I cannot reproduce the problem here, it seems that their
PA somehow decides to buffer the microphone input for way too long,
causing this delay. This patch sets an upper limit to the amount of
data PA should hold. This fixes the problem reliably on their side,
while having no adverse effects on mine.

Signed-off-by: Martin Schrodt <martin@schrodt.org>
Message-id: 20190615153852.99040-1-martin@schrodt.org
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
audio/paaudio.c