diff options
author | Robin Gareus <robin@gareus.org> | 2015-06-14 20:43:29 +0200 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2015-06-14 22:26:06 +0200 |
commit | 94c146c7801dcab403eee721805a5825f40c61bd (patch) | |
tree | 94c93cfdf55467c81767906aba655186a150bf33 /libs/backends/alsa/alsa_audiobackend.cc | |
parent | 573ec69a9aa29b08d99cba56284660fcd080fb55 (diff) |
prepare ALSA backend for half-duplex
Diffstat (limited to 'libs/backends/alsa/alsa_audiobackend.cc')
-rw-r--r-- | libs/backends/alsa/alsa_audiobackend.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libs/backends/alsa/alsa_audiobackend.cc b/libs/backends/alsa/alsa_audiobackend.cc index a2ed9f8b07..4e65c9e4ba 100644 --- a/libs/backends/alsa/alsa_audiobackend.cc +++ b/libs/backends/alsa/alsa_audiobackend.cc @@ -953,8 +953,8 @@ AlsaAudioBackend::register_system_audio_ports() { LatencyRange lr; - const int a_ins = _n_inputs > 0 ? _n_inputs : 2; - const int a_out = _n_outputs > 0 ? _n_outputs : 2; + const int a_ins = _n_inputs; + const int a_out = _n_outputs; /* audio ports */ lr.min = lr.max = (_measure_latency ? 0 : _systemic_audio_input_latency); |