aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Maydell <peter.maydell@linaro.org>2019-07-04 13:45:01 +0100
committerPeter Maydell <peter.maydell@linaro.org>2019-07-04 13:45:01 +0100
commitbe8bf83d1f0b589767e6e85e3e197b00c2850374 (patch)
treed21a82dc11a914bfbacbf0abaf4be1c16ec21d72
parent5c6a9dbef9ab2b978c61b8ed13d79dceb2c3ef46 (diff)
parent58c15e523af3e70149248e8a2a9dab0fefb4ce91 (diff)
Merge remote-tracking branch 'remotes/kraxel/tags/audio-20190703-pull-request' into staging
audio: pulse bugfix # gpg: Signature made Wed 03 Jul 2019 07:55:43 BST # gpg: using RSA key 4CB6D8EED3E87138 # gpg: Good signature from "Gerd Hoffmann (work) <kraxel@redhat.com>" [full] # gpg: aka "Gerd Hoffmann <gerd@kraxel.org>" [full] # gpg: aka "Gerd Hoffmann (private) <kraxel@gmail.com>" [full] # Primary key fingerprint: A032 8CFF B93A 17A7 9901 FE7D 4CB6 D8EE D3E8 7138 * remotes/kraxel/tags/audio-20190703-pull-request: fix microphone lag with PA Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
-rw-r--r--audio/paaudio.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/audio/paaudio.c b/audio/paaudio.c
index fa9dd9efd4..5fc886bb33 100644
--- a/audio/paaudio.c
+++ b/audio/paaudio.c
@@ -618,7 +618,7 @@ static int qpa_init_in(HWVoiceIn *hw, struct audsettings *as, void *drv_opaque)
ss.rate = as->freq;
ba.fragsize = pa_usec_to_bytes(ppdo->latency, &ss);
- ba.maxlength = -1;
+ ba.maxlength = pa_usec_to_bytes(ppdo->latency * 2, &ss);
ba.minreq = -1;
ba.prebuf = -1;