13
0

ALSA: Fix slave device lookup

This commit is contained in:
Robin Gareus 2021-01-22 16:06:42 +01:00
parent b9966cf69d
commit cff58bd9da
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04

View File

@ -994,6 +994,8 @@ AlsaAudioBackend::_start (bool for_latency_measurement)
_midi_device_thread_active = listen_for_midi_device_changes ();
get_alsa_audio_device_names(devices, (AlsaDuplex)slave_duplex);
if (!slave_device.empty () && (di = devices.find (slave_device)) != devices.end ()) {
std::string dev = di->second;
if (add_slave (dev.c_str(), _samplerate, _samples_per_period, _periods_per_cycle, slave_duplex)) {