talk: Remove superflous call to talk_init().
talk_init() is called by settings_apply() already which is called on boot. Doing it again means loading the voicefile a second time which isn't necessary. Change-Id: I4decd16401e63bf87338d3163c99d06d69fe3a3c
This commit is contained in:
parent
4ce39f7e73
commit
428f069a1f
3 changed files with 3 additions and 9 deletions
|
@ -170,10 +170,6 @@ void INIT_ATTR audio_init(void)
|
||||||
recording_init();
|
recording_init();
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* ...now...audio_reset_buffer must know the size of voicefile buffer so
|
|
||||||
init talk first which will init the buffers */
|
|
||||||
talk_init();
|
|
||||||
|
|
||||||
/* Probably safe to say */
|
/* Probably safe to say */
|
||||||
audio_is_initialized = true;
|
audio_is_initialized = true;
|
||||||
|
|
||||||
|
|
|
@ -3008,8 +3008,6 @@ void audio_init(void)
|
||||||
or_b(0x08, &PADRH);
|
or_b(0x08, &PADRH);
|
||||||
#endif /* CONFIG_CODEC == MAS3587F */
|
#endif /* CONFIG_CODEC == MAS3587F */
|
||||||
|
|
||||||
talk_init();
|
|
||||||
|
|
||||||
#ifdef DEBUG
|
#ifdef DEBUG
|
||||||
#ifndef SIMULATOR
|
#ifndef SIMULATOR
|
||||||
dbg_timer_start();
|
dbg_timer_start();
|
||||||
|
|
|
@ -971,10 +971,10 @@ void settings_apply(bool read_disk)
|
||||||
CHART(">lang_core_load");
|
CHART(">lang_core_load");
|
||||||
lang_core_load(buf);
|
lang_core_load(buf);
|
||||||
CHART("<lang_core_load");
|
CHART("<lang_core_load");
|
||||||
CHART(">talk_init");
|
|
||||||
talk_init(); /* use voice of same language */
|
|
||||||
CHART("<talk_init");
|
|
||||||
}
|
}
|
||||||
|
CHART(">talk_init");
|
||||||
|
talk_init(); /* use voice of same language */
|
||||||
|
CHART("<talk_init");
|
||||||
|
|
||||||
/* load the icon set */
|
/* load the icon set */
|
||||||
CHART(">icons_init");
|
CHART(">icons_init");
|
||||||
|
|
Loading…
Reference in a new issue