2007-01-23 13:40:44 +00:00
|
|
|
/***************************************************************************
|
|
|
|
* __________ __ ___.
|
|
|
|
* Open \______ \ ____ ____ | | _\_ |__ _______ ___
|
|
|
|
* Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
|
|
|
|
* Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
|
|
|
|
* Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
|
|
|
|
* \/ \/ \/ \/ \/
|
|
|
|
* $Id: $
|
|
|
|
*
|
|
|
|
* Copyright (C) 2007 Jonathan Gordon
|
|
|
|
*
|
|
|
|
* All files in this archive are subject to the GNU General Public License.
|
|
|
|
* See the file COPYING in the source tree root for full license agreement.
|
|
|
|
*
|
|
|
|
* This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
|
|
|
|
* KIND, either express or implied.
|
|
|
|
*
|
|
|
|
****************************************************************************/
|
|
|
|
|
|
|
|
#include "config.h"
|
|
|
|
#include <stdbool.h>
|
|
|
|
|
|
|
|
#include "lang.h"
|
2007-02-08 04:33:41 +00:00
|
|
|
#include "talk.h"
|
2007-01-23 13:40:44 +00:00
|
|
|
#include "lcd.h"
|
|
|
|
#include "settings.h"
|
|
|
|
#include "settings_list.h"
|
|
|
|
#include "sound.h"
|
2007-02-08 04:33:41 +00:00
|
|
|
#include "dsp.h"
|
2007-01-23 13:40:44 +00:00
|
|
|
|
|
|
|
/* some sets of values which are used more than once, to save memory */
|
|
|
|
static const char off_on[] = "off,on";
|
|
|
|
static const char off_on_ask[] = "off,on,ask";
|
|
|
|
static const char off_number_spell_hover[] = "off,number,spell,hover";
|
|
|
|
#ifdef HAVE_LCD_BITMAP
|
|
|
|
static const char graphic_numeric[] = "graphic,numeric";
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef HAVE_RECORDING
|
|
|
|
/* keep synchronous to trig_durations and
|
|
|
|
trigger_times in settings_apply_trigger */
|
|
|
|
static const char trig_durations_conf [] =
|
|
|
|
"0s,1s,2s,5s,10s,15s,20s,25s,30s,1min,2min,5min,10min";
|
|
|
|
/* these should be in the config.h files */
|
|
|
|
#if CONFIG_CODEC == MAS3587F
|
|
|
|
# define DEFAULT_REC_MIC_GAIN 8
|
|
|
|
# define DEFAULT_REC_LEFT_GAIN 2
|
|
|
|
# define DEFAULT_REC_RIGHT_GAIN 2
|
|
|
|
#elif CONFIG_CODEC == SWCODEC
|
|
|
|
# ifdef HAVE_UDA1380
|
|
|
|
# define DEFAULT_REC_MIC_GAIN 16
|
|
|
|
# define DEFAULT_REC_LEFT_GAIN 0
|
|
|
|
# define DEFAULT_REC_RIGHT_GAIN 0
|
|
|
|
# elif defined(HAVE_TLV320)
|
|
|
|
# define DEFAULT_REC_MIC_GAIN 0
|
|
|
|
# define DEFAULT_REC_LEFT_GAIN 0
|
|
|
|
# define DEFAULT_REC_RIGHT_GAIN 0
|
|
|
|
# elif defined(HAVE_WM8975)
|
|
|
|
# define DEFAULT_REC_MIC_GAIN 16
|
|
|
|
# define DEFAULT_REC_LEFT_GAIN 0
|
|
|
|
# define DEFAULT_REC_RIGHT_GAIN 0
|
|
|
|
# elif defined(HAVE_WM8758)
|
|
|
|
# define DEFAULT_REC_MIC_GAIN 16
|
|
|
|
# define DEFAULT_REC_LEFT_GAIN 0
|
|
|
|
# define DEFAULT_REC_RIGHT_GAIN 0
|
|
|
|
# elif defined(HAVE_WM8731)
|
|
|
|
# define DEFAULT_REC_MIC_GAIN 16
|
|
|
|
# define DEFAULT_REC_LEFT_GAIN 0
|
|
|
|
# define DEFAULT_REC_RIGHT_GAIN 0
|
|
|
|
# endif
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif /* HAVE_RECORDING */
|
|
|
|
|
|
|
|
#if defined(CONFIG_BACKLIGHT)
|
|
|
|
static const char backlight_times_conf [] =
|
|
|
|
"off,on,1,2,3,4,5,6,7,8,9,10,15,20,25,30,45,60,90";
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#define NVRAM(bytes) (bytes<<F_NVRAM_MASK_SHIFT)
|
|
|
|
/** NOTE: NVRAM_CONFIG_VERSION is in settings_list.h
|
|
|
|
and you may need to update it if you edit this file */
|
|
|
|
|
|
|
|
#define UNUSED {.RESERVED=NULL}
|
|
|
|
#define INT(a) {.int_ = a}
|
|
|
|
#define UINT(a) {.uint_ = a}
|
|
|
|
#define BOOL(a) {.bool_ = a}
|
|
|
|
#define CHARPTR(a) {.charptr = a}
|
|
|
|
#define UCHARPTR(a) {.ucharptr = a}
|
2007-01-24 03:14:07 +00:00
|
|
|
#define FUNCTYPE(a) {.func = a}
|
2007-01-23 13:40:44 +00:00
|
|
|
#define NODEFAULT INT(0)
|
|
|
|
|
2007-02-12 00:31:29 +00:00
|
|
|
/* in all the following macros the args are:
|
|
|
|
- flags: bitwise | or the F_ bits in settings_list.h
|
|
|
|
- var: pointer to the variable being changed (usually in global_settings)
|
|
|
|
- lang_ig: LANG_* id to display in menus and setting screens for the settings
|
|
|
|
- default: the default value for the variable, set if settings are reset
|
|
|
|
- name: the name of the setting in config files
|
|
|
|
- cfg_vals: comma seperated list of legal values in cfg files.
|
|
|
|
NULL if a number is written to the file instead.
|
|
|
|
- cb: the callback used by the setting screen.
|
|
|
|
*/
|
|
|
|
|
|
|
|
/* Use for int settings which use the set_sound() function to set them */
|
2007-02-11 10:09:38 +00:00
|
|
|
#define SOUND_SETTING(flags,var,lang_id,name,setting) \
|
|
|
|
{flags|F_T_INT|F_T_SOUND, &global_settings.var, \
|
|
|
|
lang_id, NODEFAULT,name,NULL, \
|
2007-02-08 04:33:41 +00:00
|
|
|
{.sound_setting=(struct sound_setting[]){{setting}}} }
|
2007-01-23 13:40:44 +00:00
|
|
|
|
2007-02-12 00:31:29 +00:00
|
|
|
/* Use for bool variables which don't use LANG_SET_BOOL_YES and LANG_SET_BOOL_NO,
|
|
|
|
or dont save as "off" or "on" in the cfg */
|
|
|
|
#define BOOL_SETTING(flags,var,lang_id,default,name,cfgvals,yes,no,cb) \
|
2007-02-11 10:09:38 +00:00
|
|
|
{flags|F_BOOL_SETTING, &global_settings.var, \
|
|
|
|
lang_id, BOOL(default),name,cfgvals, \
|
2007-02-12 00:31:29 +00:00
|
|
|
{.bool_setting=(struct bool_setting[]){{cb,yes,no}}} }
|
|
|
|
|
|
|
|
/* bool setting which does use LANG_YES and _NO and save as "off,on" */
|
2007-02-11 10:09:38 +00:00
|
|
|
#define OFFON_SETTING(flags,var,lang_id,default,name,cb) \
|
|
|
|
{flags|F_BOOL_SETTING, &global_settings.var, \
|
|
|
|
lang_id, BOOL(default),name,off_on, \
|
|
|
|
{.bool_setting=(struct bool_setting[]) \
|
2007-02-08 04:33:41 +00:00
|
|
|
{{cb,LANG_SET_BOOL_YES,LANG_SET_BOOL_NO}}} }
|
2007-01-23 13:40:44 +00:00
|
|
|
|
2007-02-12 00:31:29 +00:00
|
|
|
/* int variable which is NOT saved to .cfg files,
|
|
|
|
(Use NVRAM() in the flags to save to the nvram (or nvram.bin file) */
|
2007-01-23 13:40:44 +00:00
|
|
|
#define SYSTEM_SETTING(flags,var,default) \
|
2007-02-08 04:33:41 +00:00
|
|
|
{flags|F_T_INT, &global_status.var,-1, INT(default), \
|
|
|
|
NULL, NULL, UNUSED}
|
2007-02-12 00:31:29 +00:00
|
|
|
|
|
|
|
/* setting which stores as a filename in the .cfgvals
|
|
|
|
prefix: The absolute path to not save in the variable, e.g /.rockbox/wps_file
|
|
|
|
suffx: The file extention (usually...) e.g .wps_file */
|
2007-02-11 10:09:38 +00:00
|
|
|
#define FILENAME_SETTING(flags,var,name,default,prefix,suffix,len) \
|
|
|
|
{flags|F_T_UCHARPTR, &global_settings.var,-1, \
|
|
|
|
CHARPTR(default),name,NULL, \
|
2007-02-08 04:33:41 +00:00
|
|
|
{.filename_setting= \
|
|
|
|
(struct filename_setting[]){{prefix,suffix,len}}} }
|
2007-02-12 00:31:29 +00:00
|
|
|
|
|
|
|
/* Used for settings which use the set_option() setting screen.
|
|
|
|
the ... arg is a list of pointers to strings to display in the setting screen.
|
|
|
|
These can either be literal strings, or ID2P(LANG_*) */
|
2007-02-08 04:33:41 +00:00
|
|
|
#define CHOICE_SETTING(flags,var,lang_id,default,name,cfg_vals,cb,count,...) \
|
2007-02-11 10:09:38 +00:00
|
|
|
{flags|F_CHOICE_SETTING|F_T_INT, &global_settings.var, lang_id, \
|
2007-02-08 04:33:41 +00:00
|
|
|
INT(default), name, cfg_vals, \
|
|
|
|
{.choice_setting = (struct choice_setting[]){ \
|
2007-02-08 10:28:42 +00:00
|
|
|
{cb, count, {.desc = (unsigned char*[]){__VA_ARGS__}}}}}}
|
|
|
|
|
2007-02-12 00:31:29 +00:00
|
|
|
/* Similar to above, except the strings to display are taken from cfg_vals,
|
|
|
|
the ... arg is a list of ID's to talk for the strings... can use TALK_ID()'s */
|
2007-02-08 10:28:42 +00:00
|
|
|
#define STRINGCHOICE_SETTING(flags,var,lang_id,default,name,cfg_vals,cb,count,...) \
|
2007-02-11 10:09:38 +00:00
|
|
|
{flags|F_CHOICE_SETTING|F_T_INT|F_CHOICETALKS, \
|
|
|
|
&global_settings.var, lang_id, \
|
2007-02-08 10:28:42 +00:00
|
|
|
INT(default), name, cfg_vals, \
|
|
|
|
{.choice_setting = (struct choice_setting[]){ \
|
|
|
|
{cb, count, {.talks = (int[]){__VA_ARGS__}}}}}}
|
|
|
|
|
2007-02-12 00:31:29 +00:00
|
|
|
/* for settings which use the set_int() setting screen.
|
|
|
|
unit is the UNIT_ define to display/talk. */
|
|
|
|
#define INT_SETTING(flags, var, lang_id, default, name, \
|
2007-02-11 10:09:38 +00:00
|
|
|
unit, min, max, step, formatter, cb) \
|
|
|
|
{flags|F_INT_SETTING|F_T_INT, &global_settings.var, \
|
|
|
|
lang_id, INT(default), \
|
2007-02-12 00:31:29 +00:00
|
|
|
name, NULL, {.int_setting = (struct int_setting[]){ \
|
2007-02-08 04:33:41 +00:00
|
|
|
{cb, unit, min, max, step, formatter}}}}
|
|
|
|
|
2007-02-08 10:28:42 +00:00
|
|
|
#if CONFIG_CODEC == SWCODEC
|
|
|
|
static void crossfeed_format(char* buffer, int buffer_size, int value,
|
|
|
|
const char* unit)
|
|
|
|
{
|
|
|
|
snprintf(buffer, buffer_size, "%s%d.%d %s", value == 0 ? " " : "-",
|
|
|
|
value / 10, value % 10, unit);
|
|
|
|
}
|
|
|
|
static void crossfeed_cross_gain_helper(int val)
|
|
|
|
{
|
|
|
|
dsp_set_crossfeed_cross_params(val,
|
|
|
|
val + global_settings.crossfeed_hf_attenuation,
|
|
|
|
global_settings.crossfeed_hf_cutoff);
|
|
|
|
}
|
|
|
|
static void crossfeed_hf_att_helper(int val)
|
|
|
|
{
|
|
|
|
dsp_set_crossfeed_cross_params(global_settings.crossfeed_cross_gain,
|
|
|
|
global_settings.crossfeed_cross_gain + val,
|
|
|
|
global_settings.crossfeed_hf_cutoff);
|
|
|
|
}
|
|
|
|
static void crossfeed_hf_cutoff_helper(int val)
|
|
|
|
{
|
|
|
|
dsp_set_crossfeed_cross_params(global_settings.crossfeed_cross_gain,
|
|
|
|
global_settings.crossfeed_cross_gain
|
|
|
|
+ global_settings.crossfeed_hf_attenuation, val);
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
#if (CONFIG_CODEC == MAS3587F) || (CONFIG_CODEC == MAS3539F)
|
|
|
|
static void set_mdb_enable(bool value)
|
|
|
|
{
|
|
|
|
sound_set_mdb_enable((int)value);
|
|
|
|
}
|
|
|
|
static void set_superbass(bool value)
|
|
|
|
{
|
|
|
|
sound_set_superbass((int)value);
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
2007-01-23 13:40:44 +00:00
|
|
|
const struct settings_list settings[] = {
|
|
|
|
/* sound settings */
|
2007-02-08 10:28:42 +00:00
|
|
|
SOUND_SETTING(0,volume, LANG_VOLUME, "volume", SOUND_VOLUME),
|
|
|
|
SOUND_SETTING(0,balance, LANG_BALANCE, "balance", SOUND_BALANCE),
|
|
|
|
SOUND_SETTING(0,bass, LANG_BASS, "bass", SOUND_BASS),
|
|
|
|
SOUND_SETTING(0,treble, LANG_TREBLE, "treble", SOUND_TREBLE),
|
|
|
|
|
2007-01-23 13:40:44 +00:00
|
|
|
#if (CONFIG_CODEC == MAS3587F) || (CONFIG_CODEC == MAS3539F)
|
2007-02-08 10:28:42 +00:00
|
|
|
SOUND_SETTING(0,loudness, LANG_LOUDNESS, "loudness", SOUND_LOUDNESS),
|
|
|
|
STRINGCHOICE_SETTING(0,avc,LANG_AUTOVOL,0,"auto volume",
|
|
|
|
"off,20ms,4,4,8,", sound_set_avc, 5,
|
|
|
|
LANG_OFF,TALK_ID(20, UNIT_MS),TALK_ID(2, UNIT_SEC),
|
|
|
|
TALK_ID(4, UNIT_SEC),TALK_ID(8, UNIT_SEC)),
|
|
|
|
OFFON_SETTING(0, superbass, LANG_SUPERBASS, false, "superbass", set_superbass),
|
|
|
|
#endif
|
|
|
|
|
2007-02-08 04:33:41 +00:00
|
|
|
CHOICE_SETTING(0,channel_config,LANG_CHANNEL,0,"channels",
|
|
|
|
"stereo,mono,custom,mono left,mono right,karaoke",
|
|
|
|
#if CONFIG_CODEC == SWCODEC
|
|
|
|
channels_set,
|
|
|
|
#else
|
|
|
|
sound_set_channels,
|
|
|
|
#endif
|
|
|
|
6, ID2P(LANG_CHANNEL_STEREO), ID2P(LANG_CHANNEL_MONO),
|
|
|
|
ID2P(LANG_CHANNEL_CUSTOM), ID2P(LANG_CHANNEL_LEFT),
|
|
|
|
ID2P(LANG_CHANNEL_RIGHT), ID2P(LANG_CHANNEL_KARAOKE)),
|
2007-02-08 10:28:42 +00:00
|
|
|
SOUND_SETTING(0,stereo_width, LANG_STEREO_WIDTH,
|
|
|
|
"stereo_width", SOUND_STEREO_WIDTH),
|
2007-01-23 13:40:44 +00:00
|
|
|
/* playback */
|
2007-01-26 05:45:06 +00:00
|
|
|
OFFON_SETTING(0, resume, LANG_RESUME, false, "resume", NULL),
|
|
|
|
OFFON_SETTING(0, playlist_shuffle, LANG_SHUFFLE, false, "shuffle", NULL),
|
2007-01-23 13:40:44 +00:00
|
|
|
SYSTEM_SETTING(NVRAM(4),resume_index,-1),
|
|
|
|
SYSTEM_SETTING(NVRAM(4),resume_first_index,0),
|
|
|
|
SYSTEM_SETTING(NVRAM(4),resume_offset,-1),
|
|
|
|
SYSTEM_SETTING(NVRAM(4),resume_seed,-1),
|
2007-02-11 10:09:38 +00:00
|
|
|
{F_T_INT, &global_settings.repeat_mode, LANG_REPEAT, INT(REPEAT_ALL), "repeat",
|
2007-01-23 13:40:44 +00:00
|
|
|
"off,all,one,shuffle,ab" , UNUSED},
|
|
|
|
/* LCD */
|
|
|
|
#ifdef HAVE_LCD_CONTRAST
|
2007-02-11 10:09:38 +00:00
|
|
|
{F_T_INT|F_DEF_ISFUNC, &global_settings.contrast, LANG_CONTRAST,
|
2007-01-26 05:45:06 +00:00
|
|
|
FUNCTYPE(lcd_default_contrast),
|
2007-01-23 13:40:44 +00:00
|
|
|
"contrast", NULL , UNUSED},
|
|
|
|
#endif
|
|
|
|
#ifdef CONFIG_BACKLIGHT
|
2007-02-11 10:09:38 +00:00
|
|
|
{F_T_INT, &global_settings.backlight_timeout, LANG_BACKLIGHT, INT(6),
|
2007-01-23 13:40:44 +00:00
|
|
|
"backlight timeout",backlight_times_conf , UNUSED},
|
|
|
|
#ifdef CONFIG_CHARGING
|
2007-02-11 10:09:38 +00:00
|
|
|
{F_T_INT, &global_settings.backlight_timeout_plugged, LANG_BACKLIGHT_ON_WHEN_CHARGING,
|
2007-01-26 05:45:06 +00:00
|
|
|
INT(11), "backlight timeout plugged",backlight_times_conf , UNUSED},
|
2007-01-23 13:40:44 +00:00
|
|
|
#endif
|
|
|
|
#endif /* CONFIG_BACKLIGHT */
|
|
|
|
#ifdef HAVE_LCD_BITMAP
|
2007-01-26 05:45:06 +00:00
|
|
|
OFFON_SETTING(0,invert, LANG_INVERT, false,"invert", NULL),
|
|
|
|
OFFON_SETTING(0,flip_display, LANG_FLIP_DISPLAY, false,"flip display", NULL),
|
2007-01-23 13:40:44 +00:00
|
|
|
/* display */
|
2007-01-26 05:45:06 +00:00
|
|
|
OFFON_SETTING(0,invert_cursor, LANG_INVERT_CURSOR,
|
|
|
|
true,"invert cursor", NULL),
|
2007-02-01 13:57:14 +00:00
|
|
|
OFFON_SETTING(F_THEMESETTING,statusbar, LANG_STATUS_BAR, true,"statusbar", NULL),
|
2007-01-26 05:45:06 +00:00
|
|
|
OFFON_SETTING(0,scrollbar, LANG_SCROLL_BAR, true,"scrollbar", NULL),
|
2007-01-23 13:40:44 +00:00
|
|
|
#if CONFIG_KEYPAD == RECORDER_PAD
|
2007-01-26 05:45:06 +00:00
|
|
|
OFFON_SETTING(0,buttonbar, LANG_BUTTON_BAR ,true,"buttonbar", NULL),
|
|
|
|
#endif
|
2007-02-11 10:09:38 +00:00
|
|
|
{F_T_INT,&global_settings.volume_type,LANG_VOLUME_DISPLAY, INT(0),
|
2007-01-26 05:45:06 +00:00
|
|
|
"volume display",graphic_numeric,UNUSED},
|
2007-02-11 10:09:38 +00:00
|
|
|
{F_T_INT,&global_settings.battery_display, LANG_BATTERY_DISPLAY, INT(0),
|
2007-01-26 05:45:06 +00:00
|
|
|
"battery display",graphic_numeric,UNUSED},
|
2007-02-11 10:09:38 +00:00
|
|
|
{F_T_INT,&global_settings.timeformat, LANG_TIMEFORMAT, INT(0),
|
2007-01-26 05:45:06 +00:00
|
|
|
"time format","24hour,12hour",UNUSED},
|
2007-01-23 13:40:44 +00:00
|
|
|
#endif /* HAVE_LCD_BITMAP */
|
2007-01-26 05:45:06 +00:00
|
|
|
OFFON_SETTING(0,show_icons, LANG_SHOW_ICONS ,true,"show icons", NULL),
|
2007-01-23 13:40:44 +00:00
|
|
|
/* system */
|
2007-02-11 10:09:38 +00:00
|
|
|
{F_T_INT,&global_settings.poweroff,LANG_POWEROFF_IDLE, INT(10),"idle poweroff",
|
2007-01-23 13:40:44 +00:00
|
|
|
"off,1,2,3,4,5,6,7,8,9,10,15,30,45,60",UNUSED},
|
|
|
|
SYSTEM_SETTING(NVRAM(4),runtime,0),
|
|
|
|
SYSTEM_SETTING(NVRAM(4),topruntime,0),
|
|
|
|
#if MEM > 1
|
2007-02-08 04:33:41 +00:00
|
|
|
INT_SETTING(0,max_files_in_playlist,LANG_MAX_FILES_IN_PLAYLIST,10000,
|
2007-02-12 00:31:29 +00:00
|
|
|
"max files in playlist", UNIT_INT,1000,20000,1000,NULL,NULL),
|
2007-02-11 10:09:38 +00:00
|
|
|
{F_T_INT,&global_settings.max_files_in_dir,LANG_MAX_FILES_IN_DIR,
|
2007-01-26 05:45:06 +00:00
|
|
|
INT(400),"max files in dir",NULL,UNUSED},
|
2007-01-23 13:40:44 +00:00
|
|
|
#else
|
2007-02-11 10:09:38 +00:00
|
|
|
{F_T_INT,&global_settings.max_files_in_playlist,LANG_MAX_FILES_IN_PLAYLIST,
|
2007-01-26 05:45:06 +00:00
|
|
|
INT(1000),"max files in playlist",NULL,UNUSED},
|
2007-02-11 10:09:38 +00:00
|
|
|
{F_T_INT,&global_settings.max_files_in_dir,LANG_MAX_FILES_IN_DIR,
|
2007-01-26 05:45:06 +00:00
|
|
|
INT(200),"max files in dir",NULL,UNUSED},
|
2007-01-23 13:40:44 +00:00
|
|
|
#endif
|
2007-02-11 10:09:38 +00:00
|
|
|
{F_T_INT,&global_settings.battery_capacity,LANG_BATTERY_CAPACITY,
|
2007-01-26 05:45:06 +00:00
|
|
|
INT(BATTERY_CAPACITY_DEFAULT),
|
2007-01-23 13:40:44 +00:00
|
|
|
"battery capacity",NULL,UNUSED},
|
|
|
|
#ifdef CONFIG_CHARGING
|
2007-01-26 05:45:06 +00:00
|
|
|
OFFON_SETTING(NVRAM(1), car_adapter_mode,
|
|
|
|
LANG_CAR_ADAPTER_MODE,false,"car adapter mode", NULL),
|
2007-01-23 13:40:44 +00:00
|
|
|
#endif
|
|
|
|
/* tuner */
|
|
|
|
#ifdef CONFIG_TUNER
|
2007-01-26 05:45:06 +00:00
|
|
|
OFFON_SETTING(0,fm_force_mono, LANG_FM_MONO_MODE,
|
|
|
|
false,"force fm mono", NULL),
|
2007-01-23 13:40:44 +00:00
|
|
|
SYSTEM_SETTING(NVRAM(4),last_frequency,0),
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#if BATTERY_TYPES_COUNT > 1
|
2007-02-11 10:09:38 +00:00
|
|
|
{F_T_INT,&global_settings.battery_type, LANG_BATTERY_TYPE, INT(0),
|
2007-01-23 13:40:44 +00:00
|
|
|
"battery type","alkaline,nimh",UNUSED},
|
|
|
|
#endif
|
|
|
|
#ifdef HAVE_REMOTE_LCD
|
|
|
|
/* remote lcd */
|
2007-02-11 10:09:38 +00:00
|
|
|
{F_T_INT,&global_settings.remote_contrast, LANG_CONTRAST,
|
2007-01-26 05:45:06 +00:00
|
|
|
INT(DEFAULT_REMOTE_CONTRAST_SETTING),
|
2007-01-23 13:40:44 +00:00
|
|
|
"remote contrast",NULL,UNUSED},
|
2007-01-26 05:45:06 +00:00
|
|
|
OFFON_SETTING(0,remote_invert, LANG_INVERT,
|
|
|
|
false,"remote invert", NULL),
|
|
|
|
OFFON_SETTING(0,remote_flip_display, LANG_FLIP_DISPLAY,
|
|
|
|
false,"remote flip display", NULL),
|
2007-02-11 10:09:38 +00:00
|
|
|
{F_T_INT,&global_settings.remote_backlight_timeout, LANG_BACKLIGHT, INT(6),
|
2007-01-23 13:40:44 +00:00
|
|
|
"remote backlight timeout",backlight_times_conf,UNUSED},
|
|
|
|
#ifdef CONFIG_CHARGING
|
2007-02-11 10:09:38 +00:00
|
|
|
{F_T_INT,&global_settings.remote_backlight_timeout_plugged,
|
2007-01-26 05:45:06 +00:00
|
|
|
LANG_BACKLIGHT_ON_WHEN_CHARGING, INT(11),
|
2007-01-23 13:40:44 +00:00
|
|
|
"remote backlight timeout plugged",backlight_times_conf,UNUSED},
|
|
|
|
#endif
|
|
|
|
#ifdef HAVE_REMOTE_LCD_TICKING
|
2007-01-26 05:45:06 +00:00
|
|
|
OFFON_SETTING(0,remote_reduce_ticking, LANG_REDUCE_TICKING,
|
|
|
|
false,"remote reduce ticking", NULL),
|
2007-01-23 13:40:44 +00:00
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef CONFIG_BACKLIGHT
|
2007-01-26 05:45:06 +00:00
|
|
|
OFFON_SETTING(0,bl_filter_first_keypress,
|
|
|
|
LANG_BACKLIGHT_FILTER_FIRST_KEYPRESS, false,
|
2007-01-23 13:40:44 +00:00
|
|
|
"backlight filters first keypress", NULL),
|
|
|
|
#ifdef HAVE_REMOTE_LCD
|
2007-01-26 05:45:06 +00:00
|
|
|
OFFON_SETTING(0,remote_bl_filter_first_keypress,
|
|
|
|
LANG_BACKLIGHT_FILTER_FIRST_KEYPRESS, false,
|
2007-01-23 13:40:44 +00:00
|
|
|
"backlight filters first remote keypress", NULL),
|
|
|
|
#endif
|
|
|
|
#endif /* CONFIG_BACKLIGHT */
|
|
|
|
|
|
|
|
/** End of old RTC config block **/
|
|
|
|
|
|
|
|
#ifdef CONFIG_BACKLIGHT
|
2007-01-26 05:45:06 +00:00
|
|
|
OFFON_SETTING(0,caption_backlight, LANG_CAPTION_BACKLIGHT,
|
|
|
|
false,"caption backlight",NULL),
|
2007-01-23 13:40:44 +00:00
|
|
|
#ifdef HAVE_REMOTE_LCD
|
2007-01-26 05:45:06 +00:00
|
|
|
OFFON_SETTING(0,remote_caption_backlight, LANG_CAPTION_BACKLIGHT,
|
|
|
|
false,"remote caption backlight",NULL),
|
2007-01-23 13:40:44 +00:00
|
|
|
#endif
|
|
|
|
#endif /* CONFIG_BACKLIGHT */
|
|
|
|
#ifdef HAVE_BACKLIGHT_BRIGHTNESS
|
2007-02-11 10:09:38 +00:00
|
|
|
{F_T_INT,&global_settings.brightness,LANG_BRIGHTNESS,
|
2007-01-26 05:45:06 +00:00
|
|
|
INT(DEFAULT_BRIGHTNESS_SETTING), "brightness", NULL ,UNUSED},
|
2007-01-23 13:40:44 +00:00
|
|
|
#endif
|
|
|
|
#ifdef HAVE_BACKLIGHT_PWM_FADING
|
|
|
|
/* backlight fading */
|
2007-02-11 10:09:38 +00:00
|
|
|
{F_T_INT,&global_settings.backlight_fade_in, LANG_BACKLIGHT_FADE_IN, INT(1),
|
2007-01-23 13:40:44 +00:00
|
|
|
"backlight fade in","off,500ms,1s,2s",UNUSED},
|
2007-02-11 10:09:38 +00:00
|
|
|
{F_T_INT,&global_settings.backlight_fade_out, LANG_BACKLIGHT_FADE_OUT, INT(1),
|
2007-01-23 13:40:44 +00:00
|
|
|
"backlight fade out","off,500ms,1s,2s,3s,4s,5s,10s",UNUSED},
|
|
|
|
#endif
|
2007-02-11 10:09:38 +00:00
|
|
|
{F_T_INT,&global_settings.scroll_speed, LANG_SCROLL_SPEED ,
|
2007-01-26 05:45:06 +00:00
|
|
|
INT(9),"scroll speed",NULL,UNUSED},
|
2007-02-11 10:09:38 +00:00
|
|
|
{F_T_INT,&global_settings.scroll_delay, LANG_SCROLL_DELAY,
|
2007-01-26 05:45:06 +00:00
|
|
|
INT(100),"scroll delay",NULL,UNUSED},
|
2007-02-11 10:09:38 +00:00
|
|
|
{F_T_INT,&global_settings.bidir_limit, LANG_BIDIR_SCROLL,
|
2007-01-26 05:45:06 +00:00
|
|
|
INT(50),"bidir limit",NULL,UNUSED},
|
2007-01-23 13:40:44 +00:00
|
|
|
#ifdef HAVE_REMOTE_LCD
|
2007-02-11 10:09:38 +00:00
|
|
|
{F_T_INT,&global_settings.remote_scroll_speed,LANG_SCROLL_SPEED,INT(9),
|
2007-01-26 05:45:06 +00:00
|
|
|
"remote scroll speed",NULL,UNUSED},
|
2007-02-11 10:09:38 +00:00
|
|
|
{F_T_INT,&global_settings.remote_scroll_step,LANG_SCROLL_STEP,INT(6),
|
2007-01-26 05:45:06 +00:00
|
|
|
"remote scroll step",NULL,UNUSED},
|
2007-02-11 10:09:38 +00:00
|
|
|
{F_T_INT,&global_settings.remote_scroll_delay,LANG_SCROLL_DELAY,INT(100),
|
2007-01-26 05:45:06 +00:00
|
|
|
"remote scroll delay",NULL,UNUSED},
|
2007-02-11 10:09:38 +00:00
|
|
|
{F_T_INT,&global_settings.remote_bidir_limit,LANG_BIDIR_SCROLL,INT(50),
|
2007-01-26 05:45:06 +00:00
|
|
|
"remote bidir limit",NULL,UNUSED},
|
2007-01-23 13:40:44 +00:00
|
|
|
#endif
|
|
|
|
#ifdef HAVE_LCD_BITMAP
|
2007-01-26 05:45:06 +00:00
|
|
|
OFFON_SETTING(0,offset_out_of_view,LANG_SCREEN_SCROLL_VIEW,
|
|
|
|
false,"Screen Scrolls Out Of View",NULL),
|
2007-02-11 10:09:38 +00:00
|
|
|
{F_T_INT,&global_settings.scroll_step,LANG_SCROLL_STEP,INT(6),"scroll step",NULL,UNUSED},
|
|
|
|
{F_T_INT,&global_settings.screen_scroll_step,LANG_SCREEN_SCROLL_STEP,
|
2007-01-26 05:45:06 +00:00
|
|
|
INT(16),"screen scroll step",NULL,UNUSED},
|
2007-01-23 13:40:44 +00:00
|
|
|
#endif /* HAVE_LCD_BITMAP */
|
2007-01-26 05:45:06 +00:00
|
|
|
#ifdef HAVE_LCD_CHARCELLS
|
2007-02-11 10:09:38 +00:00
|
|
|
{F_T_INT,&global_settings.jump_scroll,LANG_JUMP_SCROLL,INT(0),"jump scroll",NULL,UNUSED},
|
|
|
|
{F_T_INT,&global_settings.jump_scroll_delay,LANG_JUMP_SCROLL_DELAY,
|
2007-01-26 05:45:06 +00:00
|
|
|
INT(50),"jump scroll delay",NULL,UNUSED},
|
|
|
|
#endif
|
|
|
|
OFFON_SETTING(0,scroll_paginated,LANG_SCROLL_PAGINATED,
|
|
|
|
false,"scroll paginated",NULL),
|
2007-01-23 13:40:44 +00:00
|
|
|
#ifdef HAVE_LCD_COLOR
|
2007-02-11 10:09:38 +00:00
|
|
|
{F_T_INT|F_RGB|F_THEMESETTING ,&global_settings.fg_color,-1,INT(LCD_DEFAULT_FG),
|
2007-01-26 05:45:06 +00:00
|
|
|
"foreground color",NULL,UNUSED},
|
2007-02-11 10:09:38 +00:00
|
|
|
{F_T_INT|F_RGB|F_THEMESETTING ,&global_settings.bg_color,-1,INT(LCD_DEFAULT_BG),
|
2007-01-26 05:45:06 +00:00
|
|
|
"background color",NULL,UNUSED},
|
2007-01-23 13:40:44 +00:00
|
|
|
#endif
|
|
|
|
/* more playback */
|
2007-01-26 05:45:06 +00:00
|
|
|
OFFON_SETTING(0,play_selected,LANG_PLAY_SELECTED,true,"play selected",NULL),
|
|
|
|
OFFON_SETTING(0,party_mode,LANG_PARTY_MODE,false,"party mode",NULL),
|
|
|
|
OFFON_SETTING(0,fade_on_stop,LANG_FADE_ON_STOP,true,"volume fade",NULL),
|
2007-02-11 10:09:38 +00:00
|
|
|
{F_T_INT,&global_settings.ff_rewind_min_step,LANG_FFRW_STEP,INT(FF_REWIND_1000),
|
2007-01-23 13:40:44 +00:00
|
|
|
"scan min step","1,2,3,4,5,6,8,10,15,20,25,30,45,60",UNUSED},
|
2007-02-11 10:09:38 +00:00
|
|
|
{F_T_INT,&global_settings.ff_rewind_accel,LANG_FFRW_ACCEL,INT(3),
|
2007-01-26 05:45:06 +00:00
|
|
|
"scan accel",NULL,UNUSED},
|
2007-01-23 13:40:44 +00:00
|
|
|
#if CONFIG_CODEC == SWCODEC
|
2007-02-11 10:09:38 +00:00
|
|
|
{F_T_INT,&global_settings.buffer_margin,LANG_MP3BUFFER_MARGIN,INT(0),"antiskip",
|
2007-01-23 13:40:44 +00:00
|
|
|
"5s,15s,30s,1min,2min,3min,5min,10min",UNUSED},
|
|
|
|
#else
|
2007-02-11 10:09:38 +00:00
|
|
|
{F_T_INT,&global_settings.buffer_margin,LANG_MP3BUFFER_MARGIN,INT(0),
|
2007-01-26 05:45:06 +00:00
|
|
|
"antiskip",NULL,UNUSED},
|
2007-01-23 13:40:44 +00:00
|
|
|
#endif
|
|
|
|
/* disk */
|
|
|
|
#ifndef HAVE_MMC
|
2007-02-11 10:09:38 +00:00
|
|
|
{F_T_INT,&global_settings.disk_spindown,LANG_SPINDOWN,INT(5),"disk spindown",NULL,UNUSED},
|
2007-01-23 13:40:44 +00:00
|
|
|
#endif /* HAVE_MMC */
|
|
|
|
/* browser */
|
2007-02-11 10:09:38 +00:00
|
|
|
{F_T_INT,&global_settings.dirfilter,LANG_FILTER,INT(SHOW_SUPPORTED),"show files",
|
2007-01-23 13:40:44 +00:00
|
|
|
"all,supported,music,playlists"
|
|
|
|
#ifdef HAVE_TAGCACHE
|
|
|
|
",id3 database"
|
|
|
|
#endif
|
|
|
|
,UNUSED},
|
2007-01-26 05:45:06 +00:00
|
|
|
OFFON_SETTING(0,sort_case,LANG_SORT_CASE,false,"sort case",NULL),
|
|
|
|
OFFON_SETTING(0,browse_current,LANG_FOLLOW,false,"follow playlist",NULL),
|
|
|
|
OFFON_SETTING(0,playlist_viewer_icons,LANG_SHOW_ICONS,true,
|
2007-01-23 13:40:44 +00:00
|
|
|
"playlist viewer icons",NULL),
|
2007-01-26 05:45:06 +00:00
|
|
|
OFFON_SETTING(0,playlist_viewer_indices,LANG_SHOW_INDICES,true,
|
2007-01-23 13:40:44 +00:00
|
|
|
"playlist viewer indices",NULL),
|
2007-02-11 10:09:38 +00:00
|
|
|
{F_T_INT,&global_settings.playlist_viewer_track_display,LANG_TRACK_DISPLAY,
|
2007-01-26 05:45:06 +00:00
|
|
|
INT(0),"playlist viewer track display","track name,full path",UNUSED},
|
2007-02-11 07:32:58 +00:00
|
|
|
CHOICE_SETTING(0, recursive_dir_insert, LANG_RECURSE_DIRECTORY , RECURSE_OFF,
|
|
|
|
"recursive directory insert", off_on_ask, NULL , 3 ,
|
|
|
|
ID2P(LANG_OFF), ID2P(LANG_ON), ID2P(LANG_RESUME_SETTING_ASK)),
|
2007-01-23 13:40:44 +00:00
|
|
|
/* bookmarks */
|
2007-02-11 10:09:38 +00:00
|
|
|
{F_T_INT,&global_settings.autocreatebookmark,LANG_BOOKMARK_SETTINGS_AUTOCREATE,
|
2007-01-26 05:45:06 +00:00
|
|
|
INT(BOOKMARK_NO),"autocreate bookmarks",
|
2007-01-23 13:40:44 +00:00
|
|
|
"off,on,ask,recent only - on,recent only - ask",UNUSED},
|
2007-02-11 10:09:38 +00:00
|
|
|
{F_T_INT,&global_settings.autoloadbookmark,LANG_BOOKMARK_SETTINGS_AUTOLOAD,
|
2007-01-26 05:45:06 +00:00
|
|
|
INT(BOOKMARK_NO), "autoload bookmarks",off_on_ask,UNUSED},
|
2007-02-11 10:09:38 +00:00
|
|
|
{F_T_INT,&global_settings.usemrb,LANG_BOOKMARK_SETTINGS_MAINTAIN_RECENT_BOOKMARKS,
|
2007-01-26 05:45:06 +00:00
|
|
|
INT(BOOKMARK_NO),
|
2007-01-23 13:40:44 +00:00
|
|
|
"use most-recent-bookmarks","off,on,unique only",UNUSED},
|
|
|
|
#ifdef HAVE_LCD_BITMAP
|
|
|
|
/* peak meter */
|
2007-02-11 10:09:38 +00:00
|
|
|
{F_T_INT, &global_settings.peak_meter_clip_hold, LANG_PM_CLIP_HOLD,
|
2007-01-26 05:45:06 +00:00
|
|
|
INT(16), "peak meter clip hold",
|
2007-01-23 13:40:44 +00:00
|
|
|
"on,1,2,3,4,5,6,7,8,9,10,15,20,25,30,45,60,90,2min"
|
2007-01-26 05:45:06 +00:00
|
|
|
",3min,5min,10min,20min,45min,90min", UNUSED},
|
2007-02-11 10:09:38 +00:00
|
|
|
{F_T_INT,&global_settings.peak_meter_hold, LANG_PM_PEAK_HOLD,
|
2007-01-26 05:45:06 +00:00
|
|
|
INT(3),"peak meter hold",
|
2007-01-23 13:40:44 +00:00
|
|
|
"off,200ms,300ms,500ms,1,2,3,4,5,6,7,8,9,10,15,20,30,1min",UNUSED},
|
2007-02-11 10:09:38 +00:00
|
|
|
{F_T_INT,&global_settings.peak_meter_release,LANG_PM_RELEASE,
|
2007-01-26 05:45:06 +00:00
|
|
|
INT(8),"peak meter release",NULL,UNUSED},
|
|
|
|
OFFON_SETTING(0,peak_meter_dbfs,LANG_PM_DBFS,true,"peak meter dbfs",NULL),
|
2007-02-11 10:09:38 +00:00
|
|
|
{F_T_INT,&global_settings.peak_meter_min,LANG_PM_MIN,INT(60),"peak meter min",NULL,UNUSED},
|
|
|
|
{F_T_INT,&global_settings.peak_meter_max,LANG_PM_MAX,INT(0),"peak meter max",NULL,UNUSED},
|
2007-01-23 13:40:44 +00:00
|
|
|
#endif
|
|
|
|
#if (CONFIG_CODEC == MAS3587F) || (CONFIG_CODEC == MAS3539F)
|
2007-02-08 10:28:42 +00:00
|
|
|
SOUND_SETTING(0, mdb_strength, LANG_MDB_STRENGTH,
|
|
|
|
"mdb strength", SOUND_MDB_STRENGTH),
|
|
|
|
SOUND_SETTING(0, mdb_harmonics, LANG_MDB_HARMONICS,
|
|
|
|
"mdb harmonics", SOUND_MDB_HARMONICS),
|
|
|
|
SOUND_SETTING(0, mdb_center, LANG_MDB_CENTER,
|
|
|
|
"mdb center", SOUND_MDB_CENTER),
|
|
|
|
SOUND_SETTING(0, mdb_shape, LANG_MDB_SHAPE,
|
|
|
|
"mdb shape", SOUND_MDB_SHAPE),
|
|
|
|
OFFON_SETTING(0, mdb_enable, LANG_MDB_ENABLE,
|
|
|
|
false, "mdb enable", set_mdb_enable),
|
2007-01-23 13:40:44 +00:00
|
|
|
#endif
|
|
|
|
#if CONFIG_CODEC == MAS3507D
|
2007-01-26 05:45:06 +00:00
|
|
|
OFFON_SETTING(0,line_in,LANG_LINE_IN,false,"line in",NULL),
|
2007-01-23 13:40:44 +00:00
|
|
|
#endif
|
|
|
|
/* voice */
|
2007-02-11 10:09:38 +00:00
|
|
|
{F_T_INT,&global_settings.talk_dir,LANG_VOICE_DIR,INT(0),
|
2007-01-26 05:45:06 +00:00
|
|
|
"talk dir",off_number_spell_hover,UNUSED},
|
2007-02-11 10:09:38 +00:00
|
|
|
{F_T_INT,&global_settings.talk_file,LANG_VOICE_FILE,INT(0),
|
2007-01-26 05:45:06 +00:00
|
|
|
"talk file",off_number_spell_hover,UNUSED},
|
|
|
|
OFFON_SETTING(0,talk_menu,LANG_VOICE_MENU,true,"talk menu",NULL),
|
|
|
|
|
|
|
|
/* file sorting */
|
2007-02-11 10:09:38 +00:00
|
|
|
{F_T_INT,&global_settings.sort_file,LANG_SORT_FILE,INT(0),
|
2007-01-26 05:45:06 +00:00
|
|
|
"sort files","alpha,oldest,newest,type",UNUSED},
|
2007-02-11 10:09:38 +00:00
|
|
|
{F_T_INT,&global_settings.sort_dir,LANG_SORT_DIR,INT(0),
|
2007-01-26 05:45:06 +00:00
|
|
|
"sort dirs","alpha,oldest,newest",UNUSED},
|
|
|
|
BOOL_SETTING(0,id3_v1_first,LANG_ID3_ORDER,false,
|
|
|
|
"id3 tag priority","v2-v1,v1-v2",
|
2007-01-23 13:40:44 +00:00
|
|
|
LANG_ID3_V2_FIRST,LANG_ID3_V1_FIRST,NULL),
|
|
|
|
|
|
|
|
#ifdef HAVE_RECORDING
|
|
|
|
/* recording */
|
2007-01-26 05:45:06 +00:00
|
|
|
OFFON_SETTING(0,rec_startup,LANG_RECORD_STARTUP,false,
|
|
|
|
"rec screen on startup",NULL),
|
2007-02-11 10:09:38 +00:00
|
|
|
{F_T_INT,&global_settings.rec_timesplit, LANG_SPLIT_TIME, INT(0),"rec timesplit",
|
2007-01-23 13:40:44 +00:00
|
|
|
"off,00:05,00:10,00:15,00:30,01:00,01:14,01:20,02:00,"
|
|
|
|
"04:00,06:00,08:00,10:00,12:00,18:00,24:00",UNUSED},
|
2007-02-11 10:09:38 +00:00
|
|
|
{F_T_INT,&global_settings.rec_sizesplit,LANG_SPLIT_SIZE,INT(0),"rec sizesplit",
|
2007-01-23 13:40:44 +00:00
|
|
|
"off,5MB,10MB,15MB,32MB,64MB,75MB,100MB,128MB,"
|
|
|
|
"256MB,512MB,650MB,700MB,1GB,1.5GB,1.75GB",UNUSED},
|
2007-02-11 10:09:38 +00:00
|
|
|
{F_T_INT,&global_settings.rec_channels,LANG_RECORDING_CHANNELS,INT(0),
|
2007-01-26 05:45:06 +00:00
|
|
|
"rec channels","stereo,mono",UNUSED},
|
2007-02-11 10:09:38 +00:00
|
|
|
{F_T_INT,&global_settings.rec_split_type,LANG_RECORDING_CHANNELS,INT(0),
|
2007-01-26 05:45:06 +00:00
|
|
|
"rec split type","Split, Stop",UNUSED},
|
2007-02-11 10:09:38 +00:00
|
|
|
{F_T_INT,&global_settings.rec_split_method,LANG_SPLIT_MEASURE,INT(0),
|
2007-01-26 05:45:06 +00:00
|
|
|
"rec split method","Time,Filesize",UNUSED},
|
2007-02-11 10:09:38 +00:00
|
|
|
{F_T_INT,&global_settings.rec_source,LANG_RECORDING_SOURCE,INT(0),
|
2007-01-26 05:45:06 +00:00
|
|
|
"rec source","mic,line"
|
2007-01-23 13:40:44 +00:00
|
|
|
#ifdef HAVE_SPDIF_IN
|
|
|
|
",spdif"
|
|
|
|
#endif
|
|
|
|
#ifdef HAVE_FMRADIO_IN
|
|
|
|
",fmradio"
|
|
|
|
#endif
|
|
|
|
,UNUSED},
|
2007-02-11 10:09:38 +00:00
|
|
|
{F_T_INT,&global_settings.rec_prerecord_time,LANG_RECORD_PRERECORD_TIME,
|
2007-01-26 05:45:06 +00:00
|
|
|
INT(0),"prerecording time",NULL,UNUSED},
|
2007-02-11 10:09:38 +00:00
|
|
|
{F_T_INT,&global_settings.rec_directory,LANG_RECORD_DIRECTORY,
|
2007-01-26 05:45:06 +00:00
|
|
|
INT(0),"rec directory",REC_BASE_DIR ",current",UNUSED},
|
2007-01-23 13:40:44 +00:00
|
|
|
#ifdef CONFIG_BACKLIGHT
|
2007-02-11 10:09:38 +00:00
|
|
|
{F_T_INT,&global_settings.cliplight,LANG_CLIP_LIGHT,INT(0),
|
2007-01-26 05:45:06 +00:00
|
|
|
"cliplight","off,main,both,remote",UNUSED},
|
2007-01-23 13:40:44 +00:00
|
|
|
#endif
|
2007-02-11 10:09:38 +00:00
|
|
|
{F_T_INT,&global_settings.rec_mic_gain,LANG_RECORDING_GAIN,INT(DEFAULT_REC_MIC_GAIN),
|
2007-01-23 13:40:44 +00:00
|
|
|
"rec mic gain",NULL,UNUSED},
|
2007-02-11 10:09:38 +00:00
|
|
|
{F_T_INT,&global_settings.rec_left_gain,LANG_RECORDING_LEFT,INT(DEFAULT_REC_LEFT_GAIN),
|
2007-01-23 13:40:44 +00:00
|
|
|
"rec left gain",NULL,UNUSED},
|
2007-02-11 10:09:38 +00:00
|
|
|
{F_T_INT,&global_settings.rec_right_gain,LANG_RECORDING_RIGHT,
|
2007-01-26 05:45:06 +00:00
|
|
|
INT(DEFAULT_REC_RIGHT_GAIN),
|
2007-01-23 13:40:44 +00:00
|
|
|
"rec right gain",NULL,UNUSED},
|
|
|
|
#if CONFIG_CODEC == MAS3587F
|
2007-02-11 10:09:38 +00:00
|
|
|
{F_T_INT,&global_settings.rec_frequency,LANG_RECORDING_FREQUENCY,
|
2007-01-26 05:45:06 +00:00
|
|
|
INT(0),"rec frequency","44,48,32,22,24,16",UNUSED},
|
2007-02-11 10:09:38 +00:00
|
|
|
{F_T_INT,&global_settings.rec_quality,LANG_RECORDING_QUALITY,INT(5),
|
2007-01-26 05:45:06 +00:00
|
|
|
"rec quality",NULL,UNUSED},
|
|
|
|
OFFON_SETTING(0,rec_editable,LANG_RECORDING_EDITABLE,
|
|
|
|
false,"editable recordings",NULL),
|
2007-01-23 13:40:44 +00:00
|
|
|
#endif /* CONFIG_CODEC == MAS3587F */
|
|
|
|
#if CONFIG_CODEC == SWCODEC
|
2007-02-11 10:09:38 +00:00
|
|
|
{F_T_INT,&global_settings.rec_frequency,LANG_RECORDING_FREQUENCY,INT(REC_FREQ_DEFAULT),
|
2007-01-23 13:40:44 +00:00
|
|
|
"rec frequency",REC_FREQ_CFG_VAL_LIST,UNUSED},
|
2007-02-11 10:09:38 +00:00
|
|
|
{F_T_INT,&global_settings.rec_format,LANG_RECORDING_FORMAT,INT(REC_FORMAT_DEFAULT),
|
2007-01-23 13:40:44 +00:00
|
|
|
"rec format",REC_FORMAT_CFG_VAL_LIST,UNUSED},
|
|
|
|
/** Encoder settings start - keep these together **/
|
|
|
|
/* aiff_enc */
|
|
|
|
/* (no settings yet) */
|
|
|
|
/* mp3_enc */
|
2007-02-11 10:09:38 +00:00
|
|
|
{F_T_INT,&global_settings.mp3_enc_config.bitrate,-1,INT(MP3_ENC_BITRATE_CFG_DEFAULT),
|
2007-01-23 13:40:44 +00:00
|
|
|
"mp3_enc bitrate",MP3_ENC_BITRATE_CFG_VALUE_LIST,UNUSED},
|
|
|
|
/* wav_enc */
|
|
|
|
/* (no settings yet) */
|
|
|
|
/* wavpack_enc */
|
|
|
|
/* (no settings yet) */
|
|
|
|
/** Encoder settings end **/
|
|
|
|
#endif /* CONFIG_CODEC == SWCODEC */
|
|
|
|
/* values for the trigger */
|
2007-02-11 10:09:38 +00:00
|
|
|
{F_T_INT,&global_settings.rec_start_thres,LANG_RECORD_START_THRESHOLD,INT(-35),
|
2007-01-23 13:40:44 +00:00
|
|
|
"trigger start threshold",NULL,UNUSED},
|
2007-02-11 10:09:38 +00:00
|
|
|
{F_T_INT,&global_settings.rec_stop_thres,LANG_RECORD_STOP_THRESHOLD,INT(-45),
|
2007-01-23 13:40:44 +00:00
|
|
|
"trigger stop threshold",NULL,UNUSED},
|
2007-02-11 10:09:38 +00:00
|
|
|
{F_T_INT,&global_settings.rec_start_duration,LANG_RECORD_MIN_DURATION,INT(0),
|
2007-01-23 13:40:44 +00:00
|
|
|
"trigger start duration",trig_durations_conf,UNUSED},
|
2007-02-11 10:09:38 +00:00
|
|
|
{F_T_INT,&global_settings.rec_stop_postrec,LANG_RECORD_STOP_POSTREC,INT(2),
|
2007-01-23 13:40:44 +00:00
|
|
|
"trigger stop postrec",trig_durations_conf,UNUSED},
|
2007-02-11 10:09:38 +00:00
|
|
|
{F_T_INT,&global_settings.rec_stop_gap,LANG_RECORD_STOP_GAP,INT(1),
|
2007-01-23 13:40:44 +00:00
|
|
|
"trigger min gap",trig_durations_conf,UNUSED},
|
2007-02-11 10:09:38 +00:00
|
|
|
{F_T_INT,&global_settings.rec_trigger_mode,LANG_RECORD_TRIGGER_MODE,INT(0),
|
2007-01-23 13:40:44 +00:00
|
|
|
"trigger mode","off,once,repeat",UNUSED},
|
|
|
|
#endif /* HAVE_RECORDING */
|
|
|
|
|
|
|
|
#ifdef HAVE_SPDIF_POWER
|
2007-01-26 05:45:06 +00:00
|
|
|
OFFON_SETTING(0,spdif_enable,LANG_SPDIF_ENABLE,false,"spdif enable",NULL),
|
2007-01-23 13:40:44 +00:00
|
|
|
#endif
|
2007-02-11 10:09:38 +00:00
|
|
|
{F_T_INT,&global_settings.next_folder,LANG_NEXT_FOLDER,INT(FOLDER_ADVANCE_OFF),
|
2007-01-23 13:40:44 +00:00
|
|
|
"folder navigation","off,on,random",UNUSED},
|
2007-01-26 05:45:06 +00:00
|
|
|
OFFON_SETTING(0,runtimedb,LANG_RUNTIMEDB_ACTIVE,false,"gather runtime data",NULL),
|
2007-01-23 13:40:44 +00:00
|
|
|
|
|
|
|
#if CONFIG_CODEC == SWCODEC
|
2007-01-26 05:45:06 +00:00
|
|
|
/* replay gain */
|
|
|
|
OFFON_SETTING(0,replaygain,LANG_REPLAYGAIN,false,"replaygain",NULL),
|
2007-02-11 10:09:38 +00:00
|
|
|
{F_T_INT,&global_settings.replaygain_type,LANG_REPLAYGAIN_MODE,INT(REPLAYGAIN_ALBUM),
|
2007-01-23 13:40:44 +00:00
|
|
|
"replaygain type","track,album,track shuffle",UNUSED},
|
2007-01-26 05:45:06 +00:00
|
|
|
OFFON_SETTING(0,replaygain_noclip,LANG_REPLAYGAIN_NOCLIP,
|
|
|
|
false,"replaygain noclip",NULL),
|
2007-02-11 10:09:38 +00:00
|
|
|
{F_T_INT,&global_settings.replaygain_preamp,LANG_REPLAYGAIN_PREAMP,
|
2007-01-26 05:45:06 +00:00
|
|
|
INT(0),"replaygain preamp",NULL,UNUSED},
|
|
|
|
|
2007-02-11 10:09:38 +00:00
|
|
|
{F_T_INT,&global_settings.beep,LANG_BEEP,INT(0),"beep","off,weak,moderate,strong",UNUSED},
|
2007-01-26 05:45:06 +00:00
|
|
|
|
|
|
|
/* crossfade */
|
2007-02-11 10:09:38 +00:00
|
|
|
{F_T_INT,&global_settings.crossfade,LANG_CROSSFADE_ENABLE,INT(0),"crossfade",
|
2007-01-23 13:40:44 +00:00
|
|
|
"off,shuffle,track skip,shuffle and track skip,always",UNUSED},
|
2007-02-11 10:09:38 +00:00
|
|
|
{F_T_INT,&global_settings.crossfade_fade_in_delay,LANG_CROSSFADE_FADE_IN_DELAY,INT(0),
|
2007-01-23 13:40:44 +00:00
|
|
|
"crossfade fade in delay",NULL,UNUSED},
|
2007-02-11 10:09:38 +00:00
|
|
|
{F_T_INT,&global_settings.crossfade_fade_out_delay,
|
2007-01-26 05:45:06 +00:00
|
|
|
LANG_CROSSFADE_FADE_OUT_DELAY,INT(0),
|
2007-01-23 13:40:44 +00:00
|
|
|
"crossfade fade out delay",NULL,UNUSED},
|
2007-02-11 10:09:38 +00:00
|
|
|
{F_T_INT,&global_settings.crossfade_fade_in_duration,
|
2007-01-26 05:45:06 +00:00
|
|
|
LANG_CROSSFADE_FADE_IN_DURATION,INT(0),
|
2007-01-23 13:40:44 +00:00
|
|
|
"crossfade fade in duration",NULL,UNUSED},
|
2007-02-11 10:09:38 +00:00
|
|
|
{F_T_INT,&global_settings.crossfade_fade_out_duration,
|
2007-01-26 05:45:06 +00:00
|
|
|
LANG_CROSSFADE_FADE_OUT_DURATION,INT(0),
|
2007-01-23 13:40:44 +00:00
|
|
|
"crossfade fade out duration",NULL,UNUSED},
|
2007-02-11 10:09:38 +00:00
|
|
|
{F_T_INT,&global_settings.crossfade_fade_out_mixmode,
|
2007-01-26 05:45:06 +00:00
|
|
|
LANG_CROSSFADE_FADE_OUT_MODE,INT(0),
|
2007-01-23 13:40:44 +00:00
|
|
|
"crossfade fade out mode","crossfade,mix",UNUSED},
|
2007-02-08 10:28:42 +00:00
|
|
|
|
2007-01-26 05:45:06 +00:00
|
|
|
/* crossfeed */
|
2007-02-08 10:28:42 +00:00
|
|
|
OFFON_SETTING(0,crossfeed, LANG_CROSSFEED, false,
|
|
|
|
"crossfeed", dsp_set_crossfeed),
|
|
|
|
INT_SETTING(0, crossfeed_direct_gain, LANG_CROSSFEED_DIRECT_GAIN, 15,
|
2007-02-12 00:31:29 +00:00
|
|
|
"crossfeed direct gain", UNIT_DB, 0, 60, 5,
|
2007-02-08 10:28:42 +00:00
|
|
|
crossfeed_format, dsp_set_crossfeed_direct_gain),
|
|
|
|
INT_SETTING(0, crossfeed_cross_gain, LANG_CROSSFEED_CROSS_GAIN, 60,
|
2007-02-12 00:31:29 +00:00
|
|
|
"crossfeed cross gain", UNIT_DB, 30, 120, 5,
|
2007-02-08 10:28:42 +00:00
|
|
|
crossfeed_format, crossfeed_cross_gain_helper),
|
|
|
|
INT_SETTING(0, crossfeed_hf_attenuation, LANG_CROSSFEED_HF_ATTENUATION, 160,
|
2007-02-12 00:31:29 +00:00
|
|
|
"crossfeed hf attenuation", UNIT_DB, 60, 240, 5,
|
2007-02-08 10:28:42 +00:00
|
|
|
crossfeed_format, crossfeed_hf_att_helper),
|
|
|
|
INT_SETTING(0, crossfeed_hf_cutoff, LANG_CROSSFEED_HF_CUTOFF,700,
|
2007-02-12 00:31:29 +00:00
|
|
|
"crossfeed hf cutoff", UNIT_HERTZ, 500, 2000, 100,
|
2007-02-08 10:28:42 +00:00
|
|
|
crossfeed_format, crossfeed_hf_cutoff_helper),
|
2007-01-23 13:40:44 +00:00
|
|
|
/* equalizer */
|
2007-01-26 05:45:06 +00:00
|
|
|
OFFON_SETTING(0,eq_enabled,LANG_EQUALIZER_ENABLED,false,"eq enabled",NULL),
|
2007-02-11 10:09:38 +00:00
|
|
|
{F_T_INT,&global_settings.eq_precut,LANG_EQUALIZER_PRECUT,INT(0),
|
2007-01-23 13:40:44 +00:00
|
|
|
"eq precut",NULL,UNUSED},
|
|
|
|
/* 0..32768 Hz */
|
2007-02-11 10:09:38 +00:00
|
|
|
{F_T_INT,&global_settings.eq_band0_cutoff,LANG_EQUALIZER_BAND_CUTOFF,INT(60),
|
2007-01-23 13:40:44 +00:00
|
|
|
"eq band 0 cutoff",NULL,UNUSED},
|
2007-02-11 10:09:38 +00:00
|
|
|
{F_T_INT,&global_settings.eq_band1_cutoff,LANG_EQUALIZER_BAND_CUTOFF,INT(200),
|
2007-01-23 13:40:44 +00:00
|
|
|
"eq band 1 cutoff",NULL,UNUSED},
|
2007-02-11 10:09:38 +00:00
|
|
|
{F_T_INT,&global_settings.eq_band2_cutoff,LANG_EQUALIZER_BAND_CUTOFF,INT(800),
|
2007-01-23 13:40:44 +00:00
|
|
|
"eq band 2 cutoff",NULL,UNUSED},
|
2007-02-11 10:09:38 +00:00
|
|
|
{F_T_INT,&global_settings.eq_band3_cutoff,LANG_EQUALIZER_BAND_CUTOFF,INT(4000),
|
2007-01-23 13:40:44 +00:00
|
|
|
"eq band 3 cutoff",NULL,UNUSED},
|
2007-02-11 10:09:38 +00:00
|
|
|
{F_T_INT,&global_settings.eq_band4_cutoff,LANG_EQUALIZER_BAND_CUTOFF,INT(12000),
|
2007-01-23 13:40:44 +00:00
|
|
|
"eq band 4 cutoff",NULL,UNUSED},
|
|
|
|
/* 0..64 (or 0.0 to 6.4) */
|
2007-02-11 10:09:38 +00:00
|
|
|
{F_T_INT,&global_settings.eq_band0_q,LANG_EQUALIZER_BAND_Q,INT(7),
|
2007-01-23 13:40:44 +00:00
|
|
|
"eq band 0 q",NULL,UNUSED},
|
2007-02-11 10:09:38 +00:00
|
|
|
{F_T_INT,&global_settings.eq_band1_q,LANG_EQUALIZER_BAND_Q,INT(10),
|
2007-01-23 13:40:44 +00:00
|
|
|
"eq band 1 q",NULL,UNUSED},
|
2007-02-11 10:09:38 +00:00
|
|
|
{F_T_INT,&global_settings.eq_band2_q,LANG_EQUALIZER_BAND_Q,INT(10),
|
2007-01-23 13:40:44 +00:00
|
|
|
"eq band 2 q",NULL,UNUSED},
|
2007-02-11 10:09:38 +00:00
|
|
|
{F_T_INT,&global_settings.eq_band3_q,LANG_EQUALIZER_BAND_Q,INT(10),
|
2007-01-23 13:40:44 +00:00
|
|
|
"eq band 3 q",NULL,UNUSED},
|
2007-02-11 10:09:38 +00:00
|
|
|
{F_T_INT,&global_settings.eq_band4_q,LANG_EQUALIZER_BAND_Q,INT(7),
|
2007-01-23 13:40:44 +00:00
|
|
|
"eq band 4 q",NULL,UNUSED},
|
|
|
|
/* -240..240 (or -24db to +24db) */
|
2007-02-11 10:09:38 +00:00
|
|
|
{F_T_INT,&global_settings.eq_band0_gain,LANG_EQUALIZER_BAND_GAIN,INT(0),
|
2007-01-23 13:40:44 +00:00
|
|
|
"eq band 0 gain",NULL,UNUSED},
|
2007-02-11 10:09:38 +00:00
|
|
|
{F_T_INT,&global_settings.eq_band1_gain,LANG_EQUALIZER_BAND_GAIN,INT(0),
|
2007-01-23 13:40:44 +00:00
|
|
|
"eq band 1 gain",NULL,UNUSED},
|
2007-02-11 10:09:38 +00:00
|
|
|
{F_T_INT,&global_settings.eq_band2_gain,LANG_EQUALIZER_BAND_GAIN,INT(0),
|
2007-01-23 13:40:44 +00:00
|
|
|
"eq band 2 gain",NULL,UNUSED},
|
2007-02-11 10:09:38 +00:00
|
|
|
{F_T_INT,&global_settings.eq_band3_gain,LANG_EQUALIZER_BAND_GAIN,INT(0),
|
2007-01-23 13:40:44 +00:00
|
|
|
"eq band 3 gain",NULL,UNUSED},
|
2007-02-11 10:09:38 +00:00
|
|
|
{F_T_INT,&global_settings.eq_band4_gain,LANG_EQUALIZER_BAND_GAIN,INT(0),
|
2007-01-23 13:40:44 +00:00
|
|
|
"eq band 4 gain",NULL,UNUSED},
|
|
|
|
|
|
|
|
/* dithering */
|
2007-02-08 10:28:42 +00:00
|
|
|
OFFON_SETTING(0, dithering_enabled, LANG_DITHERING,
|
|
|
|
false, "dithering enabled", dsp_dither_enable),
|
2007-01-23 13:40:44 +00:00
|
|
|
#endif
|
|
|
|
#ifdef HAVE_DIRCACHE
|
2007-01-26 05:45:06 +00:00
|
|
|
OFFON_SETTING(0,dircache,LANG_DIRCACHE_ENABLE,false,"dircache",NULL),
|
2007-01-23 13:40:44 +00:00
|
|
|
SYSTEM_SETTING(NVRAM(4),dircache_size,0),
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef HAVE_TAGCACHE
|
|
|
|
#ifdef HAVE_TC_RAMCACHE
|
2007-01-26 05:45:06 +00:00
|
|
|
OFFON_SETTING(0,tagcache_ram,LANG_TAGCACHE_RAM,false,"tagcache_ram",NULL),
|
2007-01-23 13:40:44 +00:00
|
|
|
#endif
|
2007-01-26 05:45:06 +00:00
|
|
|
OFFON_SETTING(0,tagcache_autoupdate,
|
|
|
|
LANG_TAGCACHE_AUTOUPDATE,false,"tagcache_autoupdate",NULL),
|
2007-01-23 13:40:44 +00:00
|
|
|
#endif
|
|
|
|
|
2007-02-11 10:09:38 +00:00
|
|
|
{F_T_INT,&global_settings.default_codepage,LANG_DEFAULT_CODEPAGE,
|
2007-01-26 05:45:06 +00:00
|
|
|
INT(0),"default codepage",
|
2007-01-23 13:40:44 +00:00
|
|
|
"iso8859-1,iso8859-7,iso8859-8,cp1251,iso8859-11,cp1256,"
|
|
|
|
"iso8859-9,iso8859-2,sjis,gb2312,ksx1001,big5,utf-8,cp1256",UNUSED},
|
|
|
|
|
2007-01-26 05:45:06 +00:00
|
|
|
OFFON_SETTING(0,warnon_erase_dynplaylist,
|
|
|
|
LANG_WARN_ERASEDYNPLAYLIST_MENU,false,
|
2007-01-23 13:40:44 +00:00
|
|
|
"warn when erasing dynamic playlist",NULL),
|
|
|
|
|
|
|
|
#ifdef CONFIG_BACKLIGHT
|
|
|
|
#ifdef HAS_BUTTON_HOLD
|
2007-02-11 10:09:38 +00:00
|
|
|
{F_T_INT,&global_settings.backlight_on_button_hold,LANG_BACKLIGHT_ON_BUTTON_HOLD,INT(0),
|
2007-01-23 13:40:44 +00:00
|
|
|
"backlight on button hold","normal,off,on",UNUSED},
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef HAVE_LCD_SLEEP
|
2007-02-11 10:09:38 +00:00
|
|
|
{F_T_INT,&global_settings.lcd_sleep_after_backlight_off,
|
2007-01-26 05:45:06 +00:00
|
|
|
LANG_LCD_SLEEP_AFTER_BACKLIGHT_OFF,INT(3),
|
2007-01-23 13:40:44 +00:00
|
|
|
"lcd sleep after backlight off",
|
|
|
|
"always,never,5,10,15,20,30,45,60,90",UNUSED},
|
|
|
|
#endif
|
|
|
|
#endif /* CONFIG_BACKLIGHT */
|
|
|
|
|
|
|
|
#ifdef HAVE_WM8758
|
2007-01-26 05:45:06 +00:00
|
|
|
OFFON_SETTING(0,eq_hw_enabled,LANG_EQUALIZER_HARDWARE_ENABLED,false,
|
2007-01-23 13:40:44 +00:00
|
|
|
"eq hardware enabled",NULL),
|
|
|
|
|
2007-02-11 10:09:38 +00:00
|
|
|
{F_T_INT,&global_settings.eq_hw_band0_cutoff,LANG_EQUALIZER_BAND_CUTOFF,INT(1),
|
2007-01-23 13:40:44 +00:00
|
|
|
"eq hardware band 0 cutoff",
|
|
|
|
"80Hz,105Hz,135Hz,175Hz",UNUSED},
|
2007-02-11 10:09:38 +00:00
|
|
|
{F_T_INT,&global_settings.eq_hw_band0_gain,LANG_EQUALIZER_BAND_GAIN,INT(0),
|
2007-01-23 13:40:44 +00:00
|
|
|
"eq hardware band 0 gain",NULL,UNUSED},
|
|
|
|
|
2007-02-11 10:09:38 +00:00
|
|
|
{F_T_INT,&global_settings.eq_hw_band1_center,LANG_EQUALIZER_BAND_CENTER,INT(1),
|
2007-01-23 13:40:44 +00:00
|
|
|
"eq hardware band 1 center",
|
|
|
|
"230Hz,300Hz,385Hz,500Hz",UNUSED},
|
2007-02-11 10:09:38 +00:00
|
|
|
{F_T_INT,&global_settings.eq_hw_band1_bandwidth,LANG_EQUALIZER_BANDWIDTH,INT(0),
|
2007-01-23 13:40:44 +00:00
|
|
|
"eq hardware band 1 bandwidth","narrow,wide",UNUSED},
|
2007-02-11 10:09:38 +00:00
|
|
|
{F_T_INT,&global_settings.eq_hw_band1_gain,LANG_EQUALIZER_BAND_GAIN,INT(0),
|
2007-01-26 06:18:35 +00:00
|
|
|
"eq hardware band 1 gain",NULL,UNUSED},
|
2007-01-23 13:40:44 +00:00
|
|
|
|
2007-02-11 10:09:38 +00:00
|
|
|
{F_T_INT,&global_settings.eq_hw_band2_center,LANG_EQUALIZER_BAND_CENTER,INT(1),
|
2007-01-23 13:40:44 +00:00
|
|
|
"eq hardware band 2 center",
|
|
|
|
"650Hz,850Hz,1.1kHz,1.4kHz",UNUSED},
|
2007-02-11 10:09:38 +00:00
|
|
|
{F_T_INT,&global_settings.eq_hw_band2_bandwidth,LANG_EQUALIZER_BANDWIDTH,INT(0),
|
2007-01-23 13:40:44 +00:00
|
|
|
"eq hardware band 2 bandwidth","narrow,wide",UNUSED},
|
2007-02-11 10:09:38 +00:00
|
|
|
{F_T_INT,&global_settings.eq_hw_band2_gain,LANG_EQUALIZER_BAND_GAIN,INT(0),
|
2007-01-31 07:12:53 +00:00
|
|
|
"eq hardware band 2 gain",NULL,UNUSED},
|
2007-01-23 13:40:44 +00:00
|
|
|
|
2007-02-11 10:09:38 +00:00
|
|
|
{F_T_INT,&global_settings.eq_hw_band3_center,LANG_EQUALIZER_BAND_CENTER,INT(1),
|
2007-01-23 13:40:44 +00:00
|
|
|
"eq hardware band 3 center",
|
|
|
|
"1.8kHz,2.4kHz,3.2kHz,4.1kHz",UNUSED},
|
2007-02-11 10:09:38 +00:00
|
|
|
{F_T_INT,&global_settings.eq_hw_band3_bandwidth,LANG_EQUALIZER_BANDWIDTH,INT(0),
|
2007-01-23 13:40:44 +00:00
|
|
|
"eq hardware band 3 bandwidth","narrow,wide",UNUSED},
|
2007-02-11 10:09:38 +00:00
|
|
|
{F_T_INT,&global_settings.eq_hw_band3_gain,LANG_EQUALIZER_BAND_GAIN,INT(0),
|
2007-01-23 13:40:44 +00:00
|
|
|
"eq hardware band 3 gain",NULL,UNUSED},
|
|
|
|
|
2007-02-11 10:09:38 +00:00
|
|
|
{F_T_INT,&global_settings.eq_hw_band4_cutoff,LANG_EQUALIZER_BAND_CUTOFF,INT(1),
|
2007-01-23 13:40:44 +00:00
|
|
|
"eq hardware band 4 cutoff",
|
|
|
|
"5.3kHz,6.9kHz,9kHz,11.7kHz",UNUSED},
|
2007-02-11 10:09:38 +00:00
|
|
|
{F_T_INT,&global_settings.eq_hw_band4_gain,LANG_EQUALIZER_BAND_GAIN,INT(0),
|
2007-01-31 07:12:53 +00:00
|
|
|
"eq hardware band 4 gain",NULL,UNUSED},
|
2007-01-23 13:40:44 +00:00
|
|
|
#endif
|
|
|
|
|
2007-01-26 05:45:06 +00:00
|
|
|
OFFON_SETTING(0,hold_lr_for_scroll_in_list,-1,true,
|
2007-01-23 13:40:44 +00:00
|
|
|
"hold_lr_for_scroll_in_list",NULL),
|
2007-02-11 10:09:38 +00:00
|
|
|
{F_T_INT,&global_settings.show_path_in_browser,LANG_SHOW_PATH,INT(SHOW_PATH_OFF),
|
2007-01-23 13:40:44 +00:00
|
|
|
"show path in browser","off,current directory,full path",UNUSED},
|
|
|
|
|
|
|
|
#ifdef HAVE_AGC
|
2007-02-11 10:09:38 +00:00
|
|
|
{F_T_INT,&global_settings.rec_agc_preset_mic,LANG_RECORD_AGC_PRESET,INT(1),
|
2007-01-26 05:45:06 +00:00
|
|
|
"agc mic preset",NULL,UNUSED},
|
2007-02-11 10:09:38 +00:00
|
|
|
{F_T_INT,&global_settings.rec_agc_preset_line,LANG_RECORD_AGC_PRESET,INT(1),
|
2007-01-26 05:45:06 +00:00
|
|
|
"agc line preset",NULL,UNUSED},
|
2007-02-11 10:09:38 +00:00
|
|
|
{F_T_INT,&global_settings.rec_agc_maxgain_mic,-1,INT(104),
|
2007-01-23 13:40:44 +00:00
|
|
|
"agc maximum mic gain",NULL,UNUSED},
|
2007-02-11 10:09:38 +00:00
|
|
|
{F_T_INT,&global_settings.rec_agc_maxgain_line,-1,INT(96),
|
2007-01-23 13:40:44 +00:00
|
|
|
"agc maximum line gain",NULL,UNUSED},
|
2007-02-11 10:09:38 +00:00
|
|
|
{F_T_INT,&global_settings.rec_agc_cliptime,LANG_RECORD_AGC_CLIPTIME,INT(1),
|
2007-01-23 13:40:44 +00:00
|
|
|
"agc cliptime","0.2s,0.4s,0.6s,0.8,1s",UNUSED},
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef HAVE_REMOTE_LCD
|
|
|
|
#ifdef HAS_REMOTE_BUTTON_HOLD
|
2007-02-11 10:09:38 +00:00
|
|
|
{F_T_INT,&global_settings.remote_backlight_on_button_hold,
|
2007-01-26 05:45:06 +00:00
|
|
|
LANG_BACKLIGHT_ON_BUTTON_HOLD,INT(0),
|
2007-01-23 13:40:44 +00:00
|
|
|
"remote backlight on button hold","normal,off,on",UNUSED},
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
#ifdef HAVE_HEADPHONE_DETECTION
|
2007-02-11 10:09:38 +00:00
|
|
|
{F_T_INT,&global_settings.unplug_mode,LANG_UNPLUG,INT(0),
|
2007-01-26 05:45:06 +00:00
|
|
|
"pause on headphone unplug",NULL,UNUSED},
|
2007-02-11 10:09:38 +00:00
|
|
|
{F_T_INT,&global_settings.unplug_rw,LANG_UNPLUG_RW,INT(0),
|
2007-01-26 05:45:06 +00:00
|
|
|
"rewind duration on pause",NULL,UNUSED},
|
|
|
|
OFFON_SETTING(0,unplug_autoresume,LANG_UNPLUG_DISABLE_AUTORESUME,false,
|
2007-01-23 13:40:44 +00:00
|
|
|
"disable autoresume if phones not present",NULL),
|
|
|
|
#endif
|
|
|
|
#ifdef CONFIG_TUNER
|
2007-02-11 10:09:38 +00:00
|
|
|
{F_T_INT,&global_settings.fm_region,LANG_FM_REGION,INT(0),
|
2007-01-26 05:45:06 +00:00
|
|
|
"fm_region","eu,us,jp,kr",UNUSED},
|
2007-01-23 13:40:44 +00:00
|
|
|
#endif
|
|
|
|
|
2007-01-26 05:45:06 +00:00
|
|
|
OFFON_SETTING(0,audioscrobbler,LANG_AUDIOSCROBBLER,
|
|
|
|
false,"Last.fm Logging",NULL),
|
2007-01-23 13:40:44 +00:00
|
|
|
|
|
|
|
#ifdef HAVE_RECORDING
|
2007-02-11 10:09:38 +00:00
|
|
|
{F_T_INT,&global_settings.rec_trigger_type,LANG_RECORD_TRIGGER_TYPE,
|
2007-01-26 05:45:06 +00:00
|
|
|
INT(0),"trigger type","stop,pause,nf stp",UNUSED},
|
2007-01-23 13:40:44 +00:00
|
|
|
#endif
|
|
|
|
|
|
|
|
/** settings not in the old config blocks **/
|
|
|
|
#ifdef CONFIG_TUNER
|
2007-02-02 06:37:08 +00:00
|
|
|
FILENAME_SETTING(0, fmr_file, "fmr",
|
2007-02-01 13:57:14 +00:00
|
|
|
"", FMPRESET_PATH "/", ".fmr", MAX_FILENAME+1),
|
2007-01-23 13:40:44 +00:00
|
|
|
#endif
|
2007-02-01 13:57:14 +00:00
|
|
|
FILENAME_SETTING(F_THEMESETTING, font_file, "font",
|
|
|
|
"", FONT_DIR "/", ".fnt", MAX_FILENAME+1),
|
|
|
|
FILENAME_SETTING(F_THEMESETTING,wps_file, "wps",
|
|
|
|
"", WPS_DIR "/", ".wps", MAX_FILENAME+1),
|
2007-01-23 13:40:44 +00:00
|
|
|
FILENAME_SETTING(0,lang_file,"lang","",LANG_DIR "/",".lng",MAX_FILENAME+1),
|
|
|
|
#ifdef HAVE_REMOTE_LCD
|
2007-02-01 13:57:14 +00:00
|
|
|
FILENAME_SETTING(F_THEMESETTING,rwps_file,"rwps",
|
|
|
|
"", WPS_DIR "/", ".rwps", MAX_FILENAME+1),
|
2007-01-23 13:40:44 +00:00
|
|
|
#endif
|
|
|
|
#if LCD_DEPTH > 1
|
2007-02-01 13:57:14 +00:00
|
|
|
FILENAME_SETTING(F_THEMESETTING,backdrop_file,"backdrop",
|
|
|
|
"", BACKDROP_DIR "/", ".bmp", MAX_FILENAME+1),
|
2007-01-23 13:40:44 +00:00
|
|
|
#endif
|
|
|
|
#ifdef HAVE_LCD_BITMAP
|
2007-01-28 08:10:28 +00:00
|
|
|
FILENAME_SETTING(0,kbd_file,"kbd","",ROCKBOX_DIR "/",".kbd",MAX_FILENAME+1),
|
2007-01-23 13:40:44 +00:00
|
|
|
#endif
|
2007-02-01 10:47:22 +00:00
|
|
|
#ifdef HAVE_USB_POWER
|
|
|
|
#ifdef CONFIG_CHARGING
|
|
|
|
OFFON_SETTING(0,usb_charging,LANG_USB_CHARGING,false,"usb charging",NULL),
|
|
|
|
#endif
|
|
|
|
#endif
|
2007-01-23 13:40:44 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
const int nb_settings = sizeof(settings)/sizeof(*settings);
|