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
This commit is contained in:
parent
a20d77dba0
commit
7de32efe1c
1 changed files with 2 additions and 0 deletions
|
@ -107,6 +107,7 @@ static char* get_dir(char* buf, int buf_size, const char* path, int level)
|
|||
return buf;
|
||||
}
|
||||
|
||||
#if (CONFIG_CODEC != MAS3507D)
|
||||
/* A helper to determine the enum value for pitch/speed.
|
||||
|
||||
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)
|
|||
n = (center * val) / normval + 1;
|
||||
return (range <= n) ? (range - 1) : n;
|
||||
}
|
||||
#endif
|
||||
|
||||
/* Return the tag found at index i and write its value in buf.
|
||||
The return value is buf if the tag had a value, or NULL if not.
|
||||
|
|
Loading…
Reference in a new issue