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 ****************************************************************************/
28 #include "backlight.h"
30 #include "settings_list.h"
37 #include "powermgmt.h"
39 #include "lcd-remote.h"
41 #include "rbunicode.h"
42 #ifdef HAVE_LCD_BITMAP
43 #include "peakmeter.h"
45 #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, &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 = (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 = (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}}}}
147 /* some sets of values which are used more than once, to save memory */
148 static const char off_on
[] = "off,on";
149 static const char off_on_ask
[] = "off,on,ask";
150 static const char off_number_spell
[] = "off,number,spell";
151 #ifdef HAVE_LCD_BITMAP
152 static const char graphic_numeric
[] = "graphic,numeric";
155 #ifdef HAVE_RECORDING
156 /* keep synchronous to trig_durations and
157 trigger_times in settings_apply_trigger */
158 static const char trig_durations_conf
[] =
159 "0s,1s,2s,5s,10s,15s,20s,25s,30s,1min,2min,5min,10min";
160 /* these should be in the config.h files */
161 #if CONFIG_CODEC == MAS3587F
162 # define DEFAULT_REC_MIC_GAIN 8
163 # define DEFAULT_REC_LEFT_GAIN 2
164 # define DEFAULT_REC_RIGHT_GAIN 2
165 #elif CONFIG_CODEC == SWCODEC
167 # define DEFAULT_REC_MIC_GAIN 16
168 # define DEFAULT_REC_LEFT_GAIN 0
169 # define DEFAULT_REC_RIGHT_GAIN 0
170 # elif defined(HAVE_TLV320)
171 # define DEFAULT_REC_MIC_GAIN 0
172 # define DEFAULT_REC_LEFT_GAIN 0
173 # define DEFAULT_REC_RIGHT_GAIN 0
174 # elif defined(HAVE_WM8975)
175 # define DEFAULT_REC_MIC_GAIN 16
176 # define DEFAULT_REC_LEFT_GAIN 0
177 # define DEFAULT_REC_RIGHT_GAIN 0
178 # elif defined(HAVE_WM8758)
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_WM8731)
183 # define DEFAULT_REC_MIC_GAIN 16
184 # define DEFAULT_REC_LEFT_GAIN 0
185 # define DEFAULT_REC_RIGHT_GAIN 0
189 static long rectime_getlang(int value
)
193 return TALK_ID(value
, UNIT_SEC
);
195 static void rectime_formatter(char *buffer
, int buffer_size
,
196 int val
, const char *unit
)
200 strcpy(buffer
, str(LANG_OFF
));
202 snprintf(buffer
, buffer_size
, "%d s", val
);
205 #endif /* HAVE_RECORDING */
207 #ifdef HAVE_BACKLIGHT
208 static const char backlight_times_conf
[] =
209 "off,on,1,2,3,4,5,6,7,8,9,10,15,20,25,30,45,60,90";
210 static const int backlight_times
[] =
211 {-1, -1, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 15, 20, 25, 30, 45, 60, 90};
212 static void backlight_formatter(char *buffer
, int buffer_size
,
213 int val
, const char *unit
)
217 strcpy(buffer
, str(LANG_OFF
));
219 strcpy(buffer
, str(LANG_ON
));
221 snprintf(buffer
, buffer_size
, "%d s", backlight_times
[val
]);
223 static long backlight_getlang(int value
)
229 return TALK_ID(backlight_times
[value
], UNIT_SEC
);
232 /* ffwd/rewind and scan acceleration stuff */
233 static int ff_rewind_min_stepvals
[] = {1,2,3,4,5,6,8,10,15,20,25,30,45,60};
234 static long ff_rewind_min_step_getlang(int value
)
236 return TALK_ID(ff_rewind_min_stepvals
[value
], UNIT_SEC
);
238 static void ff_rewind_min_step_formatter(char *buffer
, int buffer_size
,
239 int val
, const char *unit
)
242 snprintf(buffer
, buffer_size
, "%ds", ff_rewind_min_stepvals
[val
]);
244 static long scanaccel_getlang(int value
)
248 return TALK_ID(value
, UNIT_SEC
);
250 static void scanaccel_formatter(char *buffer
, int buffer_size
,
251 int val
, const char *unit
)
255 strcpy(buffer
, str(LANG_OFF
));
257 snprintf(buffer
, buffer_size
, "2x/%ds", val
);
260 static int poweroff_idle_timer_times
[] = {0,1,2,3,4,5,6,7,8,9,10,15,30,45,60};
261 static long poweroff_idle_timer_getlang(int value
)
265 return TALK_ID(poweroff_idle_timer_times
[value
], UNIT_MIN
);
267 static void poweroff_idle_timer_formatter(char *buffer
, int buffer_size
,
268 int val
, const char *unit
)
272 strcpy(buffer
, str(LANG_OFF
));
274 snprintf(buffer
, buffer_size
, "%dm", poweroff_idle_timer_times
[val
]);
277 static long listaccel_getlang(int value
)
281 return TALK_ID((HZ
/2)*value
, UNIT_MS
);
283 static void listaccel_formatter(char *buffer
, int buffer_size
,
284 int val
, const char *unit
)
288 strcpy(buffer
, str(LANG_OFF
));
290 snprintf(buffer
, buffer_size
, "%d ms", 5*HZ
*val
);
293 #if CONFIG_CODEC == SWCODEC
294 static void crossfeed_format(char* buffer
, int buffer_size
, int value
,
297 snprintf(buffer
, buffer_size
, "%s%d.%d %s", value
== 0 ? " " : "-",
298 value
/ 10, value
% 10, unit
);
300 static void crossfeed_cross_set(int val
)
303 dsp_set_crossfeed_cross_params(global_settings
.crossfeed_cross_gain
,
304 global_settings
.crossfeed_hf_attenuation
,
305 global_settings
.crossfeed_hf_cutoff
);
308 static void replaygain_preamp_format(char* buffer
, int buffer_size
, int value
,
313 snprintf(buffer
, buffer_size
, "%s%d.%d %s", value
< 0 ? "-" : "",
314 v
/ 10, v
% 10, unit
);
318 #if (CONFIG_CODEC == MAS3587F) || (CONFIG_CODEC == MAS3539F)
319 static void set_mdb_enable(bool value
)
321 sound_set_mdb_enable((int)value
);
323 static void set_superbass(bool value
)
325 sound_set_superbass((int)value
);
329 #ifdef HAVE_LCD_CHARCELLS
330 static void jumpscroll_format(char* buffer
, int buffer_size
, int value
,
337 strcpy(buffer
, str(LANG_OFF
));
340 strcpy(buffer
, str(LANG_ONE_TIME
));
345 snprintf(buffer
, buffer_size
, "%d", value
);
348 strcpy(buffer
, str(LANG_ALWAYS
));
352 static long jumpscroll_getlang(int value
)
359 return LANG_ONE_TIME
;
363 return TALK_ID(2, UNIT_INT
);
369 #endif /* HAVE_LCD_CHARCELLS */
372 const struct settings_list settings
[] = {
374 SOUND_SETTING(0,volume
, LANG_VOLUME
, "volume", SOUND_VOLUME
),
375 SOUND_SETTING(0,balance
, LANG_BALANCE
, "balance", SOUND_BALANCE
),
376 SOUND_SETTING(0,bass
, LANG_BASS
, "bass", SOUND_BASS
),
377 SOUND_SETTING(0,treble
, LANG_TREBLE
, "treble", SOUND_TREBLE
),
379 #if (CONFIG_CODEC == MAS3587F) || (CONFIG_CODEC == MAS3539F)
380 SOUND_SETTING(0,loudness
, LANG_LOUDNESS
, "loudness", SOUND_LOUDNESS
),
381 STRINGCHOICE_SETTING(0,avc
,LANG_AUTOVOL
,0,"auto volume",
382 "off,20ms,2,4,8,", sound_set_avc
, 5,
383 LANG_OFF
,TALK_ID(20, UNIT_MS
),TALK_ID(2, UNIT_SEC
),
384 TALK_ID(4, UNIT_SEC
),TALK_ID(8, UNIT_SEC
)),
385 OFFON_SETTING(0, superbass
, LANG_SUPERBASS
, false, "superbass", set_superbass
),
388 CHOICE_SETTING(0,channel_config
,LANG_CHANNEL
,0,"channels",
389 "stereo,mono,custom,mono left,mono right,karaoke",
391 6, ID2P(LANG_CHANNEL_STEREO
), ID2P(LANG_CHANNEL_MONO
),
392 ID2P(LANG_CHANNEL_CUSTOM
), ID2P(LANG_CHANNEL_LEFT
),
393 ID2P(LANG_CHANNEL_RIGHT
), ID2P(LANG_CHANNEL_KARAOKE
)),
394 SOUND_SETTING(0,stereo_width
, LANG_STEREO_WIDTH
,
395 "stereo_width", SOUND_STEREO_WIDTH
),
397 OFFON_SETTING(0, playlist_shuffle
, LANG_SHUFFLE
, false, "shuffle", NULL
),
398 SYSTEM_SETTING(NVRAM(4),resume_index
,-1),
399 SYSTEM_SETTING(NVRAM(4),resume_first_index
,0),
400 SYSTEM_SETTING(NVRAM(4),resume_offset
,-1),
401 SYSTEM_SETTING(NVRAM(4),resume_seed
,-1),
402 CHOICE_SETTING(0, repeat_mode
, LANG_REPEAT
, REPEAT_ALL
, "repeat",
403 "off,all,one,shuffle"
404 #ifdef AB_REPEAT_ENABLE
408 #ifdef AB_REPEAT_ENABLE
413 ID2P(LANG_OFF
), ID2P(LANG_REPEAT_ALL
), ID2P(LANG_REPEAT_ONE
), ID2P(LANG_SHUFFLE
)
414 #ifdef AB_REPEAT_ENABLE
415 ,ID2P(LANG_REPEAT_AB
)
417 ), /* CHOICE_SETTING( repeat_mode ) */
419 #ifdef HAVE_LCD_CONTRAST
420 /* its easier to leave this one un-macro()ed for the time being */
421 {F_T_INT
|F_DEF_ISFUNC
|F_INT_SETTING
, &global_settings
.contrast
,
422 LANG_CONTRAST
, FUNCTYPE(lcd_default_contrast
),
423 "contrast", NULL
, {.int_setting
= (struct int_setting
[]){
424 { lcd_set_contrast
, UNIT_INT
, MIN_CONTRAST_SETTING
,
425 MAX_CONTRAST_SETTING
, 1, NULL
, NULL
}}}},
427 #ifdef HAVE_BACKLIGHT
428 INT_SETTING_W_CFGVALS(F_FLIPLIST
, backlight_timeout
, LANG_BACKLIGHT
, 6,
429 "backlight timeout", backlight_times_conf
, UNIT_SEC
,
430 0, 18, 1, backlight_formatter
, backlight_getlang
,
431 backlight_set_timeout
),
433 INT_SETTING_W_CFGVALS(F_FLIPLIST
, backlight_timeout_plugged
,
434 LANG_BACKLIGHT_ON_WHEN_CHARGING
, 11,
435 "backlight timeout plugged", backlight_times_conf
, UNIT_SEC
,
436 0, 18, 1, backlight_formatter
, backlight_getlang
,
437 backlight_set_timeout_plugged
),
439 #endif /* HAVE_BACKLIGHT */
440 #ifdef HAVE_LCD_BITMAP
441 BOOL_SETTING(0, invert
, LANG_INVERT
, false ,"invert", off_on
,
442 LANG_INVERT_LCD_INVERSE
, LANG_INVERT_LCD_NORMAL
, lcd_set_invert_display
),
443 OFFON_SETTING(0,flip_display
, LANG_FLIP_DISPLAY
, false,"flip display", NULL
),
445 BOOL_SETTING(F_TEMPVAR
, invert_cursor
, LANG_INVERT_CURSOR
, true ,"invert cursor", off_on
,
446 LANG_INVERT_CURSOR_BAR
, LANG_INVERT_CURSOR_POINTER
, NULL
),
447 OFFON_SETTING(F_THEMESETTING
,statusbar
, LANG_STATUS_BAR
, true,"statusbar", NULL
),
448 OFFON_SETTING(0,scrollbar
, LANG_SCROLL_BAR
, true,"scrollbar", NULL
),
449 #if CONFIG_KEYPAD == RECORDER_PAD
450 OFFON_SETTING(0,buttonbar
, LANG_BUTTON_BAR
,true,"buttonbar", NULL
),
452 CHOICE_SETTING(0, volume_type
, LANG_VOLUME_DISPLAY
, 0,
453 "volume display", graphic_numeric
, NULL
, 2,
454 ID2P(LANG_DISPLAY_GRAPHIC
), ID2P(LANG_DISPLAY_NUMERIC
)),
455 CHOICE_SETTING(0, battery_display
, LANG_BATTERY_DISPLAY
, 0,
456 "battery display", graphic_numeric
, NULL
, 2,
457 ID2P(LANG_DISPLAY_GRAPHIC
), ID2P(LANG_DISPLAY_NUMERIC
)),
458 CHOICE_SETTING(0, timeformat
, LANG_TIMEFORMAT
, 0,
459 "time format", "24hour,12hour", NULL
, 2,
460 ID2P(LANG_24_HOUR_CLOCK
), ID2P(LANG_12_HOUR_CLOCK
)),
461 #endif /* HAVE_LCD_BITMAP */
462 OFFON_SETTING(0,show_icons
, LANG_SHOW_ICONS
,true,"show icons", NULL
),
464 INT_SETTING_W_CFGVALS(F_FLIPLIST
, poweroff
, LANG_POWEROFF_IDLE
, 10, "idle poweroff",
465 "off,1,2,3,4,5,6,7,8,9,10,15,30,45,60", UNIT_MIN
,
466 0, 14, 1, poweroff_idle_timer_formatter
,
467 poweroff_idle_timer_getlang
, set_poweroff_timeout
),
468 SYSTEM_SETTING(NVRAM(4),runtime
,0),
469 SYSTEM_SETTING(NVRAM(4),topruntime
,0),
471 INT_SETTING(0,max_files_in_playlist
,LANG_MAX_FILES_IN_PLAYLIST
,
477 "max files in playlist", UNIT_INT
,1000,20000,1000,NULL
,NULL
,NULL
),
478 INT_SETTING(0,max_files_in_dir
,LANG_MAX_FILES_IN_DIR
,
484 "max files in dir", UNIT_INT
,50,10000,50,NULL
,NULL
,NULL
),
486 #if BATTERY_CAPACITY_INC > 0
487 INT_SETTING(0, battery_capacity
, LANG_BATTERY_CAPACITY
, BATTERY_CAPACITY_DEFAULT
,
488 "battery capacity", UNIT_MAH
,
489 BATTERY_CAPACITY_MIN
, BATTERY_CAPACITY_MAX
, BATTERY_CAPACITY_INC
,
494 OFFON_SETTING(NVRAM(1), car_adapter_mode
,
495 LANG_CAR_ADAPTER_MODE
, false, "car adapter mode", NULL
),
499 OFFON_SETTING(0,fm_force_mono
, LANG_FM_MONO_MODE
,
500 false, "force fm mono", toggle_mono_mode
),
501 SYSTEM_SETTING(NVRAM(4),last_frequency
,0),
504 #if BATTERY_TYPES_COUNT > 1
505 CHOICE_SETTING(0, battery_type
, LANG_BATTERY_TYPE
, 0,
506 "battery type","alkaline,nimh", NULL
, 2,
507 ID2P(LANG_BATTERY_TYPE_ALKALINE
), ID2P(LANG_BATTERY_TYPE_NIMH
)),
509 #ifdef HAVE_REMOTE_LCD
511 INT_SETTING(0, remote_contrast
, LANG_CONTRAST
, DEFAULT_REMOTE_CONTRAST_SETTING
,
512 "remote contrast", UNIT_INT
, MIN_REMOTE_CONTRAST_SETTING
,
513 MAX_REMOTE_CONTRAST_SETTING
, 1, NULL
, NULL
, lcd_remote_set_contrast
),
514 BOOL_SETTING(0, remote_invert
, LANG_INVERT
, false ,"remote invert", off_on
,
515 LANG_INVERT_LCD_INVERSE
, LANG_INVERT_LCD_NORMAL
, lcd_remote_set_invert_display
),
516 OFFON_SETTING(0,remote_flip_display
, LANG_FLIP_DISPLAY
,
517 false,"remote flip display", NULL
),
518 INT_SETTING_W_CFGVALS(F_FLIPLIST
, remote_backlight_timeout
, LANG_BACKLIGHT
, 6,
519 "remote backlight timeout", backlight_times_conf
, UNIT_SEC
,
520 0, 18, 1, backlight_formatter
, backlight_getlang
,
521 remote_backlight_set_timeout
),
523 INT_SETTING_W_CFGVALS(F_FLIPLIST
, remote_backlight_timeout_plugged
,
524 LANG_BACKLIGHT_ON_WHEN_CHARGING
, 11,
525 "remote backlight timeout plugged", backlight_times_conf
, UNIT_SEC
,
526 0, 18, 1, backlight_formatter
, backlight_getlang
,
527 remote_backlight_set_timeout_plugged
),
529 #ifdef HAVE_REMOTE_LCD_TICKING
530 OFFON_SETTING(0,remote_reduce_ticking
, LANG_REDUCE_TICKING
,
531 false,"remote reduce ticking", NULL
),
535 #ifdef HAVE_BACKLIGHT
536 OFFON_SETTING(0,bl_filter_first_keypress
,
537 LANG_BACKLIGHT_FILTER_FIRST_KEYPRESS
, false,
538 "backlight filters first keypress", NULL
),
539 #ifdef HAVE_REMOTE_LCD
540 OFFON_SETTING(0,remote_bl_filter_first_keypress
,
541 LANG_BACKLIGHT_FILTER_FIRST_KEYPRESS
, false,
542 "backlight filters first remote keypress", NULL
),
544 #endif /* HAVE_BACKLIGHT */
546 /** End of old RTC config block **/
548 #ifdef HAVE_BACKLIGHT
549 OFFON_SETTING(0,caption_backlight
, LANG_CAPTION_BACKLIGHT
,
550 false,"caption backlight",NULL
),
551 #ifdef HAVE_REMOTE_LCD
552 OFFON_SETTING(0,remote_caption_backlight
, LANG_CAPTION_BACKLIGHT
,
553 false,"remote caption backlight",NULL
),
555 #endif /* HAVE_BACKLIGHT */
556 #ifdef HAVE_BACKLIGHT_BRIGHTNESS
557 INT_SETTING(0, brightness
, LANG_BRIGHTNESS
, DEFAULT_BRIGHTNESS_SETTING
,
558 "brightness",UNIT_INT
, MIN_BRIGHTNESS_SETTING
, MAX_BRIGHTNESS_SETTING
, 1,
559 NULL
, NULL
, backlight_set_brightness
),
561 #if defined(HAVE_BACKLIGHT_PWM_FADING) && !defined(SIMULATOR)
562 /* backlight fading */
563 STRINGCHOICE_SETTING(0,backlight_fade_in
, LANG_BACKLIGHT_FADE_IN
, 1,
564 "backlight fade in","off,500ms,1s,2s", backlight_set_fade_in
, 4,
565 LANG_OFF
, TALK_ID(500, UNIT_MS
),
566 TALK_ID(1, UNIT_SEC
), TALK_ID(2, UNIT_SEC
)),
567 STRINGCHOICE_SETTING(0,backlight_fade_out
, LANG_BACKLIGHT_FADE_OUT
, 1,
568 "backlight fade out","off,500ms,1s,2s,3s,5s,10s", backlight_set_fade_out
, 7,
569 LANG_OFF
, TALK_ID(500, UNIT_MS
),
570 TALK_ID(1, UNIT_SEC
), TALK_ID(2, UNIT_SEC
),
571 TALK_ID(3, UNIT_SEC
), TALK_ID(5, UNIT_SEC
), TALK_ID(10, UNIT_SEC
)),
573 INT_SETTING(0, scroll_speed
, LANG_SCROLL_SPEED
, 9,"scroll speed",
574 UNIT_INT
, 0, 15, 1, NULL
, NULL
, lcd_scroll_speed
),
575 INT_SETTING(0, scroll_delay
, LANG_SCROLL_DELAY
, 1000, "scroll delay",
576 UNIT_MS
, 0, 2500, 100, NULL
,
577 NULL
, lcd_scroll_delay
) ,
578 INT_SETTING(0, bidir_limit
, LANG_BIDIR_SCROLL
, 50, "bidir limit",
579 UNIT_PERCENT
, 0, 200, 25, NULL
, NULL
, lcd_bidir_scroll
),
580 #ifdef HAVE_REMOTE_LCD
581 INT_SETTING(0, remote_scroll_speed
, LANG_SCROLL_SPEED
, 9, "remote scroll speed",
582 UNIT_INT
, 0,15, 1, NULL
, NULL
, lcd_remote_scroll_speed
),
583 INT_SETTING(0, remote_scroll_step
, LANG_SCROLL_STEP
, 6, "remote scroll step",
584 UNIT_PIXEL
, 1, LCD_REMOTE_WIDTH
, 1, NULL
, NULL
, lcd_remote_scroll_step
),
585 INT_SETTING(0, remote_scroll_delay
, LANG_SCROLL_DELAY
, 1000, "remote scroll delay",
586 UNIT_MS
, 0, 2500, 100, NULL
, NULL
, lcd_remote_scroll_delay
),
587 INT_SETTING(0, remote_bidir_limit
, LANG_BIDIR_SCROLL
, 50, "remote bidir limit",
588 UNIT_PERCENT
, 0, 200, 25, NULL
, NULL
, lcd_remote_bidir_scroll
),
590 #ifdef HAVE_LCD_BITMAP
591 OFFON_SETTING(0, offset_out_of_view
, LANG_SCREEN_SCROLL_VIEW
,
592 false, "Screen Scrolls Out Of View", NULL
),
593 INT_SETTING(0, scroll_step
, LANG_SCROLL_STEP
, 6, "scroll step",
594 UNIT_PIXEL
, 1, LCD_WIDTH
, 1, NULL
, NULL
, lcd_scroll_step
),
595 INT_SETTING(0, screen_scroll_step
, LANG_SCREEN_SCROLL_STEP
,
596 16, "screen scroll step",
597 UNIT_PIXEL
, 1, LCD_WIDTH
, 1, NULL
, NULL
, NULL
),
598 #endif /* HAVE_LCD_BITMAP */
599 #ifdef HAVE_LCD_CHARCELLS
600 INT_SETTING(0, jump_scroll
, LANG_JUMP_SCROLL
, 0, "jump scroll",
601 UNIT_INT
, 0, 5, 1, jumpscroll_format
, jumpscroll_getlang
, lcd_jump_scroll
),
602 INT_SETTING(0, jump_scroll_delay
, LANG_JUMP_SCROLL_DELAY
, 500, "jump scroll delay",
603 UNIT_MS
, 0, 2500, 100, NULL
, NULL
, lcd_jump_scroll_delay
),
605 OFFON_SETTING(0,scroll_paginated
,LANG_SCROLL_PAGINATED
,
606 false,"scroll paginated",NULL
),
607 #ifdef HAVE_LCD_COLOR
608 {F_T_INT
|F_RGB
|F_THEMESETTING
,&global_settings
.fg_color
,-1,INT(LCD_DEFAULT_FG
),
609 "foreground color",NULL
,UNUSED
},
610 {F_T_INT
|F_RGB
|F_THEMESETTING
,&global_settings
.bg_color
,-1,INT(LCD_DEFAULT_BG
),
611 "background color",NULL
,UNUSED
},
614 OFFON_SETTING(0,play_selected
,LANG_PLAY_SELECTED
,true,"play selected",NULL
),
615 OFFON_SETTING(0,party_mode
,LANG_PARTY_MODE
,false,"party mode",NULL
),
616 OFFON_SETTING(0,fade_on_stop
,LANG_FADE_ON_STOP
,true,"volume fade",NULL
),
617 INT_SETTING_W_CFGVALS(F_FLIPLIST
, ff_rewind_min_step
, LANG_FFRW_STEP
, FF_REWIND_1000
,
618 "scan min step", "1,2,3,4,5,6,8,10,15,20,25,30,45,60", UNIT_SEC
,
619 13, 0, -1, ff_rewind_min_step_formatter
,
620 ff_rewind_min_step_getlang
, NULL
),
621 INT_SETTING(0, ff_rewind_accel
, LANG_FFRW_ACCEL
, 3, "scan accel",
622 UNIT_SEC
, 16, 0, -1, scanaccel_formatter
, scanaccel_getlang
, NULL
),
623 #if CONFIG_CODEC == SWCODEC
624 STRINGCHOICE_SETTING(0, buffer_margin
, LANG_MP3BUFFER_MARGIN
, 0,"antiskip",
625 "5s,15s,30s,1min,2min,3min,5min,10min",NULL
, 8,
626 TALK_ID(5, UNIT_SEC
), TALK_ID(15, UNIT_SEC
),
627 TALK_ID(30, UNIT_SEC
), TALK_ID(1, UNIT_MIN
), TALK_ID(2, UNIT_MIN
),
628 TALK_ID(3, UNIT_MIN
), TALK_ID(5, UNIT_MIN
), TALK_ID(10, UNIT_MIN
)),
630 INT_SETTING(0, buffer_margin
, LANG_MP3BUFFER_MARGIN
, 0, "antiskip",
631 UNIT_SEC
, 0, 7, 1, NULL
, NULL
, audio_set_buffer_margin
),
635 INT_SETTING(0, disk_spindown
, LANG_SPINDOWN
, 5, "disk spindown",
636 UNIT_SEC
, 3, 254, 1, NULL
, NULL
, ata_spindown
),
637 #endif /* HAVE_MMC */
639 CHOICE_SETTING(0, dirfilter
, LANG_FILTER
, SHOW_SUPPORTED
, "show files",
640 "all,supported,music,playlists", NULL
, 4, ID2P(LANG_FILTER_ALL
),
641 ID2P(LANG_FILTER_SUPPORTED
), ID2P(LANG_FILTER_MUSIC
), ID2P(LANG_FILTER_PLAYLIST
)),
642 OFFON_SETTING(0,sort_case
,LANG_SORT_CASE
,false,"sort case",NULL
),
643 OFFON_SETTING(0,browse_current
,LANG_FOLLOW
,false,"follow playlist",NULL
),
644 OFFON_SETTING(0,playlist_viewer_icons
,LANG_SHOW_ICONS
,true,
645 "playlist viewer icons",NULL
),
646 OFFON_SETTING(0,playlist_viewer_indices
,LANG_SHOW_INDICES
,true,
647 "playlist viewer indices",NULL
),
648 CHOICE_SETTING(0, playlist_viewer_track_display
, LANG_TRACK_DISPLAY
, 0,
649 "playlist viewer track display","track name,full path", NULL
, 2,
650 ID2P(LANG_DISPLAY_TRACK_NAME_ONLY
), ID2P(LANG_DISPLAY_FULL_PATH
)),
651 CHOICE_SETTING(0, recursive_dir_insert
, LANG_RECURSE_DIRECTORY
, RECURSE_OFF
,
652 "recursive directory insert", off_on_ask
, NULL
, 3 ,
653 ID2P(LANG_OFF
), ID2P(LANG_ON
), ID2P(LANG_RESUME_SETTING_ASK
)),
655 CHOICE_SETTING(0, autocreatebookmark
, LANG_BOOKMARK_SETTINGS_AUTOCREATE
,
656 BOOKMARK_NO
, "autocreate bookmarks",
657 "off,on,ask,recent only - on,recent only - ask", NULL
, 5,
658 ID2P(LANG_SET_BOOL_NO
), ID2P(LANG_SET_BOOL_YES
),
659 ID2P(LANG_RESUME_SETTING_ASK
), ID2P(LANG_BOOKMARK_SETTINGS_RECENT_ONLY_YES
),
660 ID2P(LANG_BOOKMARK_SETTINGS_RECENT_ONLY_ASK
)),
661 CHOICE_SETTING(0, autoloadbookmark
, LANG_BOOKMARK_SETTINGS_AUTOLOAD
,
662 BOOKMARK_NO
, "autoload bookmarks", off_on_ask
, NULL
, 3,
663 ID2P(LANG_SET_BOOL_NO
), ID2P(LANG_SET_BOOL_YES
), ID2P(LANG_RESUME_SETTING_ASK
)),
664 CHOICE_SETTING(0, usemrb
, LANG_BOOKMARK_SETTINGS_MAINTAIN_RECENT_BOOKMARKS
,
665 BOOKMARK_NO
, "use most-recent-bookmarks", "off,on,unique only", NULL
, 3,
666 ID2P(LANG_SET_BOOL_NO
), ID2P(LANG_SET_BOOL_YES
),
667 ID2P(LANG_BOOKMARK_SETTINGS_UNIQUE_ONLY
)),
668 #ifdef HAVE_LCD_BITMAP
670 STRINGCHOICE_SETTING(0, peak_meter_clip_hold
, LANG_PM_CLIP_HOLD
, 16,
671 "peak meter clip hold",
672 "on,1,2,3,4,5,6,7,8,9,10,15,20,25,30,45,60,90,2min"
673 ",3min,5min,10min,20min,45min,90min", peak_meter_set_clip_hold
,
675 TALK_ID(1, UNIT_SEC
), TALK_ID(2, UNIT_SEC
), TALK_ID(3, UNIT_SEC
),
676 TALK_ID(4, UNIT_SEC
), TALK_ID(5, UNIT_SEC
), TALK_ID(6, UNIT_SEC
),
677 TALK_ID(7, UNIT_SEC
), TALK_ID(8, UNIT_SEC
), TALK_ID(9, UNIT_SEC
),
678 TALK_ID(10, UNIT_SEC
), TALK_ID(15, UNIT_SEC
), TALK_ID(20, UNIT_SEC
),
679 TALK_ID(25, UNIT_SEC
), TALK_ID(30, UNIT_SEC
), TALK_ID(45, UNIT_SEC
),
680 TALK_ID(60, UNIT_SEC
), TALK_ID(90, UNIT_SEC
), TALK_ID(2, UNIT_MIN
),
681 TALK_ID(3, UNIT_MIN
), TALK_ID(5, UNIT_MIN
), TALK_ID(10, UNIT_MIN
),
682 TALK_ID(20, UNIT_MIN
), TALK_ID(45, UNIT_MIN
), TALK_ID(90, UNIT_MIN
)),
683 STRINGCHOICE_SETTING(0, peak_meter_hold
, LANG_PM_PEAK_HOLD
, 3,
685 "off,200ms,300ms,500ms,1,2,3,4,5,6,7,8,9,10,15,20,30,1min",
687 TALK_ID(200, UNIT_MS
), TALK_ID(300, UNIT_MS
), TALK_ID(500, UNIT_MS
),
688 TALK_ID(1, UNIT_SEC
), TALK_ID(2, UNIT_SEC
), TALK_ID(3, UNIT_SEC
),
689 TALK_ID(4, UNIT_SEC
), TALK_ID(5, UNIT_SEC
), TALK_ID(6, UNIT_SEC
),
690 TALK_ID(7, UNIT_SEC
), TALK_ID(8, UNIT_SEC
), TALK_ID(9, UNIT_SEC
),
691 TALK_ID(10, UNIT_SEC
), TALK_ID(15, UNIT_SEC
), TALK_ID(20, UNIT_SEC
),
692 TALK_ID(30, UNIT_SEC
), TALK_ID(60, UNIT_SEC
)),
693 INT_SETTING(0, peak_meter_release
, LANG_PM_RELEASE
, 8, "peak meter release",
694 LANG_PM_UNITS_PER_READ
, 1, 0x7e1, 1, NULL
, NULL
,NULL
),
695 OFFON_SETTING(0,peak_meter_dbfs
,LANG_PM_DBFS
,true,"peak meter dbfs",NULL
),
696 {F_T_INT
,&global_settings
.peak_meter_min
,LANG_PM_MIN
,INT(60),"peak meter min",NULL
,UNUSED
},
697 {F_T_INT
,&global_settings
.peak_meter_max
,LANG_PM_MAX
,INT(0),"peak meter max",NULL
,UNUSED
},
699 #if (CONFIG_CODEC == MAS3587F) || (CONFIG_CODEC == MAS3539F)
700 SOUND_SETTING(0, mdb_strength
, LANG_MDB_STRENGTH
,
701 "mdb strength", SOUND_MDB_STRENGTH
),
702 SOUND_SETTING(0, mdb_harmonics
, LANG_MDB_HARMONICS
,
703 "mdb harmonics", SOUND_MDB_HARMONICS
),
704 SOUND_SETTING(0, mdb_center
, LANG_MDB_CENTER
,
705 "mdb center", SOUND_MDB_CENTER
),
706 SOUND_SETTING(0, mdb_shape
, LANG_MDB_SHAPE
,
707 "mdb shape", SOUND_MDB_SHAPE
),
708 OFFON_SETTING(0, mdb_enable
, LANG_MDB_ENABLE
,
709 false, "mdb enable", set_mdb_enable
),
711 #if CONFIG_CODEC == MAS3507D
712 OFFON_SETTING(0,line_in
,LANG_LINE_IN
,false,"line in",NULL
),
715 OFFON_SETTING(F_TEMPVAR
, talk_menu
, LANG_VOICE_MENU
, true, "talk menu", NULL
),
716 CHOICE_SETTING(0, talk_dir
, LANG_VOICE_DIR
, 0,
717 "talk dir", off_number_spell
, NULL
, 3,
718 ID2P(LANG_OFF
), ID2P(LANG_VOICE_NUMBER
),
719 ID2P(LANG_VOICE_SPELL
)),
720 OFFON_SETTING(F_TEMPVAR
, talk_dir_clip
, LANG_VOICE_DIR_TALK
, false, "talk dir clip", NULL
),
721 CHOICE_SETTING(0, talk_file
, LANG_VOICE_FILE
, 0,
722 "talk file", off_number_spell
, NULL
, 3,
723 ID2P(LANG_OFF
), ID2P(LANG_VOICE_NUMBER
),
724 ID2P(LANG_VOICE_SPELL
)),
725 OFFON_SETTING(F_TEMPVAR
, talk_file_clip
, LANG_VOICE_FILE_TALK
, false, "talk file clip", NULL
),
728 CHOICE_SETTING(0, sort_file
, LANG_SORT_FILE
, 0 ,
729 "sort files", "alpha,oldest,newest,type", NULL
, 4,
730 ID2P(LANG_SORT_ALPHA
), ID2P(LANG_SORT_DATE
),
731 ID2P(LANG_SORT_DATE_REVERSE
) , ID2P(LANG_SORT_TYPE
)),
732 CHOICE_SETTING(0, sort_dir
, LANG_SORT_DIR
, 0 ,
733 "sort dirs", "alpha,oldest,newest", NULL
, 3,
734 ID2P(LANG_SORT_ALPHA
), ID2P(LANG_SORT_DATE
),
735 ID2P(LANG_SORT_DATE_REVERSE
)),
736 BOOL_SETTING(0, id3_v1_first
, LANG_ID3_ORDER
, false,
737 "id3 tag priority", "v2-v1,v1-v2",
738 LANG_ID3_V1_FIRST
, LANG_ID3_V2_FIRST
, mpeg_id3_options
),
740 #ifdef HAVE_RECORDING
742 STRINGCHOICE_SETTING(F_RECSETTING
, rec_timesplit
, LANG_SPLIT_TIME
, 0,
744 "off,00:05,00:10,00:15,00:30,01:00,01:14,01:20,02:00,"
745 "04:00,06:00,08:00,10:00,12:00,18:00,24:00",
747 TALK_ID(5, UNIT_MIN
), TALK_ID(10, UNIT_MIN
), TALK_ID(15, UNIT_MIN
),
748 TALK_ID(30, UNIT_MIN
), TALK_ID(60, UNIT_MIN
), TALK_ID(74, UNIT_MIN
),
749 TALK_ID(80, UNIT_MIN
), TALK_ID(2, UNIT_HOUR
), TALK_ID(4, UNIT_HOUR
),
750 TALK_ID(6, UNIT_HOUR
), TALK_ID(8, UNIT_HOUR
), TALK_ID(10, UNIT_HOUR
),
751 TALK_ID(12, UNIT_HOUR
), TALK_ID(18, UNIT_HOUR
), TALK_ID(20, UNIT_HOUR
),
752 TALK_ID(24, UNIT_HOUR
)),
753 STRINGCHOICE_SETTING(F_RECSETTING
, rec_sizesplit
, LANG_SPLIT_SIZE
, 0,
755 "off,5MB,10MB,15MB,32MB,64MB,75MB,100MB,128MB,"
756 "256MB,512MB,650MB,700MB,1GB,1.5GB,1.75GB",
758 TALK_ID(5, UNIT_MB
), TALK_ID(10, UNIT_MB
), TALK_ID(15, UNIT_MB
),
759 TALK_ID(32, UNIT_MB
), TALK_ID(64, UNIT_MB
), TALK_ID(75, UNIT_MB
),
760 TALK_ID(100, UNIT_MB
), TALK_ID(128, UNIT_MB
), TALK_ID(256, UNIT_MB
),
761 TALK_ID(512, UNIT_MB
), TALK_ID(650, UNIT_MB
), TALK_ID(700, UNIT_MB
),
762 TALK_ID(1024, UNIT_MB
), TALK_ID(1536, UNIT_MB
), TALK_ID(1792, UNIT_MB
)),
763 {F_T_INT
|F_RECSETTING
, &global_settings
.rec_channels
,
764 LANG_RECORDING_CHANNELS
, INT(0),
765 "rec channels","stereo,mono",UNUSED
},
766 CHOICE_SETTING(F_RECSETTING
, rec_split_type
, LANG_SPLIT_TYPE
, 0 ,
767 "rec split type", "Split, Stop", NULL
, 2,
768 ID2P(LANG_START_NEW_FILE
), ID2P(LANG_STOP_RECORDING
)),
769 CHOICE_SETTING(F_RECSETTING
, rec_split_method
, LANG_SPLIT_MEASURE
, 0 ,
770 "rec split method", "Time,Filesize", NULL
, 2,
771 ID2P(LANG_REC_TIME
), ID2P(LANG_REC_SIZE
)),
772 {F_T_INT
|F_RECSETTING
, &global_settings
.rec_source
,
773 LANG_RECORDING_SOURCE
, INT(0),
775 &HAVE_MIC_REC_(",mic")
776 HAVE_LINE_REC_(",line")
777 HAVE_SPDIF_REC_(",spdif")
778 HAVE_FMRADIO_REC_(",fmradio")[1]
780 INT_SETTING(F_RECSETTING
, rec_prerecord_time
, LANG_RECORD_PRERECORD_TIME
,
781 0, "prerecording time",
782 UNIT_SEC
, 0, 30, 1, rectime_formatter
, rectime_getlang
, NULL
),
784 FILENAME_SETTING(F_RECSETTING
, rec_directory
, "rec path",
785 REC_BASE_DIR
, NULL
, NULL
, MAX_FILENAME
+1),
786 #ifdef HAVE_BACKLIGHT
787 CHOICE_SETTING(F_RECSETTING
, cliplight
, LANG_CLIP_LIGHT
, 0 ,
788 "cliplight", "off,main,both,remote", NULL
,
789 #ifdef HAVE_REMOTE_LCD
794 ID2P(LANG_OFF
), ID2P(LANG_MAIN_UNIT
)
795 #ifdef HAVE_REMOTE_LCD
796 , ID2P(LANG_REMOTE_MAIN
), ID2P(LANG_REMOTE_UNIT
)
799 {F_T_INT
|F_RECSETTING
,&global_settings
.cliplight
,LANG_CLIP_LIGHT
,INT(0),
800 "cliplight","off,main,both,remote",UNUSED
},
802 #ifdef DEFAULT_REC_MIC_GAIN
803 {F_T_INT
|F_RECSETTING
,&global_settings
.rec_mic_gain
,
804 LANG_RECORDING_GAIN
,INT(DEFAULT_REC_MIC_GAIN
),
805 "rec mic gain",NULL
,UNUSED
},
806 #endif /* DEFAULT_REC_MIC_GAIN */
807 #ifdef DEFAULT_REC_LEFT_GAIN
808 {F_T_INT
|F_RECSETTING
,&global_settings
.rec_left_gain
,
809 LANG_RECORDING_LEFT
,INT(DEFAULT_REC_LEFT_GAIN
),
810 "rec left gain",NULL
,UNUSED
},
811 #endif /* DEFAULT_REC_LEFT_GAIN */
812 #ifdef DEFAULT_REC_RIGHT_GAIN
813 {F_T_INT
|F_RECSETTING
,&global_settings
.rec_right_gain
,LANG_RECORDING_RIGHT
,
814 INT(DEFAULT_REC_RIGHT_GAIN
),
815 "rec right gain",NULL
,UNUSED
},
816 #endif /* DEFAULT_REC_RIGHT_GAIN */
817 #if CONFIG_CODEC == MAS3587F
818 {F_T_INT
|F_RECSETTING
,&global_settings
.rec_frequency
,
819 LANG_RECORDING_FREQUENCY
,
820 INT(0),"rec frequency","44,48,32,22,24,16",UNUSED
},
821 INT_SETTING(F_RECSETTING
, rec_quality
, LANG_RECORDING_QUALITY
,
823 UNIT_INT
, 0, 7, 1, NULL
, NULL
, NULL
),
824 OFFON_SETTING(F_RECSETTING
,rec_editable
,LANG_RECORDING_EDITABLE
,
825 false,"editable recordings",NULL
),
826 #endif /* CONFIG_CODEC == MAS3587F */
827 #if CONFIG_CODEC == SWCODEC
828 {F_T_INT
|F_RECSETTING
,&global_settings
.rec_frequency
,
829 LANG_RECORDING_FREQUENCY
,INT(REC_FREQ_DEFAULT
),
830 "rec frequency",REC_FREQ_CFG_VAL_LIST
,UNUSED
},
831 {F_T_INT
|F_RECSETTING
,&global_settings
.rec_format
,
832 LANG_RECORDING_FORMAT
,INT(REC_FORMAT_DEFAULT
),
833 "rec format",REC_FORMAT_CFG_VAL_LIST
,UNUSED
},
834 /** Encoder settings start - keep these together **/
836 /* (no settings yet) */
838 {F_T_INT
|F_RECSETTING
, &global_settings
.mp3_enc_config
.bitrate
,-1,
839 INT(MP3_ENC_BITRATE_CFG_DEFAULT
),
840 "mp3_enc bitrate",MP3_ENC_BITRATE_CFG_VALUE_LIST
,UNUSED
},
842 /* (no settings yet) */
844 /* (no settings yet) */
845 /** Encoder settings end **/
846 #endif /* CONFIG_CODEC == SWCODEC */
847 /* values for the trigger */
848 {F_T_INT
|F_RECSETTING
,&global_settings
.rec_start_thres
,
849 LANG_RECORD_START_THRESHOLD
, INT(-35),
850 "trigger start threshold",NULL
,UNUSED
},
851 {F_T_INT
|F_RECSETTING
,&global_settings
.rec_stop_thres
,
852 LANG_RECORD_STOP_THRESHOLD
,INT(-45),
853 "trigger stop threshold",NULL
,UNUSED
},
854 {F_T_INT
|F_RECSETTING
,&global_settings
.rec_start_duration
,
855 LANG_RECORD_MIN_DURATION
,INT(0),
856 "trigger start duration",trig_durations_conf
,UNUSED
},
857 {F_T_INT
|F_RECSETTING
,&global_settings
.rec_stop_postrec
,
858 LANG_RECORD_STOP_POSTREC
,INT(2),
859 "trigger stop postrec",trig_durations_conf
,UNUSED
},
860 {F_T_INT
|F_RECSETTING
,&global_settings
.rec_stop_gap
,
861 LANG_RECORD_STOP_GAP
,INT(1),
862 "trigger min gap",trig_durations_conf
,UNUSED
},
863 {F_T_INT
|F_RECSETTING
,&global_settings
.rec_trigger_mode
,
864 LANG_RECORD_TRIGGER_MODE
,INT(0),
865 "trigger mode","off,once,repeat",UNUSED
},
866 #endif /* HAVE_RECORDING */
868 #ifdef HAVE_SPDIF_POWER
869 OFFON_SETTING(0, spdif_enable
, LANG_SPDIF_ENABLE
, false,
870 "spdif enable", spdif_power_enable
),
872 CHOICE_SETTING(0, next_folder
, LANG_NEXT_FOLDER
, FOLDER_ADVANCE_OFF
,
873 "folder navigation", "off,on,random",NULL
,3,
874 ID2P(LANG_SET_BOOL_NO
), ID2P(LANG_SET_BOOL_YES
), ID2P(LANG_RANDOM
)),
875 OFFON_SETTING(0,runtimedb
,LANG_RUNTIMEDB_ACTIVE
,false,"gather runtime data",NULL
),
877 #if CONFIG_CODEC == SWCODEC
879 OFFON_SETTING(0, replaygain
, LANG_REPLAYGAIN_ENABLE
, false, "replaygain", NULL
),
880 CHOICE_SETTING(0, replaygain_type
, LANG_REPLAYGAIN_MODE
, REPLAYGAIN_ALBUM
,
881 "replaygain type", "track,album,track shuffle", NULL
, 3,
882 ID2P(LANG_TRACK_GAIN
), ID2P(LANG_ALBUM_GAIN
), ID2P(LANG_SHUFFLE_GAIN
)),
883 OFFON_SETTING(0, replaygain_noclip
, LANG_REPLAYGAIN_NOCLIP
,
884 false, "replaygain noclip", NULL
),
885 INT_SETTING(0, replaygain_preamp
, LANG_REPLAYGAIN_PREAMP
, 0, "replaygain preamp",
886 UNIT_DB
, -120, 120, 5, replaygain_preamp_format
, NULL
, NULL
),
888 CHOICE_SETTING(0, beep
, LANG_BEEP
, 0,
889 "beep", "off,weak,moderate,strong", NULL
, 4,
890 ID2P(LANG_OFF
), ID2P(LANG_WEAK
), ID2P(LANG_MODERATE
), ID2P(LANG_STRONG
)),
893 CHOICE_SETTING(0, crossfade
, LANG_CROSSFADE_ENABLE
, 0, "crossfade",
894 "off,shuffle,track skip,shuffle and track skip,always",NULL
, 5,
895 ID2P(LANG_OFF
), ID2P(LANG_SHUFFLE
), ID2P(LANG_TRACKSKIP
),
896 ID2P(LANG_SHUFFLE_TRACKSKIP
), ID2P(LANG_ALWAYS
)),
897 INT_SETTING(0, crossfade_fade_in_delay
, LANG_CROSSFADE_FADE_IN_DELAY
, 0,
898 "crossfade fade in delay", UNIT_SEC
, 0, 7, 1, NULL
, NULL
, NULL
),
899 INT_SETTING(0, crossfade_fade_out_delay
, LANG_CROSSFADE_FADE_OUT_DELAY
, 0,
900 "crossfade fade out delay", UNIT_SEC
, 0, 7, 1, NULL
, NULL
, NULL
),
901 INT_SETTING(0, crossfade_fade_in_duration
, LANG_CROSSFADE_FADE_IN_DURATION
, 2,
902 "crossfade fade in duration", UNIT_SEC
, 0, 15, 1, NULL
, NULL
, NULL
),
903 INT_SETTING(0, crossfade_fade_out_duration
, LANG_CROSSFADE_FADE_OUT_DURATION
, 2,
904 "crossfade fade out duration", UNIT_SEC
, 0, 15, 1, NULL
, NULL
, NULL
),
905 CHOICE_SETTING(0, crossfade_fade_out_mixmode
, LANG_CROSSFADE_FADE_OUT_MODE
,
906 0, "crossfade fade out mode", "crossfade,mix", NULL
, 2,
907 ID2P(LANG_CROSSFADE
), ID2P(LANG_MIX
)),
910 OFFON_SETTING(0,crossfeed
, LANG_CROSSFEED
, false,
911 "crossfeed", dsp_set_crossfeed
),
912 INT_SETTING(0, crossfeed_direct_gain
, LANG_CROSSFEED_DIRECT_GAIN
, 15,
913 "crossfeed direct gain", UNIT_DB
, 0, 60, 5,
914 crossfeed_format
, NULL
, dsp_set_crossfeed_direct_gain
),
915 INT_SETTING(0, crossfeed_cross_gain
, LANG_CROSSFEED_CROSS_GAIN
, 60,
916 "crossfeed cross gain", UNIT_DB
, 30, 120, 5,
917 crossfeed_format
, NULL
, crossfeed_cross_set
),
918 INT_SETTING(0, crossfeed_hf_attenuation
, LANG_CROSSFEED_HF_ATTENUATION
, 160,
919 "crossfeed hf attenuation", UNIT_DB
, 60, 240, 5,
920 crossfeed_format
, NULL
, crossfeed_cross_set
),
921 INT_SETTING(0, crossfeed_hf_cutoff
, LANG_CROSSFEED_HF_CUTOFF
, 700,
922 "crossfeed hf cutoff", UNIT_HERTZ
, 500, 2000, 100,
923 NULL
, NULL
, crossfeed_cross_set
),
925 OFFON_SETTING(0,eq_enabled
,LANG_EQUALIZER_ENABLED
,false,"eq enabled",NULL
),
926 INT_SETTING(0, eq_precut
, LANG_EQUALIZER_PRECUT
, 0, "eq precut",
927 UNIT_DB
, 0, 240, 5, eq_precut_format
, NULL
, dsp_set_eq_precut
),
929 INT_SETTING(0, eq_band0_cutoff
, LANG_EQUALIZER_BAND_CUTOFF
, 60, "eq band 0 cutoff",
930 UNIT_HERTZ
, EQ_CUTOFF_MIN
, EQ_CUTOFF_MAX
, EQ_CUTOFF_STEP
,
932 INT_SETTING(0, eq_band1_cutoff
, LANG_EQUALIZER_BAND_CENTER
, 200, "eq band 1 cutoff",
933 UNIT_HERTZ
, EQ_CUTOFF_MIN
, EQ_CUTOFF_MAX
, EQ_CUTOFF_STEP
,
935 INT_SETTING(0, eq_band2_cutoff
, LANG_EQUALIZER_BAND_CENTER
, 800, "eq band 2 cutoff",
936 UNIT_HERTZ
, EQ_CUTOFF_MIN
, EQ_CUTOFF_MAX
, EQ_CUTOFF_STEP
,
938 INT_SETTING(0, eq_band3_cutoff
, LANG_EQUALIZER_BAND_CENTER
, 4000, "eq band 3 cutoff",
939 UNIT_HERTZ
, EQ_CUTOFF_MIN
, EQ_CUTOFF_MAX
, EQ_CUTOFF_STEP
,
941 INT_SETTING(0, eq_band4_cutoff
, LANG_EQUALIZER_BAND_CUTOFF
, 12000, "eq band 4 cutoff",
942 UNIT_HERTZ
, EQ_CUTOFF_MIN
, EQ_CUTOFF_MAX
, EQ_CUTOFF_STEP
,
944 /* 0..64 (or 0.0 to 6.4) */
945 INT_SETTING(0, eq_band0_q
, LANG_EQUALIZER_BAND_Q
, 7, "eq band 0 q",
946 UNIT_INT
, EQ_Q_MIN
, EQ_Q_MAX
, EQ_Q_STEP
,
947 eq_q_format
, NULL
, NULL
),
948 INT_SETTING(0, eq_band1_q
, LANG_EQUALIZER_BAND_Q
, 10, "eq band 1 q",
949 UNIT_INT
, EQ_Q_MIN
, EQ_Q_MAX
, EQ_Q_STEP
,
950 eq_q_format
, NULL
, NULL
),
951 INT_SETTING(0, eq_band2_q
, LANG_EQUALIZER_BAND_Q
, 10, "eq band 2 q",
952 UNIT_INT
, EQ_Q_MIN
, EQ_Q_MAX
, EQ_Q_STEP
,
953 eq_q_format
, NULL
, NULL
),
954 INT_SETTING(0, eq_band3_q
, LANG_EQUALIZER_BAND_Q
, 10, "eq band 3 q",
955 UNIT_INT
, EQ_Q_MIN
, EQ_Q_MAX
, EQ_Q_STEP
,
956 eq_q_format
, NULL
, NULL
),
957 INT_SETTING(0, eq_band4_q
, LANG_EQUALIZER_BAND_Q
, 7, "eq band 4 q",
958 UNIT_INT
, EQ_Q_MIN
, EQ_Q_MAX
, EQ_Q_STEP
,
959 eq_q_format
, NULL
, NULL
),
960 /* -240..240 (or -24db to +24db) */
961 INT_SETTING(0, eq_band0_gain
, LANG_EQUALIZER_BAND_GAIN
, 0, "eq band 0 gain",
962 UNIT_DB
, EQ_GAIN_MIN
, EQ_GAIN_MAX
, EQ_GAIN_STEP
,
963 eq_gain_format
, NULL
, NULL
),
964 INT_SETTING(0, eq_band1_gain
, LANG_EQUALIZER_BAND_GAIN
, 0, "eq band 1 gain",
965 UNIT_DB
, EQ_GAIN_MIN
, EQ_GAIN_MAX
, EQ_GAIN_STEP
,
966 eq_gain_format
, NULL
, NULL
),
967 INT_SETTING(0, eq_band2_gain
, LANG_EQUALIZER_BAND_GAIN
, 0, "eq band 2 gain",
968 UNIT_DB
, EQ_GAIN_MIN
, EQ_GAIN_MAX
, EQ_GAIN_STEP
,
969 eq_gain_format
, NULL
, NULL
),
970 INT_SETTING(0, eq_band3_gain
, LANG_EQUALIZER_BAND_GAIN
, 0, "eq band 3 gain",
971 UNIT_DB
, EQ_GAIN_MIN
, EQ_GAIN_MAX
, EQ_GAIN_STEP
,
972 eq_gain_format
, NULL
, NULL
),
973 INT_SETTING(0, eq_band4_gain
, LANG_EQUALIZER_BAND_GAIN
, 0, "eq band 4 gain",
974 UNIT_DB
, EQ_GAIN_MIN
, EQ_GAIN_MAX
, EQ_GAIN_STEP
,
975 eq_gain_format
, NULL
, NULL
),
978 OFFON_SETTING(0, dithering_enabled
, LANG_DITHERING
,
979 false, "dithering enabled", dsp_dither_enable
),
982 OFFON_SETTING(0,dircache
,LANG_DIRCACHE_ENABLE
,false,"dircache",NULL
),
983 SYSTEM_SETTING(NVRAM(4),dircache_size
,0),
987 #ifdef HAVE_TC_RAMCACHE
988 OFFON_SETTING(0,tagcache_ram
,LANG_TAGCACHE_RAM
,false,"tagcache_ram",NULL
),
990 OFFON_SETTING(0,tagcache_autoupdate
,
991 LANG_TAGCACHE_AUTOUPDATE
,false,"tagcache_autoupdate",NULL
),
993 #ifdef HAVE_LCD_BITMAP
994 CHOICE_SETTING(0, default_codepage
, LANG_DEFAULT_CODEPAGE
, 0,
995 "default codepage", /* The order must match with that in unicode.c */
996 "iso8859-1,iso8859-7,iso8859-8,cp1251,iso8859-11,cp1256,"
997 "iso8859-9,iso8859-2,sjis,gb2312,ksx1001,big5,utf-8",
999 ID2P(LANG_CODEPAGE_LATIN1
), ID2P(LANG_CODEPAGE_GREEK
),
1000 ID2P(LANG_CODEPAGE_HEBREW
), ID2P(LANG_CODEPAGE_CYRILLIC
),
1001 ID2P(LANG_CODEPAGE_THAI
), ID2P(LANG_CODEPAGE_ARABIC
),
1002 ID2P(LANG_CODEPAGE_TURKISH
), ID2P(LANG_CODEPAGE_LATIN_EXTENDED
),
1003 ID2P(LANG_CODEPAGE_JAPANESE
), ID2P(LANG_CODEPAGE_SIMPLIFIED
),
1004 ID2P(LANG_CODEPAGE_KOREAN
), ID2P(LANG_CODEPAGE_TRADITIONAL
),
1005 ID2P(LANG_CODEPAGE_UTF8
)),
1006 #else /* !HAVE_LCD_BITMAP */
1007 CHOICE_SETTING(0, default_codepage
, LANG_DEFAULT_CODEPAGE
, 0,
1008 "default codepage", /* The order must match with that in unicode.c */
1009 "iso8859-1,iso8859-7,cp1251,iso8859-9,iso8859-2,utf-8",
1011 ID2P(LANG_CODEPAGE_LATIN1
), ID2P(LANG_CODEPAGE_GREEK
),
1012 ID2P(LANG_CODEPAGE_CYRILLIC
), ID2P(LANG_CODEPAGE_TURKISH
),
1013 ID2P(LANG_CODEPAGE_LATIN_EXTENDED
), ID2P(LANG_CODEPAGE_UTF8
)),
1016 OFFON_SETTING(0,warnon_erase_dynplaylist
,
1017 LANG_WARN_ERASEDYNPLAYLIST_MENU
,false,
1018 "warn when erasing dynamic playlist",NULL
),
1020 #ifdef HAVE_BACKLIGHT
1021 #ifdef HAS_BUTTON_HOLD
1022 CHOICE_SETTING(0, backlight_on_button_hold
,
1023 LANG_BACKLIGHT_ON_BUTTON_HOLD
, 0, "backlight on button hold",
1024 "normal,off,on", backlight_set_on_button_hold
, 3,
1025 ID2P(LANG_BACKLIGHT_ON_BUTTON_HOLD_NORMAL
), ID2P(LANG_OFF
), ID2P(LANG_ON
)),
1028 #ifdef HAVE_LCD_SLEEP
1029 STRINGCHOICE_SETTING(0, lcd_sleep_after_backlight_off
,
1030 LANG_LCD_SLEEP_AFTER_BACKLIGHT_OFF
, 3,
1031 "lcd sleep after backlight off",
1032 "always,never,5,10,15,20,30,45,60,90", lcd_set_sleep_after_backlight_off
,
1033 10, LANG_ALWAYS
, LANG_NEVER
, TALK_ID(5, UNIT_SEC
), TALK_ID(10, UNIT_SEC
),
1034 TALK_ID(15, UNIT_SEC
), TALK_ID(20, UNIT_SEC
), TALK_ID(30, UNIT_SEC
),
1035 TALK_ID(45, UNIT_SEC
),TALK_ID(60, UNIT_SEC
), TALK_ID(90, UNIT_SEC
)),
1037 #endif /* HAVE_BACKLIGHT */
1040 OFFON_SETTING(0,eq_hw_enabled
,LANG_EQUALIZER_HARDWARE_ENABLED
,false,
1041 "eq hardware enabled",NULL
),
1043 STRINGCHOICE_SETTING(0, eq_hw_band0_cutoff
, LANG_EQUALIZER_BAND_CUTOFF
, 1,
1044 "eq hardware band 0 cutoff", "80Hz,105Hz,135Hz,175Hz", NULL
, 4,
1045 TALK_ID(80, UNIT_HERTZ
), TALK_ID(105, UNIT_HERTZ
),
1046 TALK_ID(135, UNIT_HERTZ
), TALK_ID(175, UNIT_HERTZ
)),
1047 INT_SETTING(0, eq_hw_band0_gain
, LANG_EQUALIZER_BAND_GAIN
, 0,
1048 "eq hardware band 0 gain", UNIT_DB
, EQ_HW_GAIN_MIN
,
1049 EQ_HW_GAIN_MAX
, EQ_HW_GAIN_STEP
, eq_hw_gain_format
, NULL
, NULL
),
1051 STRINGCHOICE_SETTING(0, eq_hw_band1_center
, LANG_EQUALIZER_BAND_CENTER
, 1,
1052 "eq hardware band 1 center", "230Hz,300Hz,385Hz,500Hz", NULL
, 4,
1053 TALK_ID(230, UNIT_HERTZ
), TALK_ID(300, UNIT_HERTZ
),
1054 TALK_ID(385, UNIT_HERTZ
), TALK_ID(500, UNIT_HERTZ
)),
1055 CHOICE_SETTING(0, eq_hw_band1_bandwidth
, LANG_EQUALIZER_BANDWIDTH
, 0,
1056 "eq hardware band 1 bandwidth", "narrow,wide", NULL
, 2,
1057 ID2P(LANG_EQUALIZER_HARDWARE_BANDWIDTH_NARROW
),
1058 ID2P(LANG_EQUALIZER_HARDWARE_BANDWIDTH_WIDE
)),
1059 INT_SETTING(0, eq_hw_band1_gain
, LANG_EQUALIZER_BAND_GAIN
, 0,
1060 "eq hardware band 1 gain", UNIT_DB
, EQ_HW_GAIN_MIN
,
1061 EQ_HW_GAIN_MAX
, EQ_HW_GAIN_STEP
, eq_hw_gain_format
, NULL
, NULL
),
1063 STRINGCHOICE_SETTING(0, eq_hw_band2_center
, LANG_EQUALIZER_BAND_CENTER
, 1,
1064 "eq hardware band 2 center", "650Hz,850Hz,1.1kHz,1.4kHz", NULL
, 4,
1065 TALK_ID(650, UNIT_HERTZ
), TALK_ID(850, UNIT_HERTZ
),
1066 TALK_ID(1100, UNIT_HERTZ
), TALK_ID(1400, UNIT_HERTZ
)),
1067 CHOICE_SETTING(0, eq_hw_band2_bandwidth
, LANG_EQUALIZER_BANDWIDTH
, 0,
1068 "eq hardware band 2 bandwidth", "narrow,wide", NULL
, 2,
1069 ID2P(LANG_EQUALIZER_HARDWARE_BANDWIDTH_NARROW
),
1070 ID2P(LANG_EQUALIZER_HARDWARE_BANDWIDTH_WIDE
)),
1071 INT_SETTING(0, eq_hw_band2_gain
, LANG_EQUALIZER_BAND_GAIN
, 0,
1072 "eq hardware band 2 gain", UNIT_DB
, EQ_HW_GAIN_MIN
,
1073 EQ_HW_GAIN_MAX
, EQ_HW_GAIN_STEP
, eq_hw_gain_format
, NULL
, NULL
),
1075 STRINGCHOICE_SETTING(0, eq_hw_band3_center
, LANG_EQUALIZER_BAND_CENTER
, 1,
1076 "eq hardware band 3 center", "1.8kHz,2.4kHz,3.2kHz,4.1kHz", NULL
, 4,
1077 TALK_ID(1800, UNIT_HERTZ
), TALK_ID(2400, UNIT_HERTZ
),
1078 TALK_ID(3200, UNIT_HERTZ
), TALK_ID(4100, UNIT_HERTZ
)),
1079 CHOICE_SETTING(0, eq_hw_band3_bandwidth
, LANG_EQUALIZER_BANDWIDTH
, 0,
1080 "eq hardware band 3 bandwidth", "narrow,wide", NULL
, 2,
1081 ID2P(LANG_EQUALIZER_HARDWARE_BANDWIDTH_NARROW
),
1082 ID2P(LANG_EQUALIZER_HARDWARE_BANDWIDTH_WIDE
)),
1083 INT_SETTING(0, eq_hw_band3_gain
, LANG_EQUALIZER_BAND_GAIN
, 0,
1084 "eq hardware band 3 gain", UNIT_DB
, EQ_HW_GAIN_MIN
,
1085 EQ_HW_GAIN_MAX
, EQ_HW_GAIN_STEP
, eq_hw_gain_format
, NULL
, NULL
),
1087 STRINGCHOICE_SETTING(0, eq_hw_band4_cutoff
, LANG_EQUALIZER_BAND_CUTOFF
, 1,
1088 "eq hardware band 4 cutoff", "5.3kHz,6.9kHz,9kHz,11.7kHz", NULL
, 4,
1089 TALK_ID(5300, UNIT_HERTZ
), TALK_ID(6900, UNIT_HERTZ
),
1090 TALK_ID(9000, UNIT_HERTZ
), TALK_ID(11700, UNIT_HERTZ
)),
1091 INT_SETTING(0, eq_hw_band4_gain
, LANG_EQUALIZER_BAND_GAIN
, 0,
1092 "eq hardware band 4 gain", UNIT_DB
, EQ_HW_GAIN_MIN
,
1093 EQ_HW_GAIN_MAX
, EQ_HW_GAIN_STEP
, eq_hw_gain_format
, NULL
, NULL
),
1096 OFFON_SETTING(0,hold_lr_for_scroll_in_list
,-1,true,
1097 "hold_lr_for_scroll_in_list",NULL
),
1098 CHOICE_SETTING(0, show_path_in_browser
, LANG_SHOW_PATH
, SHOW_PATH_OFF
,
1099 "show path in browser", "off,current directory,full path", NULL
, 3,
1100 ID2P(LANG_OFF
), ID2P(LANG_SHOW_PATH_CURRENT
), ID2P(LANG_SHOW_PATH_FULL
)),
1103 {F_T_INT
,&global_settings
.rec_agc_preset_mic
,LANG_RECORD_AGC_PRESET
,INT(1),
1104 "agc mic preset",NULL
,UNUSED
},
1105 {F_T_INT
,&global_settings
.rec_agc_preset_line
,LANG_RECORD_AGC_PRESET
,INT(1),
1106 "agc line preset",NULL
,UNUSED
},
1107 {F_T_INT
,&global_settings
.rec_agc_maxgain_mic
,-1,INT(104),
1108 "agc maximum mic gain",NULL
,UNUSED
},
1109 {F_T_INT
,&global_settings
.rec_agc_maxgain_line
,-1,INT(96),
1110 "agc maximum line gain",NULL
,UNUSED
},
1111 {F_T_INT
,&global_settings
.rec_agc_cliptime
,LANG_RECORD_AGC_CLIPTIME
,INT(1),
1112 "agc cliptime","0.2s,0.4s,0.6s,0.8,1s",UNUSED
},
1115 #ifdef HAVE_REMOTE_LCD
1116 #ifdef HAS_REMOTE_BUTTON_HOLD
1117 CHOICE_SETTING(0, remote_backlight_on_button_hold
,
1118 LANG_BACKLIGHT_ON_BUTTON_HOLD
, 0, "remote backlight on button hold",
1119 "normal,off,on", remote_backlight_set_on_button_hold
, 3,
1120 ID2P(LANG_BACKLIGHT_ON_BUTTON_HOLD_NORMAL
), ID2P(LANG_OFF
), ID2P(LANG_ON
)),
1123 #ifdef HAVE_HEADPHONE_DETECTION
1124 CHOICE_SETTING(0, unplug_mode
, LANG_UNPLUG
, 0,
1125 "pause on headphone unplug", "off,pause,pause and resume", NULL
, 3,
1126 ID2P(LANG_OFF
), ID2P(LANG_PAUSE
), ID2P(LANG_UNPLUG_RESUME
)),
1127 INT_SETTING(0, unplug_rw
, LANG_UNPLUG_RW
, 0, "rewind duration on pause",
1128 UNIT_SEC
, 0, 15, 1, NULL
, NULL
,NULL
) ,
1129 OFFON_SETTING(0,unplug_autoresume
,LANG_UNPLUG_DISABLE_AUTORESUME
,false,
1130 "disable autoresume if phones not present",NULL
),
1133 CHOICE_SETTING(0, fm_region
, LANG_FM_REGION
, 0,
1134 "fm_region", "eu,us,jp,kr", set_radio_region
, 4, ID2P(LANG_FM_EUROPE
),
1135 ID2P(LANG_FM_US
), ID2P(LANG_FM_JAPAN
), ID2P(LANG_FM_KOREA
)),
1138 OFFON_SETTING(0,audioscrobbler
,LANG_AUDIOSCROBBLER
,
1139 false,"Last.fm Logging",NULL
),
1141 #ifdef HAVE_RECORDING
1142 {F_T_INT
|F_RECSETTING
,&global_settings
.rec_trigger_type
,
1143 LANG_RECORD_TRIGGER_TYPE
,
1144 INT(0),"trigger type","stop,pause,nf stp",UNUSED
},
1147 /** settings not in the old config blocks **/
1149 FILENAME_SETTING(0, fmr_file
, "fmr",
1150 "", FMPRESET_PATH
"/", ".fmr", MAX_FILENAME
+1),
1152 FILENAME_SETTING(F_THEMESETTING
, font_file
, "font",
1153 "", FONT_DIR
"/", ".fnt", MAX_FILENAME
+1),
1154 FILENAME_SETTING(F_THEMESETTING
,wps_file
, "wps",
1155 "", WPS_DIR
"/", ".wps", MAX_FILENAME
+1),
1156 FILENAME_SETTING(0,lang_file
,"lang","",LANG_DIR
"/",".lng",MAX_FILENAME
+1),
1157 #ifdef HAVE_REMOTE_LCD
1158 FILENAME_SETTING(F_THEMESETTING
,rwps_file
,"rwps",
1159 "", WPS_DIR
"/", ".rwps", MAX_FILENAME
+1),
1162 FILENAME_SETTING(F_THEMESETTING
,backdrop_file
,"backdrop",
1163 "", BACKDROP_DIR
"/", ".bmp", MAX_FILENAME
+1),
1165 #ifdef HAVE_LCD_BITMAP
1166 FILENAME_SETTING(0,kbd_file
,"kbd","",ROCKBOX_DIR
"/",".kbd",MAX_FILENAME
+1),
1168 #ifdef HAVE_USB_POWER
1170 OFFON_SETTING(0,usb_charging
,LANG_USB_CHARGING
,false,"usb charging",NULL
),
1173 OFFON_SETTING(0,cuesheet
,LANG_CUESHEET_ENABLE
,false,"cuesheet support", NULL
),
1174 CHOICE_SETTING(0, start_in_screen
, LANG_START_SCREEN
, 1,
1175 "start in screen", "previous,root,files,db,wps,menu,"
1176 #ifdef HAVE_RECORDING
1183 #if defined(HAVE_RECORDING) && CONFIG_TUNER
1185 #elif defined(HAVE_RECORDING) || CONFIG_TUNER /* only one of them */
1190 ID2P(LANG_PREVIOUS_SCREEN
), ID2P(LANG_MAIN_MENU
),
1191 ID2P(LANG_DIR_BROWSER
), ID2P(LANG_TAGCACHE
),
1192 ID2P(LANG_RESUME_PLAYBACK
), ID2P(LANG_SETTINGS_MENU
),
1193 #ifdef HAVE_RECORDING
1194 ID2P(LANG_RECORDING
),
1197 ID2P(LANG_FM_RADIO
),
1199 ID2P(LANG_BOOKMARK_MENU_RECENT_BOOKMARKS
)
1201 SYSTEM_SETTING(NVRAM(1),last_screen
,-1),
1202 #if defined(HAVE_RTC_ALARM) && \
1203 (defined(HAVE_RECORDING) || CONFIG_TUNER)
1204 {F_T_INT
, &global_settings
.alarm_wake_up_screen
, LANG_ALARM_WAKEUP_SCREEN
,
1205 INT(ALARM_START_WPS
), "alarm wakeup screen", ALARM_SETTING_TEXT
, UNUSED
},
1206 #endif /* HAVE_RTC_ALARM */
1208 /* Customizable icons */
1209 #ifdef HAVE_LCD_BITMAP
1210 FILENAME_SETTING(F_THEMESETTING
, icon_file
, "iconset", "",
1211 ICON_DIR
"/", ".bmp", MAX_FILENAME
+1),
1212 FILENAME_SETTING(F_THEMESETTING
, viewers_icon_file
, "viewers iconset", "",
1213 ICON_DIR
"/", ".bmp", MAX_FILENAME
+1),
1215 #ifdef HAVE_REMOTE_LCD
1216 FILENAME_SETTING(F_THEMESETTING
, remote_icon_file
, "remote iconset", "",
1217 ICON_DIR
"/", ".bmp", MAX_FILENAME
+1),
1218 FILENAME_SETTING(F_THEMESETTING
, remote_viewers_icon_file
,
1219 "remote viewers iconset", "",
1220 ICON_DIR
"/", ".bmp", MAX_FILENAME
+1),
1221 #endif /* HAVE_REMOTE_LCD */
1222 #ifdef HAVE_LCD_COLOR
1223 FILENAME_SETTING(F_THEMESETTING
, colors_file
, "filetype colours", "",
1224 THEME_DIR
"/", ".colours", MAX_FILENAME
+1),
1226 #ifdef HAVE_BUTTON_LIGHT
1227 INT_SETTING_W_CFGVALS(F_FLIPLIST
, button_light_timeout
,
1228 LANG_BUTTONLIGHT_TIMEOUT
, 6,
1229 "button light timeout", backlight_times_conf
, UNIT_SEC
,
1230 0, 18, 1, backlight_formatter
, backlight_getlang
,
1231 button_backlight_set_timeout
),
1233 #ifdef HAVE_BUTTONLIGHT_BRIGHTNESS
1234 INT_SETTING(0, buttonlight_brightness
, LANG_BUTTONLIGHT_BRIGHTNESS
, DEFAULT_BRIGHTNESS_SETTING
,
1235 "button light brightness",UNIT_INT
, MIN_BRIGHTNESS_SETTING
, MAX_BRIGHTNESS_SETTING
, 1,
1236 NULL
, NULL
, buttonlight_set_brightness
),
1238 INT_SETTING(0, list_accel_start_delay
, LANG_LISTACCEL_START_DELAY
,
1239 2, "list_accel_start_delay", UNIT_MS
, 0, 10, 1,
1240 listaccel_formatter
, listaccel_getlang
, NULL
),
1241 INT_SETTING(0, list_accel_wait
, LANG_LISTACCEL_ACCEL_SPEED
,
1242 3, "list_accel_wait", UNIT_SEC
, 1, 10, 1,
1243 scanaccel_formatter
, scanaccel_getlang
, NULL
),
1246 const int nb_settings
= sizeof(settings
)/sizeof(*settings
);