1 /***************************************************************************
3 * Open \______ \ ____ ____ | | _\_ |__ _______ ___
4 * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
5 * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
6 * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
10 * Copyright (C) 2007 Jonathan Gordon
12 * All files in this archive are subject to the GNU General Public License.
13 * See the file COPYING in the source tree root for full license agreement.
15 * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
16 * KIND, either express or implied.
18 ****************************************************************************/
29 #include "backlight.h"
31 #include "settings_list.h"
38 #include "powermgmt.h"
40 #include "lcd-remote.h"
42 #include "rbunicode.h"
43 #ifdef HAVE_LCD_BITMAP
44 #include "peakmeter.h"
46 #include "menus/eq_menu.h"
51 #define NVRAM(bytes) (bytes<<F_NVRAM_MASK_SHIFT)
52 /** NOTE: NVRAM_CONFIG_VERSION is in settings_list.h
53 and you may need to update it if you edit this file */
55 #define UNUSED {.RESERVED=NULL}
56 #define INT(a) {.int_ = a}
57 #define UINT(a) {.uint_ = a}
58 #define BOOL(a) {.bool_ = a}
59 #define CHARPTR(a) {.charptr = a}
60 #define UCHARPTR(a) {.ucharptr = a}
61 #define FUNCTYPE(a) {.func = a}
62 #define NODEFAULT INT(0)
64 /* in all the following macros the args are:
65 - flags: bitwise | or the F_ bits in settings_list.h
66 - var: pointer to the variable being changed (usually in global_settings)
67 - lang_ig: LANG_* id to display in menus and setting screens for the settings
68 - default: the default value for the variable, set if settings are reset
69 - name: the name of the setting in config files
70 - cfg_vals: comma seperated list of legal values in cfg files.
71 NULL if a number is written to the file instead.
72 - cb: the callback used by the setting screen.
75 /* Use for int settings which use the set_sound() function to set them */
76 #define SOUND_SETTING(flags,var,lang_id,name,setting) \
77 {flags|F_T_INT|F_T_SOUND|F_SOUNDSETTING, &global_settings.var, \
78 lang_id, NODEFAULT,name,NULL, \
79 {.sound_setting=(struct sound_setting[]){{setting}}} }
81 /* Use for bool variables which don't use LANG_SET_BOOL_YES and LANG_SET_BOOL_NO,
82 or dont save as "off" or "on" in the cfg */
83 #define BOOL_SETTING(flags,var,lang_id,default,name,cfgvals,yes,no,cb) \
84 {flags|F_BOOL_SETTING, &global_settings.var, \
85 lang_id, BOOL(default),name,cfgvals, \
86 {.bool_setting=(struct bool_setting[]){{cb,yes,no}}} }
88 /* bool setting which does use LANG_YES and _NO and save as "off,on" */
89 #define OFFON_SETTING(flags,var,lang_id,default,name,cb) \
90 {flags|F_BOOL_SETTING, &global_settings.var, \
91 lang_id, BOOL(default),name,off_on, \
92 {.bool_setting=(struct bool_setting[]) \
93 {{cb,LANG_SET_BOOL_YES,LANG_SET_BOOL_NO}}} }
95 /* int variable which is NOT saved to .cfg files,
96 (Use NVRAM() in the flags to save to the nvram (or nvram.bin file) */
97 #define SYSTEM_SETTING(flags,var,default) \
98 {flags|F_T_INT, &global_status.var,-1, INT(default), \
101 /* setting which stores as a filename in the .cfgvals
102 prefix: The absolute path to not save in the variable, e.g /.rockbox/wps_file
103 suffx: The file extention (usually...) e.g .wps_file */
104 #define FILENAME_SETTING(flags,var,name,default,prefix,suffix,len) \
105 {flags|F_T_UCHARPTR, &global_settings.var,-1, \
106 CHARPTR(default),name,NULL, \
107 {.filename_setting= \
108 (struct filename_setting[]){{prefix,suffix,len}}} }
110 /* Used for settings which use the set_option() setting screen.
111 the ... arg is a list of pointers to strings to display in the setting screen.
112 These can either be literal strings, or ID2P(LANG_*) */
113 #define CHOICE_SETTING(flags,var,lang_id,default,name,cfg_vals,cb,count,...) \
114 {flags|F_CHOICE_SETTING|F_T_INT, &global_settings.var, lang_id, \
115 INT(default), name, cfg_vals, \
116 {.choice_setting = (struct choice_setting[]){ \
117 {cb, count, {.desc = (const unsigned char*[]){__VA_ARGS__}}}}}}
119 /* Similar to above, except the strings to display are taken from cfg_vals,
120 the ... arg is a list of ID's to talk for the strings... can use TALK_ID()'s */
121 #define STRINGCHOICE_SETTING(flags,var,lang_id,default,name,cfg_vals,cb,count,...) \
122 {flags|F_CHOICE_SETTING|F_T_INT|F_CHOICETALKS, \
123 &global_settings.var, lang_id, \
124 INT(default), name, cfg_vals, \
125 {.choice_setting = (struct choice_setting[]){ \
126 {cb, count, {.talks = (const int[]){__VA_ARGS__}}}}}}
128 /* for settings which use the set_int() setting screen.
129 unit is the UNIT_ define to display/talk.
130 the first one saves a string to the config file,
131 the second one saves the variable value to the config file */
132 #define INT_SETTING_W_CFGVALS(flags, var, lang_id, default, name, cfg_vals, \
133 unit, min, max, step, formatter, get_talk_id, cb) \
134 {flags|F_INT_SETTING|F_T_INT, &global_settings.var, \
135 lang_id, INT(default), name, cfg_vals, \
136 {.int_setting = (struct int_setting[]){ \
137 {cb, unit, min, max, step, formatter, get_talk_id}}}}
138 #define INT_SETTING(flags, var, lang_id, default, name, \
139 unit, min, max, step, formatter, get_talk_id, cb) \
140 {flags|F_INT_SETTING|F_T_INT, &global_settings.var, \
141 lang_id, INT(default), name, NULL, \
142 {.int_setting = (struct int_setting[]){ \
143 {cb, unit, min, max, step, formatter, get_talk_id}}}}
144 #define INT_SETTING_NOWRAP(flags, var, lang_id, default, name, \
145 unit, min, max, step, formatter, get_talk_id, cb) \
146 {flags|F_INT_SETTING|F_T_INT|F_NO_WRAP, &global_settings.var, \
147 lang_id, INT(default), name, NULL, \
148 {.int_setting = (struct int_setting[]){ \
149 {cb, unit, min, max, step, formatter, get_talk_id}}}}
151 #define TABLE_SETTING(flags, var, lang_id, default, name, cfg_vals, \
152 unit, formatter, get_talk_id, cb, count, ...) \
153 {flags|F_TABLE_SETTING|F_T_INT, &global_settings.var, \
154 lang_id, INT(default), name, cfg_vals, \
155 {.table_setting = (struct table_setting[]) { \
156 {cb, formatter, get_talk_id, unit, count, \
157 (const int[]){__VA_ARGS__}}}}}
159 /* some sets of values which are used more than once, to save memory */
160 static const char off_on
[] = "off,on";
161 static const char off_on_ask
[] = "off,on,ask";
162 static const char off_number_spell
[] = "off,number,spell";
163 #ifdef HAVE_LCD_BITMAP
164 static const char graphic_numeric
[] = "graphic,numeric";
167 #ifdef HAVE_RECORDING
168 /* keep synchronous to trig_durations and
169 trigger_times in settings_apply_trigger */
170 static const char trig_durations_conf
[] =
171 "0s,1s,2s,5s,10s,15s,20s,25s,30s,1min,2min,5min,10min";
172 /* these should be in the config.h files */
173 #if CONFIG_CODEC == MAS3587F
174 # define DEFAULT_REC_MIC_GAIN 8
175 # define DEFAULT_REC_LEFT_GAIN 2
176 # define DEFAULT_REC_RIGHT_GAIN 2
177 #elif CONFIG_CODEC == SWCODEC
179 # define DEFAULT_REC_MIC_GAIN 16
180 # define DEFAULT_REC_LEFT_GAIN 0
181 # define DEFAULT_REC_RIGHT_GAIN 0
182 # elif defined(HAVE_TLV320)
183 # define DEFAULT_REC_MIC_GAIN 0
184 # define DEFAULT_REC_LEFT_GAIN 0
185 # define DEFAULT_REC_RIGHT_GAIN 0
186 # elif defined(HAVE_WM8975)
187 # define DEFAULT_REC_MIC_GAIN 16
188 # define DEFAULT_REC_LEFT_GAIN 0
189 # define DEFAULT_REC_RIGHT_GAIN 0
190 # elif defined(HAVE_WM8758)
191 # define DEFAULT_REC_MIC_GAIN 16
192 # define DEFAULT_REC_LEFT_GAIN 0
193 # define DEFAULT_REC_RIGHT_GAIN 0
194 # elif defined(HAVE_WM8731)
195 # define DEFAULT_REC_MIC_GAIN 16
196 # define DEFAULT_REC_LEFT_GAIN 0
197 # define DEFAULT_REC_RIGHT_GAIN 0
201 #endif /* HAVE_RECORDING */
203 static void formatter_unit_0_is_off(char *buffer
, size_t buffer_size
,
204 int val
, const char *unit
)
207 strcpy(buffer
, str(LANG_OFF
));
209 snprintf(buffer
, buffer_size
, "%d %s", val
, unit
);
212 static int32_t getlang_unit_0_is_off(int value
, int unit
)
217 return TALK_ID(value
,unit
);
220 #ifdef HAVE_BACKLIGHT
221 static void backlight_formatter(char *buffer
, size_t buffer_size
,
222 int val
, const char *unit
)
225 strcpy(buffer
, str(LANG_OFF
));
227 strcpy(buffer
, str(LANG_ON
));
229 snprintf(buffer
, buffer_size
, "%d %s", val
, unit
);
231 static int32_t backlight_getlang(int value
, int unit
)
238 return TALK_ID(value
, unit
);
242 static void scanaccel_formatter(char *buffer
, size_t buffer_size
,
243 int val
, const char *unit
)
247 strcpy(buffer
, str(LANG_OFF
));
249 snprintf(buffer
, buffer_size
, "2x/%ds", val
);
252 #if CONFIG_CODEC == SWCODEC
253 static void crossfeed_cross_set(int val
)
256 dsp_set_crossfeed_cross_params(global_settings
.crossfeed_cross_gain
,
257 global_settings
.crossfeed_hf_attenuation
,
258 global_settings
.crossfeed_hf_cutoff
);
261 static void db_format(char* buffer
, size_t buffer_size
, int value
,
266 snprintf(buffer
, buffer_size
, "%s%d.%d %s", value
< 0 ? "-" : "",
267 v
/ 10, v
% 10, unit
);
271 #if (CONFIG_CODEC == MAS3587F) || (CONFIG_CODEC == MAS3539F)
272 static void set_mdb_enable(bool value
)
274 sound_set_mdb_enable((int)value
);
276 static void set_superbass(bool value
)
278 sound_set_superbass((int)value
);
282 #ifdef HAVE_LCD_CHARCELLS
283 static void jumpscroll_format(char* buffer
, size_t buffer_size
, int value
,
290 strcpy(buffer
, str(LANG_OFF
));
293 strcpy(buffer
, str(LANG_ONE_TIME
));
298 snprintf(buffer
, buffer_size
, "%d", value
);
301 strcpy(buffer
, str(LANG_ALWAYS
));
305 static int32_t jumpscroll_getlang(int value
, int unit
)
312 return LANG_ONE_TIME
;
316 return TALK_ID(value
, unit
);
322 #endif /* HAVE_LCD_CHARCELLS */
325 const struct settings_list settings
[] = {
327 SOUND_SETTING(F_NO_WRAP
,volume
, LANG_VOLUME
, "volume", SOUND_VOLUME
),
328 SOUND_SETTING(0, balance
, LANG_BALANCE
, "balance", SOUND_BALANCE
),
329 SOUND_SETTING(F_NO_WRAP
,bass
, LANG_BASS
, "bass", SOUND_BASS
),
330 SOUND_SETTING(F_NO_WRAP
,treble
, LANG_TREBLE
, "treble", SOUND_TREBLE
),
332 #if (CONFIG_CODEC == MAS3587F) || (CONFIG_CODEC == MAS3539F)
333 SOUND_SETTING(0,loudness
, LANG_LOUDNESS
, "loudness", SOUND_LOUDNESS
),
334 STRINGCHOICE_SETTING(F_SOUNDSETTING
,avc
,LANG_AUTOVOL
,0,"auto volume",
335 "off,20ms,2,4,8,", sound_set_avc
, 5,
336 LANG_OFF
,TALK_ID(20, UNIT_MS
),TALK_ID(2, UNIT_SEC
),
337 TALK_ID(4, UNIT_SEC
),TALK_ID(8, UNIT_SEC
)),
338 OFFON_SETTING(F_SOUNDSETTING
, superbass
, LANG_SUPERBASS
, false, "superbass", set_superbass
),
341 CHOICE_SETTING(F_SOUNDSETTING
, channel_config
, LANG_CHANNEL_CONFIGURATION
,
343 "stereo,mono,custom,mono left,mono right,karaoke",
345 6, ID2P(LANG_CHANNEL_STEREO
), ID2P(LANG_CHANNEL_MONO
),
346 ID2P(LANG_CHANNEL_CUSTOM
), ID2P(LANG_CHANNEL_LEFT
),
347 ID2P(LANG_CHANNEL_RIGHT
), ID2P(LANG_CHANNEL_KARAOKE
)),
348 SOUND_SETTING(F_SOUNDSETTING
, stereo_width
, LANG_STEREO_WIDTH
,
349 "stereo_width", SOUND_STEREO_WIDTH
),
351 OFFON_SETTING(0, playlist_shuffle
, LANG_SHUFFLE
, false, "shuffle", NULL
),
352 SYSTEM_SETTING(NVRAM(4),resume_index
,-1),
353 SYSTEM_SETTING(NVRAM(4),resume_first_index
,0),
354 SYSTEM_SETTING(NVRAM(4),resume_offset
,-1),
355 SYSTEM_SETTING(NVRAM(4),resume_seed
,-1),
356 CHOICE_SETTING(0, repeat_mode
, LANG_REPEAT
, REPEAT_ALL
, "repeat",
357 "off,all,one,shuffle"
358 #ifdef AB_REPEAT_ENABLE
362 #ifdef AB_REPEAT_ENABLE
367 ID2P(LANG_OFF
), ID2P(LANG_ALL
), ID2P(LANG_REPEAT_ONE
), ID2P(LANG_SHUFFLE
)
368 #ifdef AB_REPEAT_ENABLE
369 ,ID2P(LANG_REPEAT_AB
)
371 ), /* CHOICE_SETTING( repeat_mode ) */
373 #ifdef HAVE_LCD_CONTRAST
374 /* its easier to leave this one un-macro()ed for the time being */
375 {F_T_INT
|F_DEF_ISFUNC
|F_INT_SETTING
, &global_settings
.contrast
,
376 LANG_CONTRAST
, FUNCTYPE(lcd_default_contrast
),
377 "contrast", NULL
, {.int_setting
= (struct int_setting
[]){
378 { lcd_set_contrast
, UNIT_INT
, MIN_CONTRAST_SETTING
,
379 MAX_CONTRAST_SETTING
, 1, NULL
, NULL
}}}},
381 #ifdef HAVE_BACKLIGHT
382 TABLE_SETTING(F_ALLOW_ARBITRARY_VALS
, backlight_timeout
, LANG_BACKLIGHT
, 5,
383 "backlight timeout", off_on
, UNIT_SEC
, backlight_formatter
,
384 backlight_getlang
, backlight_set_timeout
, 20,
385 -1,0,1,2,3,4,5,6,7,8,9,10,15,20,25,30,45,60,90,120),
387 TABLE_SETTING(F_ALLOW_ARBITRARY_VALS
, backlight_timeout_plugged
,
388 LANG_BACKLIGHT_ON_WHEN_CHARGING
, 10,
389 "backlight timeout plugged", off_on
, UNIT_SEC
,
390 backlight_formatter
, backlight_getlang
,
391 backlight_set_timeout_plugged
, 20,
392 -1,0,1,2,3,4,5,6,7,8,9,10,15,20,25,30,45,60,90,120),
394 #endif /* HAVE_BACKLIGHT */
395 #ifdef HAVE_LCD_BITMAP
396 #ifdef HAVE_LCD_INVERT
397 BOOL_SETTING(0, invert
, LANG_INVERT
, false ,"invert", off_on
,
398 LANG_INVERT_LCD_INVERSE
, LANG_NORMAL
, lcd_set_invert_display
),
401 OFFON_SETTING(0,flip_display
, LANG_FLIP_DISPLAY
, false,"flip display", NULL
),
404 CHOICE_SETTING(F_TEMPVAR
|F_THEMESETTING
, cursor_style
, LANG_INVERT_CURSOR
, 1,
405 #ifdef HAVE_LCD_COLOR
406 "selector type", "pointer,bar (inverse),bar (color),bar (gradient)",
408 ID2P(LANG_INVERT_CURSOR_POINTER
), ID2P(LANG_INVERT_CURSOR_BAR
),
409 ID2P(LANG_INVERT_CURSOR_COLOR
), ID2P(LANG_INVERT_CURSOR_GRADIENT
)),
411 "selector type", "pointer,bar (inverse)", NULL
, 2,
412 ID2P(LANG_INVERT_CURSOR_POINTER
), ID2P(LANG_INVERT_CURSOR_BAR
)),
414 OFFON_SETTING(F_THEMESETTING
|F_TEMPVAR
, statusbar
,
415 LANG_STATUS_BAR
, true,"statusbar", NULL
),
416 OFFON_SETTING(0,scrollbar
, LANG_SCROLL_BAR
, true,"scrollbar", NULL
),
417 #if CONFIG_KEYPAD == RECORDER_PAD
418 OFFON_SETTING(0,buttonbar
, LANG_BUTTON_BAR
,true,"buttonbar", NULL
),
420 CHOICE_SETTING(0, volume_type
, LANG_VOLUME_DISPLAY
, 0,
421 "volume display", graphic_numeric
, NULL
, 2,
422 ID2P(LANG_DISPLAY_GRAPHIC
), ID2P(LANG_DISPLAY_NUMERIC
)),
423 CHOICE_SETTING(0, battery_display
, LANG_BATTERY_DISPLAY
, 0,
424 "battery display", graphic_numeric
, NULL
, 2,
425 ID2P(LANG_DISPLAY_GRAPHIC
), ID2P(LANG_DISPLAY_NUMERIC
)),
427 CHOICE_SETTING(0, timeformat
, LANG_TIMEFORMAT
, 0,
428 "time format", "24hour,12hour", NULL
, 2,
429 ID2P(LANG_24_HOUR_CLOCK
), ID2P(LANG_12_HOUR_CLOCK
)),
431 #endif /* HAVE_LCD_BITMAP */
432 OFFON_SETTING(0,show_icons
, LANG_SHOW_ICONS
,true,"show icons", NULL
),
434 TABLE_SETTING(F_ALLOW_ARBITRARY_VALS
, poweroff
, LANG_POWEROFF_IDLE
, 10,
435 "idle poweroff", "off", UNIT_MIN
, formatter_unit_0_is_off
,
436 getlang_unit_0_is_off
, set_poweroff_timeout
, 15,
437 0,1,2,3,4,5,6,7,8,9,10,15,30,45,60),
438 SYSTEM_SETTING(NVRAM(4),runtime
,0),
439 SYSTEM_SETTING(NVRAM(4),topruntime
,0),
441 INT_SETTING(0,max_files_in_playlist
,LANG_MAX_FILES_IN_PLAYLIST
,
447 "max files in playlist", UNIT_INT
,1000,32000,1000,NULL
,NULL
,NULL
),
448 INT_SETTING(0,max_files_in_dir
,LANG_MAX_FILES_IN_DIR
,
454 "max files in dir", UNIT_INT
,50,10000,50,NULL
,NULL
,NULL
),
455 #if BATTERY_CAPACITY_INC > 0
456 INT_SETTING(0, battery_capacity
, LANG_BATTERY_CAPACITY
, BATTERY_CAPACITY_DEFAULT
,
457 "battery capacity", UNIT_MAH
,
458 BATTERY_CAPACITY_MIN
, BATTERY_CAPACITY_MAX
, BATTERY_CAPACITY_INC
,
462 OFFON_SETTING(NVRAM(1), car_adapter_mode
,
463 LANG_CAR_ADAPTER_MODE
, false, "car adapter mode", NULL
),
467 OFFON_SETTING(0,fm_force_mono
, LANG_FM_MONO_MODE
,
468 false, "force fm mono", toggle_mono_mode
),
469 SYSTEM_SETTING(NVRAM(4),last_frequency
,0),
472 #if BATTERY_TYPES_COUNT > 1
473 CHOICE_SETTING(0, battery_type
, LANG_BATTERY_TYPE
, 0,
474 "battery type","alkaline,nimh", NULL
, 2,
475 ID2P(LANG_BATTERY_TYPE_ALKALINE
), ID2P(LANG_BATTERY_TYPE_NIMH
)),
477 #ifdef HAVE_REMOTE_LCD
479 INT_SETTING(0, remote_contrast
, LANG_CONTRAST
, DEFAULT_REMOTE_CONTRAST_SETTING
,
480 "remote contrast", UNIT_INT
, MIN_REMOTE_CONTRAST_SETTING
,
481 MAX_REMOTE_CONTRAST_SETTING
, 1, NULL
, NULL
, lcd_remote_set_contrast
),
482 BOOL_SETTING(0, remote_invert
, LANG_INVERT
, false ,"remote invert", off_on
,
483 LANG_INVERT_LCD_INVERSE
, LANG_NORMAL
, lcd_remote_set_invert_display
),
484 OFFON_SETTING(0,remote_flip_display
, LANG_FLIP_DISPLAY
,
485 false,"remote flip display", NULL
),
486 TABLE_SETTING(F_ALLOW_ARBITRARY_VALS
, remote_backlight_timeout
,
487 LANG_BACKLIGHT
, 5, "remote backlight timeout", off_on
,
488 UNIT_SEC
, backlight_formatter
, backlight_getlang
,
489 remote_backlight_set_timeout
, 20,
490 -1,0,1,2,3,4,5,6,7,8,9,10,15,20,25,30,45,60,90,120),
492 TABLE_SETTING(F_ALLOW_ARBITRARY_VALS
, remote_backlight_timeout_plugged
,
493 LANG_BACKLIGHT_ON_WHEN_CHARGING
, 10,
494 "remote backlight timeout plugged", off_on
, UNIT_SEC
,
495 backlight_formatter
, backlight_getlang
,
496 remote_backlight_set_timeout_plugged
, 20,
497 -1,0,1,2,3,4,5,6,7,8,9,10,15,20,25,30,45,60,90,120),
499 #ifdef HAVE_REMOTE_LCD_TICKING
500 OFFON_SETTING(0,remote_reduce_ticking
, LANG_REDUCE_TICKING
,
501 false,"remote reduce ticking", NULL
),
505 #ifdef HAVE_BACKLIGHT
506 OFFON_SETTING(0,bl_filter_first_keypress
,
507 LANG_BACKLIGHT_FILTER_FIRST_KEYPRESS
, false,
508 "backlight filters first keypress", NULL
),
509 #ifdef HAVE_REMOTE_LCD
510 OFFON_SETTING(0,remote_bl_filter_first_keypress
,
511 LANG_BACKLIGHT_FILTER_FIRST_KEYPRESS
, false,
512 "backlight filters first remote keypress", NULL
),
514 #endif /* HAVE_BACKLIGHT */
516 /** End of old RTC config block **/
518 #ifdef HAVE_BACKLIGHT
519 OFFON_SETTING(0,caption_backlight
, LANG_CAPTION_BACKLIGHT
,
520 false,"caption backlight",NULL
),
521 #ifdef HAVE_REMOTE_LCD
522 OFFON_SETTING(0,remote_caption_backlight
, LANG_CAPTION_BACKLIGHT
,
523 false,"remote caption backlight",NULL
),
525 #endif /* HAVE_BACKLIGHT */
526 #ifdef HAVE_BACKLIGHT_BRIGHTNESS
527 INT_SETTING(F_NO_WRAP
, brightness
, LANG_BRIGHTNESS
, DEFAULT_BRIGHTNESS_SETTING
,
528 "brightness",UNIT_INT
, MIN_BRIGHTNESS_SETTING
, MAX_BRIGHTNESS_SETTING
, 1,
529 NULL
, NULL
, backlight_set_brightness
),
531 #if defined(HAVE_BACKLIGHT_PWM_FADING) && !defined(SIMULATOR)
532 /* backlight fading */
533 TABLE_SETTING(F_ALLOW_ARBITRARY_VALS
, backlight_fade_in
,
534 LANG_BACKLIGHT_FADE_IN
, 300, "backlight fade in", "off",
535 UNIT_MS
, formatter_unit_0_is_off
, getlang_unit_0_is_off
,
536 backlight_set_fade_in
, 7, 0,100,200,300,500,1000,2000),
537 TABLE_SETTING(F_ALLOW_ARBITRARY_VALS
, backlight_fade_out
,
538 LANG_BACKLIGHT_FADE_OUT
, 2000, "backlight fade out", "off",
539 UNIT_MS
, formatter_unit_0_is_off
, getlang_unit_0_is_off
,
540 backlight_set_fade_out
, 10,
541 0,100,200,300,500,1000,2000,3000,5000,10000),
543 INT_SETTING(F_PADTITLE
, scroll_speed
, LANG_SCROLL_SPEED
, 9,"scroll speed",
544 UNIT_INT
, 0, 15, 1, NULL
, NULL
, lcd_scroll_speed
),
545 INT_SETTING(F_PADTITLE
, scroll_delay
, LANG_SCROLL_DELAY
, 1000, "scroll delay",
546 UNIT_MS
, 0, 2500, 100, NULL
,
547 NULL
, lcd_scroll_delay
) ,
548 INT_SETTING(0, bidir_limit
, LANG_BIDIR_SCROLL
, 50, "bidir limit",
549 UNIT_PERCENT
, 0, 200, 25, NULL
, NULL
, lcd_bidir_scroll
),
550 #ifdef HAVE_REMOTE_LCD
551 INT_SETTING(0, remote_scroll_speed
, LANG_SCROLL_SPEED
, 9, "remote scroll speed",
552 UNIT_INT
, 0,15, 1, NULL
, NULL
, lcd_remote_scroll_speed
),
553 INT_SETTING(0, remote_scroll_step
, LANG_SCROLL_STEP
, 6, "remote scroll step",
554 UNIT_PIXEL
, 1, LCD_REMOTE_WIDTH
, 1, NULL
, NULL
, lcd_remote_scroll_step
),
555 INT_SETTING(0, remote_scroll_delay
, LANG_SCROLL_DELAY
, 1000, "remote scroll delay",
556 UNIT_MS
, 0, 2500, 100, NULL
, NULL
, lcd_remote_scroll_delay
),
557 INT_SETTING(0, remote_bidir_limit
, LANG_BIDIR_SCROLL
, 50, "remote bidir limit",
558 UNIT_PERCENT
, 0, 200, 25, NULL
, NULL
, lcd_remote_bidir_scroll
),
560 #ifdef HAVE_LCD_BITMAP
561 OFFON_SETTING(0, offset_out_of_view
, LANG_SCREEN_SCROLL_VIEW
,
562 false, "Screen Scrolls Out Of View", gui_list_screen_scroll_out_of_view
),
563 INT_SETTING(F_PADTITLE
, scroll_step
, LANG_SCROLL_STEP
, 6, "scroll step",
564 UNIT_PIXEL
, 1, LCD_WIDTH
, 1, NULL
, NULL
, lcd_scroll_step
),
565 INT_SETTING(F_PADTITLE
, screen_scroll_step
, LANG_SCREEN_SCROLL_STEP
,
566 16, "screen scroll step",
567 UNIT_PIXEL
, 1, LCD_WIDTH
, 1, NULL
, NULL
, gui_list_screen_scroll_step
),
568 #endif /* HAVE_LCD_BITMAP */
569 #ifdef HAVE_LCD_CHARCELLS
570 INT_SETTING(0, jump_scroll
, LANG_JUMP_SCROLL
, 0, "jump scroll",
571 UNIT_INT
, 0, 5, 1, jumpscroll_format
, jumpscroll_getlang
, lcd_jump_scroll
),
572 INT_SETTING(0, jump_scroll_delay
, LANG_JUMP_SCROLL_DELAY
, 500, "jump scroll delay",
573 UNIT_MS
, 0, 2500, 100, NULL
, NULL
, lcd_jump_scroll_delay
),
575 OFFON_SETTING(0,scroll_paginated
,LANG_SCROLL_PAGINATED
,
576 false,"scroll paginated",NULL
),
577 #ifdef HAVE_LCD_COLOR
578 {F_T_INT
|F_RGB
|F_THEMESETTING
,&global_settings
.fg_color
,-1,INT(LCD_DEFAULT_FG
),
579 "foreground color",NULL
,UNUSED
},
580 {F_T_INT
|F_RGB
|F_THEMESETTING
,&global_settings
.bg_color
,-1,INT(LCD_DEFAULT_BG
),
581 "background color",NULL
,UNUSED
},
582 {F_T_INT
|F_RGB
|F_THEMESETTING
,&global_settings
.lss_color
,-1,INT(LCD_DEFAULT_LS
),
583 "line selector start color",NULL
,UNUSED
},
584 {F_T_INT
|F_RGB
|F_THEMESETTING
,&global_settings
.lse_color
,-1,INT(LCD_DEFAULT_BG
),
585 "line selector end color",NULL
,UNUSED
},
586 {F_T_INT
|F_RGB
|F_THEMESETTING
,&global_settings
.lst_color
,-1,INT(LCD_DEFAULT_FG
),
587 "line selector text color",NULL
,UNUSED
},
590 OFFON_SETTING(0,play_selected
,LANG_PLAY_SELECTED
,true,"play selected",NULL
),
591 OFFON_SETTING(0,party_mode
,LANG_PARTY_MODE
,false,"party mode",NULL
),
592 OFFON_SETTING(0,fade_on_stop
,LANG_FADE_ON_STOP
,true,"volume fade",NULL
),
593 TABLE_SETTING(F_ALLOW_ARBITRARY_VALS
, ff_rewind_min_step
,
594 LANG_FFRW_STEP
, 1, "scan min step", NULL
, UNIT_SEC
,
595 NULL
, NULL
, NULL
, 14, 1,2,3,4,5,6,8,10,15,20,25,30,45,60),
596 INT_SETTING(0, ff_rewind_accel
, LANG_FFRW_ACCEL
, 3, "scan accel",
597 UNIT_SEC
, 16, 0, -1, scanaccel_formatter
, getlang_unit_0_is_off
, NULL
),
598 #if (CONFIG_CODEC == SWCODEC) && !defined(HAVE_FLASH_STORAGE)
599 STRINGCHOICE_SETTING(0, buffer_margin
, LANG_MP3BUFFER_MARGIN
, 0,"antiskip",
600 "5s,15s,30s,1min,2min,3min,5min,10min",NULL
, 8,
601 TALK_ID(5, UNIT_SEC
), TALK_ID(15, UNIT_SEC
),
602 TALK_ID(30, UNIT_SEC
), TALK_ID(1, UNIT_MIN
), TALK_ID(2, UNIT_MIN
),
603 TALK_ID(3, UNIT_MIN
), TALK_ID(5, UNIT_MIN
), TALK_ID(10, UNIT_MIN
)),
604 #elif !defined(HAVE_FLASH_STORAGE)
605 INT_SETTING(0, buffer_margin
, LANG_MP3BUFFER_MARGIN
, 0, "antiskip",
606 UNIT_SEC
, 0, 7, 1, NULL
, NULL
, audio_set_buffer_margin
),
609 #ifndef HAVE_FLASH_STORAGE
610 INT_SETTING(0, disk_spindown
, LANG_SPINDOWN
, 5, "disk spindown",
611 UNIT_SEC
, 3, 254, 1, NULL
, NULL
, ata_spindown
),
612 #endif /* HAVE_FLASH_STORAGE */
614 CHOICE_SETTING(0, dirfilter
, LANG_FILTER
, SHOW_SUPPORTED
, "show files",
615 "all,supported,music,playlists", NULL
, 4, ID2P(LANG_ALL
),
616 ID2P(LANG_FILTER_SUPPORTED
), ID2P(LANG_FILTER_MUSIC
), ID2P(LANG_PLAYLISTS
)),
617 OFFON_SETTING(0,sort_case
,LANG_SORT_CASE
,false,"sort case",NULL
),
618 CHOICE_SETTING(0, show_filename_ext
, LANG_SHOW_FILENAME_EXT
, 3,
619 "show filename exts", "off,on,unknown,view_all", NULL
, 4 ,
620 ID2P(LANG_OFF
), ID2P(LANG_ON
), ID2P(LANG_UNKNOWN_TYPES
),
621 ID2P(LANG_EXT_ONLY_VIEW_ALL
)),
622 OFFON_SETTING(0,browse_current
,LANG_FOLLOW
,false,"follow playlist",NULL
),
623 OFFON_SETTING(0,playlist_viewer_icons
,LANG_SHOW_ICONS
,true,
624 "playlist viewer icons",NULL
),
625 OFFON_SETTING(0,playlist_viewer_indices
,LANG_SHOW_INDICES
,true,
626 "playlist viewer indices",NULL
),
627 CHOICE_SETTING(0, playlist_viewer_track_display
, LANG_TRACK_DISPLAY
, 0,
628 "playlist viewer track display","track name,full path", NULL
, 2,
629 ID2P(LANG_DISPLAY_TRACK_NAME_ONLY
), ID2P(LANG_DISPLAY_FULL_PATH
)),
630 CHOICE_SETTING(0, recursive_dir_insert
, LANG_RECURSE_DIRECTORY
, RECURSE_ON
,
631 "recursive directory insert", off_on_ask
, NULL
, 3 ,
632 ID2P(LANG_OFF
), ID2P(LANG_ON
), ID2P(LANG_ASK
)),
634 CHOICE_SETTING(0, autocreatebookmark
, LANG_BOOKMARK_SETTINGS_AUTOCREATE
,
635 BOOKMARK_NO
, "autocreate bookmarks",
636 "off,on,ask,recent only - on,recent only - ask", NULL
, 5,
637 ID2P(LANG_SET_BOOL_NO
), ID2P(LANG_SET_BOOL_YES
),
638 ID2P(LANG_ASK
), ID2P(LANG_BOOKMARK_SETTINGS_RECENT_ONLY_YES
),
639 ID2P(LANG_BOOKMARK_SETTINGS_RECENT_ONLY_ASK
)),
640 CHOICE_SETTING(0, autoloadbookmark
, LANG_BOOKMARK_SETTINGS_AUTOLOAD
,
641 BOOKMARK_NO
, "autoload bookmarks", off_on_ask
, NULL
, 3,
642 ID2P(LANG_SET_BOOL_NO
), ID2P(LANG_SET_BOOL_YES
), ID2P(LANG_ASK
)),
643 CHOICE_SETTING(0, usemrb
, LANG_BOOKMARK_SETTINGS_MAINTAIN_RECENT_BOOKMARKS
,
644 BOOKMARK_NO
, "use most-recent-bookmarks", "off,on,unique only", NULL
, 3,
645 ID2P(LANG_SET_BOOL_NO
), ID2P(LANG_SET_BOOL_YES
),
646 ID2P(LANG_BOOKMARK_SETTINGS_UNIQUE_ONLY
)),
647 #ifdef HAVE_LCD_BITMAP
649 STRINGCHOICE_SETTING(0, peak_meter_clip_hold
, LANG_PM_CLIP_HOLD
, 16,
650 "peak meter clip hold",
651 "on,1,2,3,4,5,6,7,8,9,10,15,20,25,30,45,60,90,2min"
652 ",3min,5min,10min,20min,45min,90min", peak_meter_set_clip_hold
,
654 TALK_ID(1, UNIT_SEC
), TALK_ID(2, UNIT_SEC
), TALK_ID(3, UNIT_SEC
),
655 TALK_ID(4, UNIT_SEC
), TALK_ID(5, UNIT_SEC
), TALK_ID(6, UNIT_SEC
),
656 TALK_ID(7, UNIT_SEC
), TALK_ID(8, UNIT_SEC
), TALK_ID(9, UNIT_SEC
),
657 TALK_ID(10, UNIT_SEC
), TALK_ID(15, UNIT_SEC
), TALK_ID(20, UNIT_SEC
),
658 TALK_ID(25, UNIT_SEC
), TALK_ID(30, UNIT_SEC
), TALK_ID(45, UNIT_SEC
),
659 TALK_ID(60, UNIT_SEC
), TALK_ID(90, UNIT_SEC
), TALK_ID(2, UNIT_MIN
),
660 TALK_ID(3, UNIT_MIN
), TALK_ID(5, UNIT_MIN
), TALK_ID(10, UNIT_MIN
),
661 TALK_ID(20, UNIT_MIN
), TALK_ID(45, UNIT_MIN
), TALK_ID(90, UNIT_MIN
)),
662 STRINGCHOICE_SETTING(0, peak_meter_hold
, LANG_PM_PEAK_HOLD
, 3,
664 "off,200ms,300ms,500ms,1,2,3,4,5,6,7,8,9,10,15,20,30,1min",
666 TALK_ID(200, UNIT_MS
), TALK_ID(300, UNIT_MS
), TALK_ID(500, UNIT_MS
),
667 TALK_ID(1, UNIT_SEC
), TALK_ID(2, UNIT_SEC
), TALK_ID(3, UNIT_SEC
),
668 TALK_ID(4, UNIT_SEC
), TALK_ID(5, UNIT_SEC
), TALK_ID(6, UNIT_SEC
),
669 TALK_ID(7, UNIT_SEC
), TALK_ID(8, UNIT_SEC
), TALK_ID(9, UNIT_SEC
),
670 TALK_ID(10, UNIT_SEC
), TALK_ID(15, UNIT_SEC
), TALK_ID(20, UNIT_SEC
),
671 TALK_ID(30, UNIT_SEC
), TALK_ID(60, UNIT_SEC
)),
672 INT_SETTING(0, peak_meter_release
, LANG_PM_RELEASE
, 8, "peak meter release",
673 UNIT_PM_TICK
, 1, 0x7e, 1, NULL
, NULL
,NULL
),
674 OFFON_SETTING(0,peak_meter_dbfs
,LANG_PM_DBFS
,true,"peak meter dbfs",NULL
),
675 {F_T_INT
,&global_settings
.peak_meter_min
,LANG_PM_MIN
,INT(60),"peak meter min",NULL
,UNUSED
},
676 {F_T_INT
,&global_settings
.peak_meter_max
,LANG_PM_MAX
,INT(0),"peak meter max",NULL
,UNUSED
},
677 #ifdef HAVE_RECORDING
678 OFFON_SETTING(0,peak_meter_clipcounter
,LANG_PM_CLIPCOUNTER
,false,
679 "peak meter clipcounter",NULL
),
680 #endif /* HAVE_RECORDING */
681 #endif /* HAVE_LCD_BITMAP */
682 #if (CONFIG_CODEC == MAS3587F) || (CONFIG_CODEC == MAS3539F)
683 SOUND_SETTING(F_SOUNDSETTING
, mdb_strength
, LANG_MDB_STRENGTH
,
684 "mdb strength", SOUND_MDB_STRENGTH
),
685 SOUND_SETTING(F_SOUNDSETTING
, mdb_harmonics
, LANG_MDB_HARMONICS
,
686 "mdb harmonics", SOUND_MDB_HARMONICS
),
687 SOUND_SETTING(F_SOUNDSETTING
, mdb_center
, LANG_MDB_CENTER
,
688 "mdb center", SOUND_MDB_CENTER
),
689 SOUND_SETTING(F_SOUNDSETTING
, mdb_shape
, LANG_MDB_SHAPE
,
690 "mdb shape", SOUND_MDB_SHAPE
),
691 OFFON_SETTING(F_SOUNDSETTING
, mdb_enable
, LANG_MDB_ENABLE
,
692 false, "mdb enable", set_mdb_enable
),
694 #if CONFIG_CODEC == MAS3507D
695 OFFON_SETTING(F_SOUNDSETTING
, line_in
,LANG_LINE_IN
,false,"line in",NULL
),
698 OFFON_SETTING(F_TEMPVAR
, talk_menu
, LANG_VOICE_MENU
, true, "talk menu", NULL
),
699 CHOICE_SETTING(0, talk_dir
, LANG_VOICE_DIR
, 0,
700 "talk dir", off_number_spell
, NULL
, 3,
701 ID2P(LANG_OFF
), ID2P(LANG_VOICE_NUMBER
),
702 ID2P(LANG_VOICE_SPELL
)),
703 OFFON_SETTING(F_TEMPVAR
, talk_dir_clip
, LANG_VOICE_DIR_TALK
, false, "talk dir clip", NULL
),
704 CHOICE_SETTING(0, talk_file
, LANG_VOICE_FILE
, 0,
705 "talk file", off_number_spell
, NULL
, 3,
706 ID2P(LANG_OFF
), ID2P(LANG_VOICE_NUMBER
),
707 ID2P(LANG_VOICE_SPELL
)),
708 OFFON_SETTING(F_TEMPVAR
, talk_file_clip
, LANG_VOICE_FILE_TALK
, false, "talk file clip", NULL
),
709 OFFON_SETTING(F_TEMPVAR
, talk_filetype
, LANG_VOICE_FILETYPE
,
710 false, "talk filetype", NULL
),
711 OFFON_SETTING(F_TEMPVAR
, talk_battery_level
,
712 LANG_TALK_BATTERY_LEVEL
, false,
713 "Announce Battery Level", NULL
),
716 CHOICE_SETTING(0, sort_file
, LANG_SORT_FILE
, 0 ,
717 "sort files", "alpha,oldest,newest,type", NULL
, 4,
718 ID2P(LANG_SORT_ALPHA
), ID2P(LANG_SORT_DATE
),
719 ID2P(LANG_SORT_DATE_REVERSE
) , ID2P(LANG_SORT_TYPE
)),
720 CHOICE_SETTING(0, sort_dir
, LANG_SORT_DIR
, 0 ,
721 "sort dirs", "alpha,oldest,newest", NULL
, 3,
722 ID2P(LANG_SORT_ALPHA
), ID2P(LANG_SORT_DATE
),
723 ID2P(LANG_SORT_DATE_REVERSE
)),
725 #ifdef HAVE_RECORDING
727 STRINGCHOICE_SETTING(F_RECSETTING
, rec_timesplit
, LANG_SPLIT_TIME
, 0,
729 "off,00:05,00:10,00:15,00:30,01:00,01:14,01:20,02:00,"
730 "04:00,06:00,08:00,10:00,12:00,18:00,24:00",
732 TALK_ID(5, UNIT_MIN
), TALK_ID(10, UNIT_MIN
), TALK_ID(15, UNIT_MIN
),
733 TALK_ID(30, UNIT_MIN
), TALK_ID(60, UNIT_MIN
), TALK_ID(74, UNIT_MIN
),
734 TALK_ID(80, UNIT_MIN
), TALK_ID(2, UNIT_HOUR
), TALK_ID(4, UNIT_HOUR
),
735 TALK_ID(6, UNIT_HOUR
), TALK_ID(8, UNIT_HOUR
), TALK_ID(10, UNIT_HOUR
),
736 TALK_ID(12, UNIT_HOUR
), TALK_ID(18, UNIT_HOUR
), TALK_ID(20, UNIT_HOUR
),
737 TALK_ID(24, UNIT_HOUR
)),
738 STRINGCHOICE_SETTING(F_RECSETTING
, rec_sizesplit
, LANG_SPLIT_SIZE
, 0,
740 "off,5MB,10MB,15MB,32MB,64MB,75MB,100MB,128MB,"
741 "256MB,512MB,650MB,700MB,1GB,1.5GB,1.75GB",
743 TALK_ID(5, UNIT_MB
), TALK_ID(10, UNIT_MB
), TALK_ID(15, UNIT_MB
),
744 TALK_ID(32, UNIT_MB
), TALK_ID(64, UNIT_MB
), TALK_ID(75, UNIT_MB
),
745 TALK_ID(100, UNIT_MB
), TALK_ID(128, UNIT_MB
), TALK_ID(256, UNIT_MB
),
746 TALK_ID(512, UNIT_MB
), TALK_ID(650, UNIT_MB
), TALK_ID(700, UNIT_MB
),
747 TALK_ID(1024, UNIT_MB
), TALK_ID(1536, UNIT_MB
), TALK_ID(1792, UNIT_MB
)),
748 {F_T_INT
|F_RECSETTING
, &global_settings
.rec_channels
,
749 LANG_CHANNELS
, INT(0),
750 "rec channels","stereo,mono",UNUSED
},
751 CHOICE_SETTING(F_RECSETTING
, rec_split_type
, LANG_SPLIT_TYPE
, 0 ,
752 "rec split type", "Split,Stop", NULL
, 2,
753 ID2P(LANG_START_NEW_FILE
), ID2P(LANG_STOP_RECORDING
)),
754 CHOICE_SETTING(F_RECSETTING
, rec_split_method
, LANG_SPLIT_MEASURE
, 0 ,
755 "rec split method", "Time,Filesize", NULL
, 2,
756 ID2P(LANG_TIME
), ID2P(LANG_REC_SIZE
)),
757 {F_T_INT
|F_RECSETTING
, &global_settings
.rec_source
,
758 LANG_RECORDING_SOURCE
, INT(0),
760 &HAVE_MIC_REC_(",mic")
761 HAVE_LINE_REC_(",line")
762 HAVE_SPDIF_REC_(",spdif")
763 HAVE_FMRADIO_REC_(",fmradio")[1]
765 INT_SETTING(F_RECSETTING
, rec_prerecord_time
, LANG_RECORD_PRERECORD_TIME
,
766 0, "prerecording time", UNIT_SEC
, 0, 30, 1,
767 formatter_unit_0_is_off
, getlang_unit_0_is_off
, NULL
),
769 FILENAME_SETTING(F_RECSETTING
, rec_directory
, "rec path",
770 REC_BASE_DIR
, NULL
, NULL
, MAX_FILENAME
+1),
771 #ifdef HAVE_BACKLIGHT
772 CHOICE_SETTING(F_RECSETTING
, cliplight
, LANG_CLIP_LIGHT
, 0 ,
773 "cliplight", "off,main,both,remote", NULL
,
774 #ifdef HAVE_REMOTE_LCD
775 4, ID2P(LANG_OFF
), ID2P(LANG_MAIN_UNIT
), ID2P(LANG_REMOTE_MAIN
),
776 ID2P(LANG_REMOTE_UNIT
)
778 2, ID2P(LANG_OFF
), ID2P(LANG_ON
)
782 #ifdef DEFAULT_REC_MIC_GAIN
783 {F_T_INT
|F_RECSETTING
,&global_settings
.rec_mic_gain
,
784 LANG_GAIN
,INT(DEFAULT_REC_MIC_GAIN
),
785 "rec mic gain",NULL
,UNUSED
},
786 #endif /* DEFAULT_REC_MIC_GAIN */
787 #ifdef DEFAULT_REC_LEFT_GAIN
788 {F_T_INT
|F_RECSETTING
,&global_settings
.rec_left_gain
,
789 LANG_RECORDING_LEFT
,INT(DEFAULT_REC_LEFT_GAIN
),
790 "rec left gain",NULL
,UNUSED
},
791 #endif /* DEFAULT_REC_LEFT_GAIN */
792 #ifdef DEFAULT_REC_RIGHT_GAIN
793 {F_T_INT
|F_RECSETTING
,&global_settings
.rec_right_gain
,LANG_RECORDING_RIGHT
,
794 INT(DEFAULT_REC_RIGHT_GAIN
),
795 "rec right gain",NULL
,UNUSED
},
796 #endif /* DEFAULT_REC_RIGHT_GAIN */
797 #if CONFIG_CODEC == MAS3587F
798 {F_T_INT
|F_RECSETTING
,&global_settings
.rec_frequency
,
799 LANG_RECORDING_FREQUENCY
,
800 INT(0),"rec frequency","44,48,32,22,24,16",UNUSED
},
801 INT_SETTING(F_RECSETTING
, rec_quality
, LANG_RECORDING_QUALITY
,
803 UNIT_INT
, 0, 7, 1, NULL
, NULL
, NULL
),
804 OFFON_SETTING(F_RECSETTING
,rec_editable
,LANG_RECORDING_EDITABLE
,
805 false,"editable recordings",NULL
),
806 #endif /* CONFIG_CODEC == MAS3587F */
807 #if CONFIG_CODEC == SWCODEC
808 {F_T_INT
|F_RECSETTING
,&global_settings
.rec_frequency
,
809 LANG_RECORDING_FREQUENCY
,INT(REC_FREQ_DEFAULT
),
810 "rec frequency",REC_FREQ_CFG_VAL_LIST
,UNUSED
},
811 {F_T_INT
|F_RECSETTING
,&global_settings
.rec_format
,
812 LANG_RECORDING_FORMAT
,INT(REC_FORMAT_DEFAULT
),
813 "rec format",REC_FORMAT_CFG_VAL_LIST
,UNUSED
},
814 /** Encoder settings start - keep these together **/
816 /* (no settings yet) */
818 {F_T_INT
|F_RECSETTING
, &global_settings
.mp3_enc_config
.bitrate
,-1,
819 INT(MP3_ENC_BITRATE_CFG_DEFAULT
),
820 "mp3_enc bitrate",MP3_ENC_BITRATE_CFG_VALUE_LIST
,UNUSED
},
822 /* (no settings yet) */
824 /* (no settings yet) */
825 /** Encoder settings end **/
826 #endif /* CONFIG_CODEC == SWCODEC */
827 /* values for the trigger */
828 {F_T_INT
|F_RECSETTING
,&global_settings
.rec_start_thres
,
829 LANG_RECORD_START_THRESHOLD
, INT(-35),
830 "trigger start threshold",NULL
,UNUSED
},
831 {F_T_INT
|F_RECSETTING
,&global_settings
.rec_stop_thres
,
832 LANG_RECORD_STOP_THRESHOLD
,INT(-45),
833 "trigger stop threshold",NULL
,UNUSED
},
834 {F_T_INT
|F_RECSETTING
,&global_settings
.rec_start_duration
,
835 LANG_MIN_DURATION
,INT(0),
836 "trigger start duration",trig_durations_conf
,UNUSED
},
837 {F_T_INT
|F_RECSETTING
,&global_settings
.rec_stop_postrec
,
838 LANG_MIN_DURATION
,INT(2),
839 "trigger stop postrec",trig_durations_conf
,UNUSED
},
840 {F_T_INT
|F_RECSETTING
,&global_settings
.rec_stop_gap
,
841 LANG_RECORD_STOP_GAP
,INT(1),
842 "trigger min gap",trig_durations_conf
,UNUSED
},
843 {F_T_INT
|F_RECSETTING
,&global_settings
.rec_trigger_mode
,
844 LANG_RECORD_TRIGGER
,INT(0),
845 "trigger mode","off,once,repeat",UNUSED
},
846 #endif /* HAVE_RECORDING */
848 #ifdef HAVE_SPDIF_POWER
849 OFFON_SETTING(F_SOUNDSETTING
, spdif_enable
, LANG_SPDIF_ENABLE
, false,
850 "spdif enable", spdif_power_enable
),
852 CHOICE_SETTING(0, next_folder
, LANG_NEXT_FOLDER
, FOLDER_ADVANCE_OFF
,
853 "folder navigation", "off,on,random",NULL
,3,
854 ID2P(LANG_SET_BOOL_NO
), ID2P(LANG_SET_BOOL_YES
), ID2P(LANG_RANDOM
)),
855 OFFON_SETTING(0,runtimedb
,LANG_RUNTIMEDB_ACTIVE
,false,"gather runtime data",NULL
),
857 #if CONFIG_CODEC == SWCODEC
859 OFFON_SETTING(F_SOUNDSETTING
, replaygain
, LANG_REPLAYGAIN_ENABLE
, false, "replaygain", NULL
),
860 CHOICE_SETTING(F_SOUNDSETTING
, replaygain_type
, LANG_REPLAYGAIN_MODE
, REPLAYGAIN_ALBUM
,
861 "replaygain type", "track,album,track shuffle", NULL
, 3,
862 ID2P(LANG_TRACK_GAIN
), ID2P(LANG_ALBUM_GAIN
), ID2P(LANG_SHUFFLE_GAIN
)),
863 OFFON_SETTING(F_SOUNDSETTING
, replaygain_noclip
, LANG_REPLAYGAIN_NOCLIP
,
864 false, "replaygain noclip", NULL
),
865 INT_SETTING_NOWRAP(F_SOUNDSETTING
, replaygain_preamp
, LANG_REPLAYGAIN_PREAMP
, 0, "replaygain preamp",
866 UNIT_DB
, -120, 120, 5, db_format
, NULL
, NULL
),
868 CHOICE_SETTING(0, beep
, LANG_BEEP
, 0,
869 "beep", "off,weak,moderate,strong", NULL
, 4,
870 ID2P(LANG_OFF
), ID2P(LANG_WEAK
), ID2P(LANG_MODERATE
), ID2P(LANG_STRONG
)),
873 CHOICE_SETTING(F_SOUNDSETTING
, crossfade
, LANG_CROSSFADE_ENABLE
, 0, "crossfade",
874 "off,shuffle,track skip,shuffle and track skip,always",NULL
, 5,
875 ID2P(LANG_OFF
), ID2P(LANG_SHUFFLE
), ID2P(LANG_TRACKSKIP
),
876 ID2P(LANG_SHUFFLE_TRACKSKIP
), ID2P(LANG_ALWAYS
)),
877 INT_SETTING(F_SOUNDSETTING
, crossfade_fade_in_delay
, LANG_CROSSFADE_FADE_IN_DELAY
, 0,
878 "crossfade fade in delay", UNIT_SEC
, 0, 7, 1, NULL
, NULL
, NULL
),
879 INT_SETTING(F_SOUNDSETTING
, crossfade_fade_out_delay
, LANG_CROSSFADE_FADE_OUT_DELAY
, 0,
880 "crossfade fade out delay", UNIT_SEC
, 0, 7, 1, NULL
, NULL
, NULL
),
881 INT_SETTING(F_SOUNDSETTING
, crossfade_fade_in_duration
, LANG_CROSSFADE_FADE_IN_DURATION
, 2,
882 "crossfade fade in duration", UNIT_SEC
, 0, 15, 1, NULL
, NULL
, NULL
),
883 INT_SETTING(F_SOUNDSETTING
, crossfade_fade_out_duration
, LANG_CROSSFADE_FADE_OUT_DURATION
, 2,
884 "crossfade fade out duration", UNIT_SEC
, 0, 15, 1, NULL
, NULL
, NULL
),
885 CHOICE_SETTING(F_SOUNDSETTING
, crossfade_fade_out_mixmode
, LANG_CROSSFADE_FADE_OUT_MODE
,
886 0, "crossfade fade out mode", "crossfade,mix", NULL
, 2,
887 ID2P(LANG_CROSSFADE
), ID2P(LANG_MIX
)),
890 OFFON_SETTING(F_SOUNDSETTING
, crossfeed
, LANG_CROSSFEED
, false,
891 "crossfeed", dsp_set_crossfeed
),
892 INT_SETTING_NOWRAP(F_SOUNDSETTING
, crossfeed_direct_gain
, LANG_CROSSFEED_DIRECT_GAIN
,
893 -15, "crossfeed direct gain", UNIT_DB
, -60, 0, 5,
894 db_format
, NULL
, dsp_set_crossfeed_direct_gain
),
895 INT_SETTING_NOWRAP(F_SOUNDSETTING
, crossfeed_cross_gain
, LANG_CROSSFEED_CROSS_GAIN
, -60,
896 "crossfeed cross gain", UNIT_DB
, -120, -30, 5,
897 db_format
, NULL
, crossfeed_cross_set
),
898 INT_SETTING_NOWRAP(F_SOUNDSETTING
, crossfeed_hf_attenuation
, LANG_CROSSFEED_HF_ATTENUATION
, -160,
899 "crossfeed hf attenuation", UNIT_DB
, -240, -60, 5,
900 db_format
, NULL
, crossfeed_cross_set
),
901 INT_SETTING_NOWRAP(F_SOUNDSETTING
, crossfeed_hf_cutoff
, LANG_CROSSFEED_HF_CUTOFF
, 700,
902 "crossfeed hf cutoff", UNIT_HERTZ
, 500, 2000, 100,
903 NULL
, NULL
, crossfeed_cross_set
),
906 OFFON_SETTING(F_EQSETTING
, eq_enabled
, LANG_EQUALIZER_ENABLED
, false,
908 INT_SETTING_NOWRAP(F_EQSETTING
, eq_precut
, LANG_EQUALIZER_PRECUT
, 0,
909 "eq precut", UNIT_DB
, 0, 240, 5, eq_precut_format
, NULL
,
912 INT_SETTING_NOWRAP(F_EQSETTING
, eq_band0_cutoff
, LANG_EQUALIZER_BAND_CUTOFF
,
913 60, "eq band 0 cutoff", UNIT_HERTZ
, EQ_CUTOFF_MIN
,
914 EQ_CUTOFF_MAX
, EQ_CUTOFF_STEP
, NULL
, NULL
, NULL
),
915 INT_SETTING_NOWRAP(F_EQSETTING
, eq_band1_cutoff
, LANG_EQUALIZER_BAND_CENTER
,
916 200, "eq band 1 cutoff", UNIT_HERTZ
, EQ_CUTOFF_MIN
,
917 EQ_CUTOFF_MAX
, EQ_CUTOFF_STEP
, NULL
, NULL
, NULL
),
918 INT_SETTING_NOWRAP(F_EQSETTING
, eq_band2_cutoff
, LANG_EQUALIZER_BAND_CENTER
,
919 800, "eq band 2 cutoff", UNIT_HERTZ
, EQ_CUTOFF_MIN
,
920 EQ_CUTOFF_MAX
, EQ_CUTOFF_STEP
, NULL
, NULL
, NULL
),
921 INT_SETTING_NOWRAP(F_EQSETTING
, eq_band3_cutoff
, LANG_EQUALIZER_BAND_CENTER
,
922 4000, "eq band 3 cutoff", UNIT_HERTZ
, EQ_CUTOFF_MIN
,
923 EQ_CUTOFF_MAX
, EQ_CUTOFF_STEP
, NULL
, NULL
, NULL
),
924 INT_SETTING_NOWRAP(F_EQSETTING
, eq_band4_cutoff
, LANG_EQUALIZER_BAND_CUTOFF
,
925 12000, "eq band 4 cutoff", UNIT_HERTZ
, EQ_CUTOFF_MIN
,
926 EQ_CUTOFF_MAX
, EQ_CUTOFF_STEP
, NULL
, NULL
, NULL
),
927 /* 0..64 (or 0.0 to 6.4) */
928 INT_SETTING_NOWRAP(F_EQSETTING
, eq_band0_q
, LANG_EQUALIZER_BAND_Q
, 7,
929 "eq band 0 q", UNIT_INT
, EQ_Q_MIN
, EQ_Q_MAX
, EQ_Q_STEP
,
930 eq_q_format
, NULL
, NULL
),
931 INT_SETTING_NOWRAP(F_EQSETTING
, eq_band1_q
, LANG_EQUALIZER_BAND_Q
, 10,
932 "eq band 1 q", UNIT_INT
, EQ_Q_MIN
, EQ_Q_MAX
, EQ_Q_STEP
,
933 eq_q_format
, NULL
, NULL
),
934 INT_SETTING_NOWRAP(F_EQSETTING
, eq_band2_q
, LANG_EQUALIZER_BAND_Q
, 10,
935 "eq band 2 q", UNIT_INT
, EQ_Q_MIN
, EQ_Q_MAX
, EQ_Q_STEP
,
936 eq_q_format
, NULL
, NULL
),
937 INT_SETTING_NOWRAP(F_EQSETTING
, eq_band3_q
, LANG_EQUALIZER_BAND_Q
, 10,
938 "eq band 3 q", UNIT_INT
, EQ_Q_MIN
, EQ_Q_MAX
, EQ_Q_STEP
,
939 eq_q_format
, NULL
, NULL
),
940 INT_SETTING_NOWRAP(F_EQSETTING
, eq_band4_q
, LANG_EQUALIZER_BAND_Q
, 7,
941 "eq band 4 q", UNIT_INT
, EQ_Q_MIN
, EQ_Q_MAX
, EQ_Q_STEP
,
942 eq_q_format
, NULL
, NULL
),
943 /* -240..240 (or -24db to +24db) */
944 INT_SETTING_NOWRAP(F_EQSETTING
, eq_band0_gain
, LANG_GAIN
, 0,
945 "eq band 0 gain", UNIT_DB
, EQ_GAIN_MIN
, EQ_GAIN_MAX
,
946 EQ_GAIN_STEP
, db_format
, NULL
, NULL
),
947 INT_SETTING_NOWRAP(F_EQSETTING
, eq_band1_gain
, LANG_GAIN
, 0,
948 "eq band 1 gain", UNIT_DB
, EQ_GAIN_MIN
, EQ_GAIN_MAX
,
949 EQ_GAIN_STEP
, db_format
, NULL
, NULL
),
950 INT_SETTING_NOWRAP(F_EQSETTING
, eq_band2_gain
, LANG_GAIN
, 0,
951 "eq band 2 gain", UNIT_DB
, EQ_GAIN_MIN
, EQ_GAIN_MAX
,
952 EQ_GAIN_STEP
, db_format
, NULL
, NULL
),
953 INT_SETTING_NOWRAP(F_EQSETTING
, eq_band3_gain
, LANG_GAIN
, 0,
954 "eq band 3 gain", UNIT_DB
, EQ_GAIN_MIN
, EQ_GAIN_MAX
,
955 EQ_GAIN_STEP
, db_format
, NULL
, NULL
),
956 INT_SETTING_NOWRAP(F_EQSETTING
, eq_band4_gain
, LANG_GAIN
, 0,
957 "eq band 4 gain", UNIT_DB
, EQ_GAIN_MIN
, EQ_GAIN_MAX
,
958 EQ_GAIN_STEP
, db_format
, NULL
, NULL
),
961 OFFON_SETTING(F_SOUNDSETTING
, dithering_enabled
, LANG_DITHERING
,
962 false, "dithering enabled", dsp_dither_enable
),
965 SOUND_SETTING(F_NO_WRAP
, bass_cutoff
, LANG_BASS_CUTOFF
, "bass cutoff",
967 SOUND_SETTING(F_NO_WRAP
, treble_cutoff
, LANG_TREBLE_CUTOFF
, "treble cutoff",
968 SOUND_TREBLE_CUTOFF
),
971 OFFON_SETTING(0,dircache
,LANG_DIRCACHE_ENABLE
,false,"dircache",NULL
),
972 SYSTEM_SETTING(NVRAM(4),dircache_size
,0),
976 #ifdef HAVE_TC_RAMCACHE
977 OFFON_SETTING(0,tagcache_ram
,LANG_TAGCACHE_RAM
,false,"tagcache_ram",NULL
),
979 OFFON_SETTING(0,tagcache_autoupdate
,
980 LANG_TAGCACHE_AUTOUPDATE
,false,"tagcache_autoupdate",NULL
),
982 CHOICE_SETTING(0, default_codepage
, LANG_DEFAULT_CODEPAGE
, 0,
984 #ifdef HAVE_LCD_BITMAP
985 /* The order must match with that in unicode.c */
986 "iso8859-1,iso8859-7,iso8859-8,cp1251,iso8859-11,cp1256,"
987 "iso8859-9,iso8859-2,cp1250,sjis,gb2312,ksx1001,big5,utf-8",
989 ID2P(LANG_CODEPAGE_LATIN1
), ID2P(LANG_CODEPAGE_GREEK
),
990 ID2P(LANG_CODEPAGE_HEBREW
), ID2P(LANG_CODEPAGE_CYRILLIC
),
991 ID2P(LANG_CODEPAGE_THAI
), ID2P(LANG_CODEPAGE_ARABIC
),
992 ID2P(LANG_CODEPAGE_TURKISH
), ID2P(LANG_CODEPAGE_LATIN_EXTENDED
),
993 ID2P(LANG_CODEPAGE_CENTRAL_EUROPEAN
), ID2P(LANG_CODEPAGE_JAPANESE
),
994 ID2P(LANG_CODEPAGE_SIMPLIFIED
), ID2P(LANG_CODEPAGE_KOREAN
),
995 ID2P(LANG_CODEPAGE_TRADITIONAL
), ID2P(LANG_CODEPAGE_UTF8
)),
996 #else /* !HAVE_LCD_BITMAP */
997 /* The order must match with that in unicode.c */
998 "iso8859-1,iso8859-7,cp1251,iso8859-9,iso8859-2,cp1250,utf-8",
1000 ID2P(LANG_CODEPAGE_LATIN1
), ID2P(LANG_CODEPAGE_GREEK
),
1001 ID2P(LANG_CODEPAGE_CYRILLIC
), ID2P(LANG_CODEPAGE_TURKISH
),
1002 ID2P(LANG_CODEPAGE_LATIN_EXTENDED
), ID2P(LANG_CODEPAGE_CENTRAL_EUROPEAN
),
1003 ID2P(LANG_CODEPAGE_UTF8
)),
1005 OFFON_SETTING(0,warnon_erase_dynplaylist
,
1006 LANG_WARN_ERASEDYNPLAYLIST_MENU
,false,
1007 "warn when erasing dynamic playlist",NULL
),
1009 #ifdef HAVE_BACKLIGHT
1010 #ifdef HAS_BUTTON_HOLD
1011 CHOICE_SETTING(0, backlight_on_button_hold
,
1012 LANG_BACKLIGHT_ON_BUTTON_HOLD
, 0, "backlight on button hold",
1013 "normal,off,on", backlight_set_on_button_hold
, 3,
1014 ID2P(LANG_NORMAL
), ID2P(LANG_OFF
), ID2P(LANG_ON
)),
1017 #ifdef HAVE_LCD_SLEEP
1018 STRINGCHOICE_SETTING(0, lcd_sleep_after_backlight_off
,
1019 LANG_LCD_SLEEP_AFTER_BACKLIGHT_OFF
, 3,
1020 "lcd sleep after backlight off",
1021 "always,never,5,10,15,20,30,45,60,90", lcd_set_sleep_after_backlight_off
,
1022 10, LANG_ALWAYS
, LANG_NEVER
, TALK_ID(5, UNIT_SEC
), TALK_ID(10, UNIT_SEC
),
1023 TALK_ID(15, UNIT_SEC
), TALK_ID(20, UNIT_SEC
), TALK_ID(30, UNIT_SEC
),
1024 TALK_ID(45, UNIT_SEC
),TALK_ID(60, UNIT_SEC
), TALK_ID(90, UNIT_SEC
)),
1026 #endif /* HAVE_BACKLIGHT */
1028 OFFON_SETTING(0,hold_lr_for_scroll_in_list
,-1,true,
1029 "hold_lr_for_scroll_in_list",NULL
),
1030 #ifdef HAVE_LCD_BITMAP
1031 CHOICE_SETTING(0, show_path_in_browser
, LANG_SHOW_PATH
, SHOW_PATH_OFF
,
1032 "show path in browser", "off,current directory,full path", NULL
, 3,
1033 ID2P(LANG_OFF
), ID2P(LANG_SHOW_PATH_CURRENT
), ID2P(LANG_DISPLAY_FULL_PATH
)),
1037 {F_T_INT
,&global_settings
.rec_agc_preset_mic
,LANG_RECORD_AGC_PRESET
,INT(1),
1038 "agc mic preset",NULL
,UNUSED
},
1039 {F_T_INT
,&global_settings
.rec_agc_preset_line
,LANG_RECORD_AGC_PRESET
,INT(1),
1040 "agc line preset",NULL
,UNUSED
},
1041 {F_T_INT
,&global_settings
.rec_agc_maxgain_mic
,-1,INT(104),
1042 "agc maximum mic gain",NULL
,UNUSED
},
1043 {F_T_INT
,&global_settings
.rec_agc_maxgain_line
,-1,INT(96),
1044 "agc maximum line gain",NULL
,UNUSED
},
1045 {F_T_INT
,&global_settings
.rec_agc_cliptime
,LANG_RECORD_AGC_CLIPTIME
,INT(1),
1046 "agc cliptime","0.2s,0.4s,0.6s,0.8,1s",UNUSED
},
1049 #ifdef HAVE_REMOTE_LCD
1050 #ifdef HAS_REMOTE_BUTTON_HOLD
1051 CHOICE_SETTING(0, remote_backlight_on_button_hold
,
1052 LANG_BACKLIGHT_ON_BUTTON_HOLD
, 0, "remote backlight on button hold",
1053 "normal,off,on", remote_backlight_set_on_button_hold
, 3,
1054 ID2P(LANG_NORMAL
), ID2P(LANG_OFF
), ID2P(LANG_ON
)),
1057 #ifdef HAVE_HEADPHONE_DETECTION
1058 CHOICE_SETTING(0, unplug_mode
, LANG_HEADPHONE_UNPLUG
, 0,
1059 "pause on headphone unplug", "off,pause,pause and resume", NULL
, 3,
1060 ID2P(LANG_OFF
), ID2P(LANG_PAUSE
), ID2P(LANG_HEADPHONE_UNPLUG_RESUME
)),
1061 INT_SETTING(0, unplug_rw
, LANG_HEADPHONE_UNPLUG_RW
, 0, "rewind duration on pause",
1062 UNIT_SEC
, 0, 15, 1, NULL
, NULL
,NULL
) ,
1063 OFFON_SETTING(0,unplug_autoresume
,LANG_HEADPHONE_UNPLUG_DISABLE_AUTORESUME
,false,
1064 "disable autoresume if phones not present",NULL
),
1067 CHOICE_SETTING(0, fm_region
, LANG_FM_REGION
, 0,
1068 "fm_region", "eu,us,jp,kr", set_radio_region
, 4, ID2P(LANG_FM_EUROPE
),
1069 ID2P(LANG_FM_US
), ID2P(LANG_FM_JAPAN
), ID2P(LANG_FM_KOREA
)),
1072 OFFON_SETTING(0,audioscrobbler
,LANG_AUDIOSCROBBLER
,
1073 false,"Last.fm Logging",NULL
),
1075 #ifdef HAVE_RECORDING
1076 {F_T_INT
|F_RECSETTING
,&global_settings
.rec_trigger_type
,
1077 LANG_RECORD_TRIGGER_TYPE
,
1078 INT(0),"trigger type","stop,pause,nf stp",UNUSED
},
1081 /** settings not in the old config blocks **/
1083 FILENAME_SETTING(0, fmr_file
, "fmr",
1084 "", FMPRESET_PATH
"/", ".fmr", MAX_FILENAME
+1),
1086 FILENAME_SETTING(F_THEMESETTING
, font_file
, "font",
1087 "", FONT_DIR
"/", ".fnt", MAX_FILENAME
+1),
1088 FILENAME_SETTING(F_THEMESETTING
,wps_file
, "wps",
1089 "", WPS_DIR
"/", ".wps", MAX_FILENAME
+1),
1090 FILENAME_SETTING(0,lang_file
,"lang","",LANG_DIR
"/",".lng",MAX_FILENAME
+1),
1091 #ifdef HAVE_REMOTE_LCD
1092 FILENAME_SETTING(F_THEMESETTING
,rwps_file
,"rwps",
1093 "", WPS_DIR
"/", ".rwps", MAX_FILENAME
+1),
1096 FILENAME_SETTING(F_THEMESETTING
,backdrop_file
,"backdrop",
1097 "", BACKDROP_DIR
"/", ".bmp", MAX_FILENAME
+1),
1099 #ifdef HAVE_LCD_BITMAP
1100 FILENAME_SETTING(0,kbd_file
,"kbd","",ROCKBOX_DIR
"/",".kbd",MAX_FILENAME
+1),
1102 #ifdef HAVE_USB_POWER
1104 OFFON_SETTING(0,usb_charging
,LANG_USB_CHARGING
,false,"usb charging",NULL
),
1107 OFFON_SETTING(0,cuesheet
,LANG_CUESHEET_ENABLE
,false,"cuesheet support", NULL
),
1108 CHOICE_SETTING(0, start_in_screen
, LANG_START_SCREEN
, 1,
1109 "start in screen", "previous,root,files,db,wps,menu,"
1110 #ifdef HAVE_RECORDING
1117 #if defined(HAVE_RECORDING) && CONFIG_TUNER
1119 #elif defined(HAVE_RECORDING) || CONFIG_TUNER /* only one of them */
1124 ID2P(LANG_PREVIOUS_SCREEN
), ID2P(LANG_MAIN_MENU
),
1125 ID2P(LANG_DIR_BROWSER
), ID2P(LANG_TAGCACHE
),
1126 ID2P(LANG_RESUME_PLAYBACK
), ID2P(LANG_SETTINGS
),
1127 #ifdef HAVE_RECORDING
1128 ID2P(LANG_RECORDING
),
1131 ID2P(LANG_FM_RADIO
),
1133 ID2P(LANG_BOOKMARK_MENU_RECENT_BOOKMARKS
)
1135 SYSTEM_SETTING(NVRAM(1),last_screen
,-1),
1136 #if defined(HAVE_RTC_ALARM) && \
1137 (defined(HAVE_RECORDING) || CONFIG_TUNER)
1138 {F_T_INT
, &global_settings
.alarm_wake_up_screen
, LANG_ALARM_WAKEUP_SCREEN
,
1139 INT(ALARM_START_WPS
), "alarm wakeup screen", ALARM_SETTING_TEXT
, UNUSED
},
1140 #endif /* HAVE_RTC_ALARM */
1142 /* Customizable icons */
1143 #ifdef HAVE_LCD_BITMAP
1144 FILENAME_SETTING(F_THEMESETTING
, icon_file
, "iconset", "",
1145 ICON_DIR
"/", ".bmp", MAX_FILENAME
+1),
1146 FILENAME_SETTING(F_THEMESETTING
, viewers_icon_file
, "viewers iconset", "",
1147 ICON_DIR
"/", ".bmp", MAX_FILENAME
+1),
1149 #ifdef HAVE_REMOTE_LCD
1150 FILENAME_SETTING(F_THEMESETTING
, remote_icon_file
, "remote iconset", "",
1151 ICON_DIR
"/", ".bmp", MAX_FILENAME
+1),
1152 FILENAME_SETTING(F_THEMESETTING
, remote_viewers_icon_file
,
1153 "remote viewers iconset", "",
1154 ICON_DIR
"/", ".bmp", MAX_FILENAME
+1),
1155 #endif /* HAVE_REMOTE_LCD */
1156 #ifdef HAVE_LCD_COLOR
1157 FILENAME_SETTING(F_THEMESETTING
, colors_file
, "filetype colours", "",
1158 THEME_DIR
"/", ".colours", MAX_FILENAME
+1),
1160 #ifdef HAVE_BUTTON_LIGHT
1161 TABLE_SETTING(F_ALLOW_ARBITRARY_VALS
, buttonlight_timeout
,
1162 LANG_BUTTONLIGHT_TIMEOUT
, 5, "button light timeout", off_on
,
1163 UNIT_SEC
, backlight_formatter
, backlight_getlang
,
1164 buttonlight_set_timeout
, 20,
1165 -1,0,1,2,3,4,5,6,7,8,9,10,15,20,25,30,45,60,90,120),
1167 #ifdef HAVE_BUTTONLIGHT_BRIGHTNESS
1168 INT_SETTING(F_NO_WRAP
, buttonlight_brightness
, LANG_BUTTONLIGHT_BRIGHTNESS
, DEFAULT_BRIGHTNESS_SETTING
,
1169 "button light brightness",UNIT_INT
, MIN_BRIGHTNESS_SETTING
, MAX_BRIGHTNESS_SETTING
, 1,
1170 NULL
, NULL
, buttonlight_set_brightness
),
1172 #ifndef HAVE_SCROLLWHEEL
1173 INT_SETTING(0, list_accel_start_delay
, LANG_LISTACCEL_START_DELAY
,
1174 2, "list_accel_start_delay", UNIT_MS
, 0, 10, 1,
1175 formatter_unit_0_is_off
, getlang_unit_0_is_off
, NULL
),
1176 INT_SETTING(0, list_accel_wait
, LANG_LISTACCEL_ACCEL_SPEED
,
1177 3, "list_accel_wait", UNIT_SEC
, 1, 10, 1,
1178 scanaccel_formatter
, getlang_unit_0_is_off
, NULL
),
1179 #endif /* HAVE_SCROLLWHEEL */
1181 SYSTEM_SETTING(0, statusbar_forced
, 0),
1183 #if CONFIG_CODEC == SWCODEC
1185 CHOICE_SETTING(0, keyclick
, LANG_KEYCLICK
, 0,
1186 "keyclick", "off,weak,moderate,strong", NULL
, 4,
1187 ID2P(LANG_OFF
), ID2P(LANG_WEAK
), ID2P(LANG_MODERATE
), ID2P(LANG_STRONG
)),
1188 OFFON_SETTING(0, keyclick_repeats
, LANG_KEYCLICK_REPEATS
, false, "keyclick repeats", NULL
),
1189 #endif /* CONFIG_CODEC == SWCODEC */
1190 FILENAME_SETTING(0, playlist_catalog_dir
, "playlist catalog directory",
1191 PLAYLIST_CATALOG_DEFAULT_DIR
, NULL
, NULL
, MAX_FILENAME
+1),
1194 const int nb_settings
= sizeof(settings
)/sizeof(*settings
);