forked from len0rd/rockbox
Const'ed the various setting lookup tables
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4904 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
11888059a8
commit
d0bb88a766
4 changed files with 10 additions and 10 deletions
|
@ -89,7 +89,7 @@ static char *fmtstr[] =
|
|||
char *fmt_gain(int snd, int val, char *str, int len)
|
||||
{
|
||||
int tmp, i, d, numdec;
|
||||
char *unit;
|
||||
const char *unit;
|
||||
|
||||
tmp = mpeg_val2phys(snd, val);
|
||||
numdec = mpeg_sound_numdecimals(snd);
|
||||
|
|
|
@ -52,7 +52,7 @@ bool set_sound(char* string,
|
|||
int numdec;
|
||||
int integer;
|
||||
int dec;
|
||||
char* unit;
|
||||
const char* unit;
|
||||
char str[32];
|
||||
int talkunit = UNIT_INT;
|
||||
int steps;
|
||||
|
|
|
@ -36,7 +36,7 @@ int mpeg_sound_max(int setting);
|
|||
int mpeg_sound_default(int setting);
|
||||
void mpeg_sound_channel_config(int configuration);
|
||||
int mpeg_val2phys(int setting, int value);
|
||||
char *mpeg_sound_unit(int setting);
|
||||
const char *mpeg_sound_unit(int setting);
|
||||
int mpeg_sound_numdecimals(int setting);
|
||||
int mpeg_sound_steps(int setting);
|
||||
#if defined(HAVE_MAS3587F) || defined(SIMULATOR)
|
||||
|
|
|
@ -61,7 +61,7 @@ static long cumulative_ticks;
|
|||
static void (*callback_for_more)(unsigned char**, int*);
|
||||
#endif /* #ifndef SIMULATOR */
|
||||
|
||||
static char *units[] =
|
||||
static const char* const units[] =
|
||||
{
|
||||
"%", /* Volume */
|
||||
"dB", /* Bass */
|
||||
|
@ -81,7 +81,7 @@ static char *units[] =
|
|||
"", /* Super bass */
|
||||
};
|
||||
|
||||
static int numdecimals[] =
|
||||
static const int numdecimals[] =
|
||||
{
|
||||
0, /* Volume */
|
||||
0, /* Bass */
|
||||
|
@ -101,7 +101,7 @@ static int numdecimals[] =
|
|||
0, /* Super bass */
|
||||
};
|
||||
|
||||
static int steps[] =
|
||||
static const int steps[] =
|
||||
{
|
||||
1, /* Volume */
|
||||
1, /* Bass */
|
||||
|
@ -121,7 +121,7 @@ static int steps[] =
|
|||
1, /* Super bass */
|
||||
};
|
||||
|
||||
static int minval[] =
|
||||
static const int minval[] =
|
||||
{
|
||||
0, /* Volume */
|
||||
#ifdef HAVE_MAS3587F
|
||||
|
@ -146,7 +146,7 @@ static int minval[] =
|
|||
0, /* Super bass */
|
||||
};
|
||||
|
||||
static int maxval[] =
|
||||
static const int maxval[] =
|
||||
{
|
||||
100, /* Volume */
|
||||
#ifdef HAVE_MAS3587F
|
||||
|
@ -171,7 +171,7 @@ static int maxval[] =
|
|||
1, /* Super bass */
|
||||
};
|
||||
|
||||
static int defaultval[] =
|
||||
static const int defaultval[] =
|
||||
{
|
||||
70, /* Volume */
|
||||
#ifdef HAVE_MAS3587F
|
||||
|
@ -196,7 +196,7 @@ static int defaultval[] =
|
|||
0, /* Super bass */
|
||||
};
|
||||
|
||||
char *mpeg_sound_unit(int setting)
|
||||
const char *mpeg_sound_unit(int setting)
|
||||
{
|
||||
return units[setting];
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue