summaryrefslogtreecommitdiff
path: root/libs
diff options
context:
space:
mode:
authorRobin Gareus <robin@gareus.org>2020-05-10 22:04:23 +0200
committerRobin Gareus <robin@gareus.org>2020-05-10 22:28:40 +0200
commit4ff6fbe6b8dacf95bd3de476b3ce1859e6f14337 (patch)
tree10b46571a3f00870dfdb4926cfcf17f430d2d863 /libs
parente9401934c186900e383f99654ce6c92b913a1292 (diff)
ALSA: Use same period for in+out #8075
Since the input is never flushed, capture latency is still only one cycle.
Diffstat (limited to 'libs')
-rw-r--r--libs/backends/alsa/alsa_audiobackend.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/libs/backends/alsa/alsa_audiobackend.cc b/libs/backends/alsa/alsa_audiobackend.cc
index e246ad63af..a1e5c73255 100644
--- a/libs/backends/alsa/alsa_audiobackend.cc
+++ b/libs/backends/alsa/alsa_audiobackend.cc
@@ -282,7 +282,7 @@ AlsaAudioBackend::available_period_sizes (const std::string& driver, const std::
if (nfo->max_nper > 2) {
ps.push_back (3);
}
- if (nfo->max_nper > 3) {
+ if (nfo->min_nper > 3) {
ps.push_back (nfo->min_nper);
}
} else {
@@ -853,7 +853,7 @@ AlsaAudioBackend::_start (bool for_latency_measurement)
(duplex & 1) ? alsa_device.c_str() : NULL,
/* ctrl name */ 0,
_samplerate, _samples_per_period,
- _periods_per_cycle, /* capture p/c */ 2,
+ _periods_per_cycle, _periods_per_cycle,
/* debug */ 0);
AudioBackend::ErrorCode error_code = NoError;