Open audio device for call (headset) after everything is prepared

It is not allowed to stall after trigger reading of audio device.
This commit is contained in:
Andreas Eversberg
2017-01-29 16:54:28 +01:00
parent 8cb0187133
commit 5026e161aa
3 changed files with 26 additions and 11 deletions

View File

@@ -435,6 +435,10 @@ void main_common(int *quit, int latency, int interval, void (*myhandler)(void))
if (sender_open_audio())
return;
/* afterwards open call audio, because we cannot wait for SDR to open */
if (call_open_audio())
return;
/* real time priority */
if (rt_prio > 0) {
struct sched_param schedp;