summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrank Gevaerts <frank@gevaerts.be>2009-11-09 17:51:36 +0000
committerFrank Gevaerts <frank@gevaerts.be>2009-11-09 17:51:36 +0000
commit7de32efe1c44d5278be53cf7f3a0dbc7b6fe1493 (patch)
treed38a3e9a71ecebabe398880c374ad6785566d342
parenta20d77dba0677b73c3b7d411e0dc3ae2dbda236a (diff)
downloadrockbox-7de32efe1c44d5278be53cf7f3a0dbc7b6fe1493.tar.gz
rockbox-7de32efe1c44d5278be53cf7f3a0dbc7b6fe1493.zip
Don't define pitch_speed_enum() on MAS3507D. Fixes yellow
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23590 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r--apps/gui/skin_engine/skin_tokens.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/apps/gui/skin_engine/skin_tokens.c b/apps/gui/skin_engine/skin_tokens.c
index 6eb1759b91..9cd8dfcdb0 100644
--- a/apps/gui/skin_engine/skin_tokens.c
+++ b/apps/gui/skin_engine/skin_tokens.c
@@ -107,6 +107,7 @@ static char* get_dir(char* buf, int buf_size, const char* path, int level)
107 return buf; 107 return buf;
108} 108}
109 109
110#if (CONFIG_CODEC != MAS3507D)
110/* A helper to determine the enum value for pitch/speed. 111/* A helper to determine the enum value for pitch/speed.
111 112
112 When there are two choices (i.e. boolean), return 1 if the value is 113 When there are two choices (i.e. boolean), return 1 if the value is
@@ -142,6 +143,7 @@ static int pitch_speed_enum(int range, int32_t val, int32_t normval)
142 n = (center * val) / normval + 1; 143 n = (center * val) / normval + 1;
143 return (range <= n) ? (range - 1) : n; 144 return (range <= n) ? (range - 1) : n;
144} 145}
146#endif
145 147
146/* Return the tag found at index i and write its value in buf. 148/* Return the tag found at index i and write its value in buf.
147 The return value is buf if the tag had a value, or NULL if not. 149 The return value is buf if the tag had a value, or NULL if not.