diff options
author | Robin Gareus <robin@gareus.org> | 2019-07-24 16:30:42 +0200 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2019-07-24 16:40:40 +0200 |
commit | 771f2d2499fabdddb9d823efc4689b901f901002 (patch) | |
tree | d785088febbdb5560037bc9584fd521d5bb90b90 /libs/backends/alsa | |
parent | 0fe3cba8b131ca1196ef30c0ccb5acb914817276 (diff) |
ALSA backend: fix play/capture device param detection
Diffstat (limited to 'libs/backends/alsa')
-rw-r--r-- | libs/backends/alsa/alsa_audiobackend.cc | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/libs/backends/alsa/alsa_audiobackend.cc b/libs/backends/alsa/alsa_audiobackend.cc index a6b16e039d..69a23c1912 100644 --- a/libs/backends/alsa/alsa_audiobackend.cc +++ b/libs/backends/alsa/alsa_audiobackend.cc @@ -310,7 +310,7 @@ AlsaAudioBackend::set_input_device_name (const std::string& d) return 1; } /* device will be busy once used, hence cache the parameters */ - /* return */ get_alsa_device_parameters (alsa_device.c_str(), true, &_input_audio_device_info); + /* return */ get_alsa_device_parameters (alsa_device.c_str(), false, &_input_audio_device_info); return 0; } @@ -869,6 +869,11 @@ AlsaAudioBackend::_start (bool for_latency_measurement) #ifndef NDEBUG _pcmi->printinfo (); +#else + /* If any debug parameter is set, print info */ + if (getenv ("ZITA_ALSA_PCMI_DEBUG")) { + _pcmi->printinfo (); + } #endif if (_n_outputs != _pcmi->nplay ()) { |