SWCODEC: Wait for audio init to complete before starting radio or recording; hardware init might not be finished yet if those are the start screens.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26298 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
eeef8f6c39
commit
a8d9a03cfb
2 changed files with 8 additions and 0 deletions
|
@ -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);
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue