ALSA: retain port-connections of slave devices

When the engine is re-started, ports should only be reconnected
when all slave devices are running. Previously those connections
were lost.
This commit is contained in:
Robin Gareus 2021-02-19 14:02:34 +01:00
parent 8089998eaa
commit 3f4e2fa348
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04

View File

@ -982,7 +982,6 @@ AlsaAudioBackend::_start (bool for_latency_measurement)
return PortReconnectError;
}
engine.reconnect_ports ();
_run = true;
g_atomic_int_set (&_port_change_flag, 0);
@ -1060,6 +1059,8 @@ AlsaAudioBackend::_start (bool for_latency_measurement)
}
#endif
engine.reconnect_ports ();
return NoError;
}