From c2308bdf400e79b6f821885034e0f44abd6877a3 Mon Sep 17 00:00:00 2001 From: Solomon Peachy Date: Sat, 15 Dec 2018 13:09:07 -0500 Subject: Fix HWCODEC builds. Change-Id: I7abed5dab9b4d0d053c274404dc4dc06864aa060 --- apps/screens.c | 2 ++ apps/talk.c | 2 -- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/screens.c b/apps/screens.c index 527419ff7a..608f055de0 100644 --- a/apps/screens.c +++ b/apps/screens.c @@ -674,6 +674,7 @@ static void say_number_and_spell(char *buf, bool year_style) } } +#if CONFIG_CODEC == SWCODEC /* Say a replaygain ID3 value from its text form */ static void say_gain(char *buf) { @@ -729,6 +730,7 @@ static void say_gain(char *buf) }else /* we didn't find a number, just spell everything */ talk_spell(buf, true); } +#endif static const char * id3_get_or_speak_info(int selected_item, void* data, char *buffer, size_t buffer_len, diff --git a/apps/talk.c b/apps/talk.c index bcf7a49acc..8a2a809c37 100644 --- a/apps/talk.c +++ b/apps/talk.c @@ -1172,7 +1172,6 @@ int talk_file_or_spell(const char *dirname, const char *filename, return 0; } -#if CONFIG_CODEC == SWCODEC /* Play a directory's .talk thumbnail, fallback to spelling the filename, or go straight to spelling depending on settings. */ int talk_dir_or_spell(const char* dirname, @@ -1189,7 +1188,6 @@ int talk_dir_or_spell(const char* dirname, return talk_spell_basename(dirname, prefix_ids, enqueue); return 0; } -#endif /* Speak thumbnail for each component of a full path, again falling back or going straight to spelling depending on settings. */ -- cgit v1.2.3