diff options
-rw-r--r-- | apps/radio/radio.c | 4 | ||||
-rw-r--r-- | apps/recorder/recording.c | 4 |
2 files changed, 8 insertions, 0 deletions
diff --git a/apps/radio/radio.c b/apps/radio/radio.c index 403d1ae36f..51c8982b07 100644 --- a/apps/radio/radio.c +++ b/apps/radio/radio.c @@ -464,6 +464,10 @@ int radio_screen(void) /* turn on radio */ #if CONFIG_CODEC == SWCODEC + /* This should be done before touching audio settings */ + while (!audio_is_thread_ready()) + sleep(0); + audio_set_input_source(AUDIO_SRC_FMRADIO, (radio_status == FMRADIO_PAUSED) ? SRCF_FMRADIO_PAUSED : SRCF_FMRADIO_PLAYING); diff --git a/apps/recorder/recording.c b/apps/recorder/recording.c index 21db298184..c30098277d 100644 --- a/apps/recorder/recording.c +++ b/apps/recorder/recording.c @@ -1093,6 +1093,10 @@ bool recording_screen(bool no_source) #endif #if CONFIG_CODEC == SWCODEC + /* This should be done before touching audio settings */ + while (!audio_is_thread_ready()) + sleep(0); + /* recording_menu gets messed up: so prevent manus talking */ talk_disable(true); /* audio_init_recording stops anything playing when it takes the audio |