summaryrefslogtreecommitdiff
path: root/apps/radio
diff options
context:
space:
mode:
Diffstat (limited to 'apps/radio')
-rw-r--r--apps/radio/radio.c4
1 files changed, 4 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)
464 464
465 /* turn on radio */ 465 /* turn on radio */
466#if CONFIG_CODEC == SWCODEC 466#if CONFIG_CODEC == SWCODEC
467 /* This should be done before touching audio settings */
468 while (!audio_is_thread_ready())
469 sleep(0);
470
467 audio_set_input_source(AUDIO_SRC_FMRADIO, 471 audio_set_input_source(AUDIO_SRC_FMRADIO,
468 (radio_status == FMRADIO_PAUSED) ? 472 (radio_status == FMRADIO_PAUSED) ?
469 SRCF_FMRADIO_PAUSED : SRCF_FMRADIO_PLAYING); 473 SRCF_FMRADIO_PAUSED : SRCF_FMRADIO_PLAYING);