2007-01-23 13:40:44 +00:00
|
|
|
/***************************************************************************
|
|
|
|
* __________ __ ___.
|
|
|
|
* Open \______ \ ____ ____ | | _\_ |__ _______ ___
|
|
|
|
* Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
|
|
|
|
* Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
|
|
|
|
* Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
|
|
|
|
* \/ \/ \/ \/ \/
|
2007-02-13 00:32:17 +00:00
|
|
|
* $Id$
|
2007-01-23 13:40:44 +00:00
|
|
|
*
|
|
|
|
* Copyright (C) 2007 Jonathan Gordon
|
|
|
|
*
|
2008-06-28 18:10:04 +00:00
|
|
|
* This program is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU General Public License
|
|
|
|
* as published by the Free Software Foundation; either version 2
|
|
|
|
* of the License, or (at your option) any later version.
|
2007-01-23 13:40:44 +00:00
|
|
|
*
|
|
|
|
* This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
|
|
|
|
* KIND, either express or implied.
|
|
|
|
*
|
|
|
|
****************************************************************************/
|
|
|
|
|
|
|
|
#include "config.h"
|
|
|
|
#include <stdbool.h>
|
2010-05-06 21:04:40 +00:00
|
|
|
#include "string-extra.h"
|
2007-11-25 17:36:21 +00:00
|
|
|
#include "system.h"
|
2008-11-01 16:14:28 +00:00
|
|
|
#include "storage.h"
|
2007-01-23 13:40:44 +00:00
|
|
|
#include "lang.h"
|
2007-02-08 04:33:41 +00:00
|
|
|
#include "talk.h"
|
2007-01-23 13:40:44 +00:00
|
|
|
#include "lcd.h"
|
2013-04-03 14:33:23 +00:00
|
|
|
#include "scroll_engine.h"
|
2007-02-17 14:02:48 +00:00
|
|
|
#include "button.h"
|
|
|
|
#include "backlight.h"
|
2010-05-15 13:09:45 +00:00
|
|
|
#include "sound.h"
|
2007-01-23 13:40:44 +00:00
|
|
|
#include "settings.h"
|
|
|
|
#include "settings_list.h"
|
2009-10-23 13:29:19 +00:00
|
|
|
#include "usb.h"
|
2007-02-12 14:22:35 +00:00
|
|
|
#include "audio.h"
|
2007-02-12 14:34:09 +00:00
|
|
|
#include "power.h"
|
2007-02-13 07:50:47 +00:00
|
|
|
#include "powermgmt.h"
|
2007-02-17 14:02:48 +00:00
|
|
|
#include "kernel.h"
|
2012-01-07 19:18:25 +00:00
|
|
|
#ifdef HAVE_REMOTE_LCD
|
2007-02-17 14:02:48 +00:00
|
|
|
#include "lcd-remote.h"
|
2012-01-07 19:18:25 +00:00
|
|
|
#endif
|
2007-02-17 14:02:48 +00:00
|
|
|
#include "list.h"
|
|
|
|
#include "rbunicode.h"
|
|
|
|
#ifdef HAVE_LCD_BITMAP
|
|
|
|
#include "peakmeter.h"
|
|
|
|
#endif
|
2007-02-19 02:14:51 +00:00
|
|
|
#include "menus/eq_menu.h"
|
2007-02-27 09:06:30 +00:00
|
|
|
#if CONFIG_TUNER
|
|
|
|
#include "radio.h"
|
|
|
|
#endif
|
2008-12-25 01:46:16 +00:00
|
|
|
#ifdef IPOD_ACCESSORY_PROTOCOL
|
|
|
|
#include "iap.h"
|
|
|
|
#endif
|
2008-12-31 05:59:26 +00:00
|
|
|
#include "statusbar.h"
|
2009-06-16 17:04:47 +00:00
|
|
|
#ifdef HAVE_TOUCHSCREEN
|
|
|
|
#include "touchscreen.h"
|
|
|
|
#include "ctype.h" /* For isspace() */
|
|
|
|
#endif
|
2010-05-09 02:02:51 +00:00
|
|
|
#ifdef HAVE_HOTKEY
|
|
|
|
#include "onplay.h"
|
|
|
|
#endif
|
2007-01-23 13:40:44 +00:00
|
|
|
|
2015-01-30 21:47:30 +00:00
|
|
|
#if defined(DX50) || defined(DX90)
|
|
|
|
#include "governor-ibasso.h"
|
2015-01-21 19:51:36 +00:00
|
|
|
#include "usb-ibasso.h"
|
2015-01-30 21:47:30 +00:00
|
|
|
#endif
|
|
|
|
|
2007-07-11 05:41:23 +00:00
|
|
|
#define NVRAM(bytes) (bytes<<F_NVRAM_MASK_SHIFT)
|
|
|
|
/** NOTE: NVRAM_CONFIG_VERSION is in settings_list.h
|
|
|
|
and you may need to update it if you edit this file */
|
|
|
|
|
|
|
|
#define UNUSED {.RESERVED=NULL}
|
|
|
|
#define INT(a) {.int_ = a}
|
|
|
|
#define UINT(a) {.uint_ = a}
|
|
|
|
#define BOOL(a) {.bool_ = a}
|
|
|
|
#define CHARPTR(a) {.charptr = a}
|
|
|
|
#define UCHARPTR(a) {.ucharptr = a}
|
|
|
|
#define FUNCTYPE(a) {.func = a}
|
|
|
|
#define NODEFAULT INT(0)
|
|
|
|
|
|
|
|
/* in all the following macros the args are:
|
|
|
|
- flags: bitwise | or the F_ bits in settings_list.h
|
|
|
|
- var: pointer to the variable being changed (usually in global_settings)
|
2008-05-11 23:13:59 +00:00
|
|
|
- lang_id: LANG_* id to display in menus and setting screens for the setting
|
2007-07-11 05:41:23 +00:00
|
|
|
- default: the default value for the variable, set if settings are reset
|
|
|
|
- name: the name of the setting in config files
|
2009-08-19 09:53:57 +00:00
|
|
|
- cfg_vals: comma separated list of legal values to write to cfg files.
|
|
|
|
The values correspond to the values 0,1,2,etc. of the setting.
|
|
|
|
NULL if just the number itself should be written to the file.
|
|
|
|
No spaces between the values and the commas!
|
2007-07-11 05:41:23 +00:00
|
|
|
- cb: the callback used by the setting screen.
|
|
|
|
*/
|
|
|
|
|
|
|
|
/* Use for int settings which use the set_sound() function to set them */
|
2008-05-11 23:13:59 +00:00
|
|
|
#define SOUND_SETTING(flags,var,lang_id,name,setting) \
|
2007-12-24 22:35:31 +00:00
|
|
|
{flags|F_T_INT|F_T_SOUND|F_SOUNDSETTING, &global_settings.var, \
|
2008-05-11 23:13:59 +00:00
|
|
|
lang_id, NODEFAULT,name,NULL, \
|
2007-07-11 05:41:23 +00:00
|
|
|
{.sound_setting=(struct sound_setting[]){{setting}}} }
|
|
|
|
|
2008-05-11 23:13:59 +00:00
|
|
|
/* Use for bool variables which don't use LANG_SET_BOOL_YES and LANG_SET_BOOL_NO
|
2009-08-18 22:39:17 +00:00
|
|
|
or dont save as "off" or "on" in the cfg.
|
|
|
|
cfgvals are comma separated values (without spaces after the comma!) to write
|
|
|
|
for 'false' and 'true' (in this order)
|
2009-08-19 09:53:57 +00:00
|
|
|
yes_id is the lang_id for the 'yes' (or 'on') option in the menu
|
|
|
|
no_id is the lang_id for the 'no' (or 'off') option in the menu
|
2009-08-18 22:39:17 +00:00
|
|
|
*/
|
2009-08-19 09:53:57 +00:00
|
|
|
#define BOOL_SETTING(flags,var,lang_id,default,name,cfgvals,yes_id,no_id,cb)\
|
2007-07-11 05:41:23 +00:00
|
|
|
{flags|F_BOOL_SETTING, &global_settings.var, \
|
|
|
|
lang_id, BOOL(default),name,cfgvals, \
|
2009-08-19 09:53:57 +00:00
|
|
|
{.bool_setting=(struct bool_setting[]){{cb,yes_id,no_id}}} }
|
2008-05-11 23:13:59 +00:00
|
|
|
|
2007-07-11 05:41:23 +00:00
|
|
|
/* bool setting which does use LANG_YES and _NO and save as "off,on" */
|
|
|
|
#define OFFON_SETTING(flags,var,lang_id,default,name,cb) \
|
2009-08-19 09:53:57 +00:00
|
|
|
BOOL_SETTING(flags,var,lang_id,default,name,off_on, \
|
2009-08-18 22:39:17 +00:00
|
|
|
LANG_SET_BOOL_YES,LANG_SET_BOOL_NO,cb)
|
2007-07-11 05:41:23 +00:00
|
|
|
|
|
|
|
/* int variable which is NOT saved to .cfg files,
|
|
|
|
(Use NVRAM() in the flags to save to the nvram (or nvram.bin file) */
|
2008-05-11 23:13:59 +00:00
|
|
|
#define SYSTEM_SETTING(flags,var,default) \
|
2007-07-11 05:41:23 +00:00
|
|
|
{flags|F_T_INT, &global_status.var,-1, INT(default), \
|
|
|
|
NULL, NULL, UNUSED}
|
|
|
|
|
2008-10-23 00:29:17 +00:00
|
|
|
/* setting which stores as a filename (or another string) in the .cfgvals
|
|
|
|
The string must be a char array (which all of our string settings are),
|
|
|
|
not just a char pointer.
|
2008-05-11 23:13:59 +00:00
|
|
|
prefix: The absolute path to not save in the variable, ex /.rockbox/wps_file
|
2008-10-23 00:29:17 +00:00
|
|
|
suffix: The file extention (usually...) e.g .wps_file
|
2008-10-23 16:23:42 +00:00
|
|
|
If the prefix is set (not NULL), then the suffix must be set as well.
|
2008-10-23 00:29:17 +00:00
|
|
|
*/
|
|
|
|
#define TEXT_SETTING(flags,var,name,default,prefix,suffix) \
|
2007-07-11 05:41:23 +00:00
|
|
|
{flags|F_T_UCHARPTR, &global_settings.var,-1, \
|
|
|
|
CHARPTR(default),name,NULL, \
|
2007-11-25 17:36:21 +00:00
|
|
|
{.filename_setting= \
|
2008-10-23 00:29:17 +00:00
|
|
|
(struct filename_setting[]){ \
|
|
|
|
{prefix,suffix,sizeof(global_settings.var)}}} }
|
2007-07-11 05:41:23 +00:00
|
|
|
|
|
|
|
/* Used for settings which use the set_option() setting screen.
|
2008-05-11 23:13:59 +00:00
|
|
|
The ... arg is a list of pointers to strings to display in the setting
|
|
|
|
screen. These can either be literal strings, or ID2P(LANG_*) */
|
|
|
|
#define CHOICE_SETTING(flags,var,lang_id,default,name,cfg_vals,cb,count,...) \
|
2007-07-11 05:41:23 +00:00
|
|
|
{flags|F_CHOICE_SETTING|F_T_INT, &global_settings.var, lang_id, \
|
2008-05-11 23:13:59 +00:00
|
|
|
INT(default), name, cfg_vals, \
|
|
|
|
{.choice_setting = (struct choice_setting[]){ \
|
|
|
|
{cb, count, {.desc = (const unsigned char*[]) \
|
|
|
|
{__VA_ARGS__}}}}}}
|
|
|
|
|
2007-07-11 05:41:23 +00:00
|
|
|
/* Similar to above, except the strings to display are taken from cfg_vals,
|
2008-05-11 23:13:59 +00:00
|
|
|
the ... arg is a list of ID's to talk for the strings, can use TALK_ID()'s */
|
|
|
|
#define STRINGCHOICE_SETTING(flags,var,lang_id,default,name,cfg_vals, \
|
|
|
|
cb,count,...) \
|
|
|
|
{flags|F_CHOICE_SETTING|F_T_INT|F_CHOICETALKS, \
|
|
|
|
&global_settings.var, lang_id, \
|
|
|
|
INT(default), name, cfg_vals, \
|
|
|
|
{.choice_setting = (struct choice_setting[]){ \
|
2007-11-25 17:36:21 +00:00
|
|
|
{cb, count, {.talks = (const int[]){__VA_ARGS__}}}}}}
|
2008-05-11 23:13:59 +00:00
|
|
|
|
2007-07-11 05:41:23 +00:00
|
|
|
/* for settings which use the set_int() setting screen.
|
|
|
|
unit is the UNIT_ define to display/talk.
|
|
|
|
the first one saves a string to the config file,
|
Selective Backlight/Advanced Softlock - Selective actions based on context
Selective backlight allows the user to choose actions that will not
enable the backlight when pressed.
Advanced softlock allows user to choose actions that will not be
blocked by screenlock on devices without a hold button.
Both only occur in FM and WPS Contexts.
Update:
Back from the dead
-Cleaned up code, removed unnecessary calls, re-arranged last filter action
timeout conditional to work in case last_filtered_action_tick was never set
-Added entries to the manual
-Fixed back button on some menus not activating backlight
-Made menus more intuitive, no actions selected now changes menu item to off.
-Added talk fuctionality.
-Added option to disable selective backlight while on external power.
-Rewrote backlight and softlock handling code to fix issue with scrollwheels
-Menu changed to have toggle(yes/no) and settings
-Optimized selective actions lookup
-Added option to disable notification of 'buttons locked' while softlocked
-Removed uneeded code, consolidated action lookup to single function
-Fixed incorrect name on selective softlock menu
-Added option to disable touch on touchscreen devices
-Fixed backlight on original screenlock without selective screenlock active
-Added text selection in mask_select for when show_icons is off
-Fixed voice in mask_select to speak if voice is defined instead of spelling
-Added more lang defines (play skip seek)
-Added option to disable unknown keys turning on backlight
-Fixed Conditional argument In wrong place causing players without
backlight to fail to build
-Fixed Disable Unknown blocking detection of context change
-Fixed canceling menu didn't update new settings
-Added Autolock on backlight off
-Removed backlight_on_force from backlight.c, Now sets ignore next to false
and uses backlight_on
-Cleaned up autolock code added strings to lang file
-Fixed issue where rapid presses would bypass softlock
-Removed old softlock code, Cleaned selective actions code
-Changed menu to match existing RB menus
-Fixed Backlight_on_Hold blocked by backlight_ignore_next
-Fixed ignore_next for ipod
-Fixed bug allowing context with softlock to bypass selective backlight
-Changed mask_select to no longer prompt for changes to be saved
-Changed menu names
-Added ignore timeout to allow ipod scroll wheel to work properly and other
players to still work properly, removed some previous code including
ignore_event
-Increased ignore timeout to prevent sd card accesses from interrupting action
code and turning on backlight
-Changed Unknown action to unmapped action in menu, changed handling code
-Removed unneeded logic and variables for handling unfiltered actions
-Reverted unmapped action code to previous functionality
-Added manual entries (thanks JohnB)
-Removed elusive unhandled unicode character from manual, changed formatting slightly
Actions:
Volume,Play,Seek,Skip
Extras:
Disable unmapped actions
Disable selective backlight on external power
Disable touch during softlock on touchscreen devices
Disable softlock notifications (power button still notifies)
Autolock on backlight off
Method:
Adds a function to ignore backlight on next call
If selected action occurs backlight is forced on,
Filter_first_keypress stays intact.
Selective softlock allows selected actions through, bypasses the normal
softlock routine.
ToDo:
DONE
previous commit (#1) has attribution for folder_select.c which mask_select
is based from.
Change-Id: I08132ddcfd64c81751ef23b720f3ec6d68695fe4
2016-11-22 05:21:31 +00:00
|
|
|
the second one saves the variable value to the config file */
|
2007-07-11 05:41:23 +00:00
|
|
|
#define INT_SETTING_W_CFGVALS(flags, var, lang_id, default, name, cfg_vals, \
|
2008-05-11 23:13:59 +00:00
|
|
|
unit, min, max, step, formatter, get_talk_id, cb) \
|
|
|
|
{flags|F_INT_SETTING|F_T_INT, &global_settings.var, \
|
|
|
|
lang_id, INT(default), name, cfg_vals, \
|
|
|
|
{.int_setting = (struct int_setting[]){ \
|
2007-07-11 05:41:23 +00:00
|
|
|
{cb, unit, min, max, step, formatter, get_talk_id}}}}
|
2007-11-25 17:36:21 +00:00
|
|
|
#define INT_SETTING(flags, var, lang_id, default, name, \
|
|
|
|
unit, min, max, step, formatter, get_talk_id, cb) \
|
2007-07-11 05:41:23 +00:00
|
|
|
{flags|F_INT_SETTING|F_T_INT, &global_settings.var, \
|
2007-11-25 17:36:21 +00:00
|
|
|
lang_id, INT(default), name, NULL, \
|
2007-07-11 05:41:23 +00:00
|
|
|
{.int_setting = (struct int_setting[]){ \
|
|
|
|
{cb, unit, min, max, step, formatter, get_talk_id}}}}
|
2008-05-11 23:13:59 +00:00
|
|
|
#define INT_SETTING_NOWRAP(flags, var, lang_id, default, name, \
|
|
|
|
unit, min, max, step, formatter, get_talk_id, cb) \
|
2007-11-29 09:19:08 +00:00
|
|
|
{flags|F_INT_SETTING|F_T_INT|F_NO_WRAP, &global_settings.var, \
|
|
|
|
lang_id, INT(default), name, NULL, \
|
|
|
|
{.int_setting = (struct int_setting[]){ \
|
|
|
|
{cb, unit, min, max, step, formatter, get_talk_id}}}}
|
2007-07-11 05:41:23 +00:00
|
|
|
|
2007-11-25 17:36:21 +00:00
|
|
|
#define TABLE_SETTING(flags, var, lang_id, default, name, cfg_vals, \
|
|
|
|
unit, formatter, get_talk_id, cb, count, ...) \
|
|
|
|
{flags|F_TABLE_SETTING|F_T_INT, &global_settings.var, \
|
|
|
|
lang_id, INT(default), name, cfg_vals, \
|
|
|
|
{.table_setting = (struct table_setting[]) { \
|
|
|
|
{cb, formatter, get_talk_id, unit, count, \
|
|
|
|
(const int[]){__VA_ARGS__}}}}}
|
2007-07-11 05:41:23 +00:00
|
|
|
|
Auto-Ranging Time Formatting For Menus (hh:mm:ss:mss)
Unifies time formatting in settings_list.c allows time format to
display as HH:MM:SS.MSS or any consecutive combination thereof
(hh:mm:ss, mm:ss, mm:ss.mss, ss.mss, hh, mm, ss ,mss)
works in INT and TABLE settings with the addition of flag 'F_TIME_SETTING'
Time is auto-ranged dependent on value
Adds talk_time_intervals to allow time values to be spoken similar to
display format: x Hours, x Minutes, x Seconds, x Milliseconds
Table lookups merged or removed from recording, clip meter and lcd timeout
-String_Choice replaced with TABLE_SETTING or INT_SETTING for these
functions as well, cleaned-up cfg_vals that get saved to cfgfile
RTL Languages ARE supported
Negative values ARE supported
Backlight on/off are now Always and Never to share formatter with LCD
Timeout
Added flag to allow ranged units to be locked to a minimum index
Added flag to allow leading zero to be supressed from the largest unit
merged talk_time_unit() and talk_time_intervals()
optimized time_split()
optimized format_time_auto()
Backlight time-out list same as original
Change-Id: I59027c62d3f2956bd16fdcc1a48b2ac32c084abd
2018-12-18 04:27:55 +00:00
|
|
|
#define TABLE_SETTING_LIST(flags, var, lang_id, default, name, cfg_vals, \
|
|
|
|
unit, formatter, get_talk_id, cb, count, list) \
|
|
|
|
{flags|F_TABLE_SETTING|F_T_INT, &global_settings.var, \
|
|
|
|
lang_id, INT(default), name, cfg_vals, \
|
|
|
|
{.table_setting = (struct table_setting[]) { \
|
|
|
|
{cb, formatter, get_talk_id, unit, count, list}}}}
|
|
|
|
|
2008-11-03 10:43:37 +00:00
|
|
|
#define CUSTOM_SETTING(flags, var, lang_id, default, name, \
|
|
|
|
load_from_cfg, write_to_cfg, \
|
|
|
|
is_change, set_default) \
|
|
|
|
{flags|F_CUSTOM_SETTING|F_T_CUSTOM|F_BANFROMQS, \
|
|
|
|
&global_settings.var, lang_id, \
|
|
|
|
{.custom = (void*)default}, name, NULL, \
|
|
|
|
{.custom_setting = (struct custom_setting[]){ \
|
|
|
|
{load_from_cfg, write_to_cfg, is_change, set_default}}}}
|
2009-08-16 22:20:11 +00:00
|
|
|
|
2009-08-17 00:28:47 +00:00
|
|
|
#define VIEWPORT_SETTING(var,name) \
|
|
|
|
TEXT_SETTING(F_THEMESETTING,var,name,"-", NULL, NULL)
|
2009-08-16 22:20:11 +00:00
|
|
|
|
2007-01-23 13:40:44 +00:00
|
|
|
/* some sets of values which are used more than once, to save memory */
|
Auto-Ranging Time Formatting For Menus (hh:mm:ss:mss)
Unifies time formatting in settings_list.c allows time format to
display as HH:MM:SS.MSS or any consecutive combination thereof
(hh:mm:ss, mm:ss, mm:ss.mss, ss.mss, hh, mm, ss ,mss)
works in INT and TABLE settings with the addition of flag 'F_TIME_SETTING'
Time is auto-ranged dependent on value
Adds talk_time_intervals to allow time values to be spoken similar to
display format: x Hours, x Minutes, x Seconds, x Milliseconds
Table lookups merged or removed from recording, clip meter and lcd timeout
-String_Choice replaced with TABLE_SETTING or INT_SETTING for these
functions as well, cleaned-up cfg_vals that get saved to cfgfile
RTL Languages ARE supported
Negative values ARE supported
Backlight on/off are now Always and Never to share formatter with LCD
Timeout
Added flag to allow ranged units to be locked to a minimum index
Added flag to allow leading zero to be supressed from the largest unit
merged talk_time_unit() and talk_time_intervals()
optimized time_split()
optimized format_time_auto()
Backlight time-out list same as original
Change-Id: I59027c62d3f2956bd16fdcc1a48b2ac32c084abd
2018-12-18 04:27:55 +00:00
|
|
|
static const char off[] = "off";
|
2007-01-23 13:40:44 +00:00
|
|
|
static const char off_on[] = "off,on";
|
|
|
|
static const char off_on_ask[] = "off,on,ask";
|
2007-06-07 09:24:53 +00:00
|
|
|
static const char off_number_spell[] = "off,number,spell";
|
Auto-Ranging Time Formatting For Menus (hh:mm:ss:mss)
Unifies time formatting in settings_list.c allows time format to
display as HH:MM:SS.MSS or any consecutive combination thereof
(hh:mm:ss, mm:ss, mm:ss.mss, ss.mss, hh, mm, ss ,mss)
works in INT and TABLE settings with the addition of flag 'F_TIME_SETTING'
Time is auto-ranged dependent on value
Adds talk_time_intervals to allow time values to be spoken similar to
display format: x Hours, x Minutes, x Seconds, x Milliseconds
Table lookups merged or removed from recording, clip meter and lcd timeout
-String_Choice replaced with TABLE_SETTING or INT_SETTING for these
functions as well, cleaned-up cfg_vals that get saved to cfgfile
RTL Languages ARE supported
Negative values ARE supported
Backlight on/off are now Always and Never to share formatter with LCD
Timeout
Added flag to allow ranged units to be locked to a minimum index
Added flag to allow leading zero to be supressed from the largest unit
merged talk_time_unit() and talk_time_intervals()
optimized time_split()
optimized format_time_auto()
Backlight time-out list same as original
Change-Id: I59027c62d3f2956bd16fdcc1a48b2ac32c084abd
2018-12-18 04:27:55 +00:00
|
|
|
static const int timeout_sec_common[] = {-1,0,1,2,3,4,5,6,7,8,9,10,15,20,25,30,
|
|
|
|
45,60,90,120,180,240,300,600,900,1200,
|
|
|
|
1500,1800,2700,3600,4500,5400,6300,7200};
|
|
|
|
static const int time_recording_trigger[] = {0,1,2,5,10,15,20,25,30,60,120,300,600};
|
|
|
|
#if defined(HAVE_BACKLIGHT_FADING_INT_SETTING)
|
|
|
|
static const int backlight_fade[] = {0,100,200,300,500,1000,2000,3000,5000,10000};
|
|
|
|
#endif
|
|
|
|
|
2007-01-23 13:40:44 +00:00
|
|
|
#ifdef HAVE_LCD_BITMAP
|
|
|
|
static const char graphic_numeric[] = "graphic,numeric";
|
|
|
|
#endif
|
|
|
|
|
2008-02-23 03:56:39 +00:00
|
|
|
/* Default theme settings */
|
2008-02-23 04:15:08 +00:00
|
|
|
#define DEFAULT_WPSNAME "cabbiev2"
|
2010-02-22 05:16:11 +00:00
|
|
|
#define DEFAULT_SBSNAME "-"
|
2012-06-25 20:04:36 +00:00
|
|
|
#define DEFAULT_FMS_NAME "cabbiev2"
|
2008-02-23 04:15:08 +00:00
|
|
|
|
2008-02-23 03:56:39 +00:00
|
|
|
#ifdef HAVE_LCD_BITMAP
|
|
|
|
|
|
|
|
#if LCD_HEIGHT <= 64
|
2011-11-26 16:01:11 +00:00
|
|
|
#define DEFAULT_FONT_HEIGHT 8
|
2008-09-03 17:50:21 +00:00
|
|
|
#define DEFAULT_FONTNAME "08-Rockfont"
|
2008-02-23 03:56:39 +00:00
|
|
|
#elif LCD_HEIGHT <= 80
|
2011-11-26 16:01:11 +00:00
|
|
|
#define DEFAULT_FONT_HEIGHT 11
|
2008-09-03 17:50:21 +00:00
|
|
|
#define DEFAULT_FONTNAME "11-Sazanami-Mincho"
|
2014-02-25 20:09:57 +00:00
|
|
|
/* sandisk sansa clip zip and samsung yh-820 */
|
|
|
|
#elif (LCD_HEIGHT == 96) && ((LCD_WIDTH == 96) || (LCD_WIDTH == 128))
|
2012-05-26 23:39:06 +00:00
|
|
|
#define DEFAULT_FONT_HEIGHT 8
|
|
|
|
#define DEFAULT_FONTNAME "08-Rockfont"
|
2008-02-23 03:56:39 +00:00
|
|
|
#elif LCD_HEIGHT <= 220
|
2011-11-26 16:01:11 +00:00
|
|
|
#define DEFAULT_FONT_HEIGHT 12
|
2008-02-23 03:56:39 +00:00
|
|
|
#elif LCD_HEIGHT <= 320
|
2011-11-26 16:01:11 +00:00
|
|
|
#define DEFAULT_FONT_HEIGHT 15
|
2010-07-04 12:43:47 +00:00
|
|
|
#elif LCD_HEIGHT <= 400
|
2011-11-26 16:01:11 +00:00
|
|
|
#define DEFAULT_FONT_HEIGHT 16
|
|
|
|
#elif LCD_HEIGHT <= 480 && LCD_WIDTH < 800
|
|
|
|
#define DEFAULT_FONT_HEIGHT 27
|
2008-02-23 04:15:08 +00:00
|
|
|
#else
|
2011-11-26 16:01:11 +00:00
|
|
|
#define DEFAULT_FONT_HEIGHT 35
|
2008-02-23 03:56:39 +00:00
|
|
|
#endif
|
2011-11-19 23:34:26 +00:00
|
|
|
#define DEFAULT_GLYPHS 250
|
|
|
|
#define MIN_GLYPHS 50
|
|
|
|
#define MAX_GLYPHS 65540
|
2008-02-23 04:15:08 +00:00
|
|
|
|
2008-02-23 03:56:39 +00:00
|
|
|
#else
|
2011-11-26 16:01:11 +00:00
|
|
|
#define DEFAULT_FONT_HEIGHT 12
|
2008-02-23 03:56:39 +00:00
|
|
|
#endif
|
|
|
|
|
2011-11-26 16:01:11 +00:00
|
|
|
#ifndef DEFAULT_FONTNAME
|
|
|
|
/* ugly expansion needed */
|
|
|
|
#define _EXPAND2(x) #x
|
|
|
|
#define _EXPAND(x) _EXPAND2(x)
|
|
|
|
#define DEFAULT_FONTNAME _EXPAND(DEFAULT_FONT_HEIGHT) "-Adobe-Helvetica"
|
2010-06-03 07:30:01 +00:00
|
|
|
#endif
|
|
|
|
|
2008-02-23 03:56:39 +00:00
|
|
|
#ifdef HAVE_LCD_COLOR
|
2011-11-26 16:01:11 +00:00
|
|
|
#if DEFAULT_FONT_HEIGHT >= 31
|
|
|
|
#define DEFAULT_ICONSET "tango_icons.32x32"
|
|
|
|
#define DEFAULT_VIEWERS_ICONSET "tango_icons_viewers.32x32"
|
|
|
|
#elif DEFAULT_FONT_HEIGHT >= 23
|
|
|
|
#define DEFAULT_ICONSET "tango_icons.24x24"
|
|
|
|
#define DEFAULT_VIEWERS_ICONSET "tango_icons_viewers.24x24"
|
|
|
|
#elif DEFAULT_FONT_HEIGHT >= 15
|
|
|
|
#define DEFAULT_ICONSET "tango_icons.16x16"
|
|
|
|
#define DEFAULT_VIEWERS_ICONSET "tango_icons_viewers.16x16"
|
2012-05-26 23:39:06 +00:00
|
|
|
#elif DEFAULT_FONT_HEIGHT >= 11
|
2011-11-26 16:01:11 +00:00
|
|
|
#define DEFAULT_ICONSET "tango_icons.12x12"
|
|
|
|
#define DEFAULT_VIEWERS_ICONSET "tango_icons_viewers.12x12"
|
2012-05-26 23:39:06 +00:00
|
|
|
#elif DEFAULT_FONT_HEIGHT >= 7
|
|
|
|
#define DEFAULT_ICONSET "tango_icons.8x8"
|
|
|
|
#define DEFAULT_VIEWERS_ICONSET "tango_icons_viewers.8x8"
|
2011-11-26 16:01:11 +00:00
|
|
|
#endif
|
2011-11-26 16:03:42 +00:00
|
|
|
#elif LCD_DEPTH > 1 /* greyscale */
|
|
|
|
#define DEFAULT_ICONSET "tango_small_mono"
|
2008-02-23 03:56:39 +00:00
|
|
|
#define DEFAULT_VIEWERS_ICONSET "tango_small_viewers_mono"
|
2008-02-27 08:04:13 +00:00
|
|
|
#else /* monochrome */
|
|
|
|
#define DEFAULT_ICONSET ""
|
|
|
|
#define DEFAULT_VIEWERS_ICONSET ""
|
2008-02-23 03:56:39 +00:00
|
|
|
#endif
|
|
|
|
|
2011-11-26 16:01:11 +00:00
|
|
|
#ifdef HAVE_REMOTE_LCD
|
|
|
|
#if LCD_REMOTE_HEIGHT <= 64
|
|
|
|
#define DEFAULT_REMOTE_FONTNAME "08-Rockfont"
|
|
|
|
#else
|
|
|
|
#define DEFAULT_REMOTE_FONTNAME "-"
|
|
|
|
#endif
|
|
|
|
#endif /* HAVE_REMOTE_LCD */
|
|
|
|
|
2008-02-23 03:56:39 +00:00
|
|
|
#define DEFAULT_THEME_FOREGROUND LCD_RGBPACK(0xce, 0xcf, 0xce)
|
|
|
|
#define DEFAULT_THEME_BACKGROUND LCD_RGBPACK(0x00, 0x00, 0x00)
|
|
|
|
#define DEFAULT_THEME_SELECTOR_START LCD_RGBPACK(0xff, 0xeb, 0x9c)
|
|
|
|
#define DEFAULT_THEME_SELECTOR_END LCD_RGBPACK(0xb5, 0x8e, 0x00)
|
|
|
|
#define DEFAULT_THEME_SELECTOR_TEXT LCD_RGBPACK(0x00, 0x00, 0x00)
|
2013-05-06 05:20:40 +00:00
|
|
|
#define DEFAULT_THEME_SEPARATOR LCD_RGBPACK(0x80, 0x80, 0x80)
|
2008-02-23 03:56:39 +00:00
|
|
|
|
2011-04-16 19:26:21 +00:00
|
|
|
#define DEFAULT_BACKDROP BACKDROP_DIR "/cabbiev2.bmp"
|
2008-02-23 03:56:39 +00:00
|
|
|
|
2007-01-23 13:40:44 +00:00
|
|
|
#ifdef HAVE_RECORDING
|
|
|
|
/* these should be in the config.h files */
|
|
|
|
#if CONFIG_CODEC == MAS3587F
|
|
|
|
# define DEFAULT_REC_MIC_GAIN 8
|
|
|
|
# define DEFAULT_REC_LEFT_GAIN 2
|
|
|
|
# define DEFAULT_REC_RIGHT_GAIN 2
|
|
|
|
#elif CONFIG_CODEC == SWCODEC
|
|
|
|
# ifdef HAVE_UDA1380
|
|
|
|
# define DEFAULT_REC_MIC_GAIN 16
|
|
|
|
# define DEFAULT_REC_LEFT_GAIN 0
|
|
|
|
# define DEFAULT_REC_RIGHT_GAIN 0
|
|
|
|
# elif defined(HAVE_TLV320)
|
|
|
|
# define DEFAULT_REC_MIC_GAIN 0
|
|
|
|
# define DEFAULT_REC_LEFT_GAIN 0
|
|
|
|
# define DEFAULT_REC_RIGHT_GAIN 0
|
|
|
|
# elif defined(HAVE_WM8975)
|
|
|
|
# define DEFAULT_REC_MIC_GAIN 16
|
|
|
|
# define DEFAULT_REC_LEFT_GAIN 0
|
|
|
|
# define DEFAULT_REC_RIGHT_GAIN 0
|
|
|
|
# elif defined(HAVE_WM8758)
|
|
|
|
# define DEFAULT_REC_MIC_GAIN 16
|
|
|
|
# define DEFAULT_REC_LEFT_GAIN 0
|
|
|
|
# define DEFAULT_REC_RIGHT_GAIN 0
|
|
|
|
# elif defined(HAVE_WM8731)
|
|
|
|
# define DEFAULT_REC_MIC_GAIN 16
|
|
|
|
# define DEFAULT_REC_LEFT_GAIN 0
|
|
|
|
# define DEFAULT_REC_RIGHT_GAIN 0
|
|
|
|
# endif
|
|
|
|
#endif
|
|
|
|
|
2007-11-26 23:10:20 +00:00
|
|
|
#endif /* HAVE_RECORDING */
|
|
|
|
|
2012-07-18 21:36:57 +00:00
|
|
|
#if (CONFIG_PLATFORM & PLATFORM_ANDROID)
|
|
|
|
#define DEFAULT_TAGCACHE_SCAN_PATHS "/sdcard"
|
|
|
|
#else
|
|
|
|
#define DEFAULT_TAGCACHE_SCAN_PATHS "/"
|
|
|
|
#endif
|
|
|
|
|
Auto-Ranging Time Formatting For Menus (hh:mm:ss:mss)
Unifies time formatting in settings_list.c allows time format to
display as HH:MM:SS.MSS or any consecutive combination thereof
(hh:mm:ss, mm:ss, mm:ss.mss, ss.mss, hh, mm, ss ,mss)
works in INT and TABLE settings with the addition of flag 'F_TIME_SETTING'
Time is auto-ranged dependent on value
Adds talk_time_intervals to allow time values to be spoken similar to
display format: x Hours, x Minutes, x Seconds, x Milliseconds
Table lookups merged or removed from recording, clip meter and lcd timeout
-String_Choice replaced with TABLE_SETTING or INT_SETTING for these
functions as well, cleaned-up cfg_vals that get saved to cfgfile
RTL Languages ARE supported
Negative values ARE supported
Backlight on/off are now Always and Never to share formatter with LCD
Timeout
Added flag to allow ranged units to be locked to a minimum index
Added flag to allow leading zero to be supressed from the largest unit
merged talk_time_unit() and talk_time_intervals()
optimized time_split()
optimized format_time_auto()
Backlight time-out list same as original
Change-Id: I59027c62d3f2956bd16fdcc1a48b2ac32c084abd
2018-12-18 04:27:55 +00:00
|
|
|
#ifdef HAVE_BACKLIGHT
|
|
|
|
#ifdef SIMULATOR
|
|
|
|
#define DEFAULT_BACKLIGHT_TIMEOUT 0
|
|
|
|
#else
|
|
|
|
#define DEFAULT_BACKLIGHT_TIMEOUT 15
|
|
|
|
#endif
|
|
|
|
#endif /* HAVE_BACKLIGHT */
|
|
|
|
|
2014-03-03 15:17:27 +00:00
|
|
|
#if LCD_DEPTH > 1
|
2011-10-17 17:38:10 +00:00
|
|
|
static const char* list_pad_formatter(char *buffer, size_t buffer_size,
|
|
|
|
int val, const char *unit)
|
|
|
|
{
|
|
|
|
switch (val)
|
|
|
|
{
|
|
|
|
case -1: return str(LANG_AUTOMATIC);
|
|
|
|
case 0: return str(LANG_OFF);
|
|
|
|
default: break;
|
|
|
|
}
|
|
|
|
snprintf(buffer, buffer_size, "%d %s", val, unit);
|
|
|
|
return buffer;
|
|
|
|
}
|
|
|
|
|
|
|
|
static int32_t list_pad_getlang(int value, int unit)
|
|
|
|
{
|
|
|
|
switch (value)
|
|
|
|
{
|
|
|
|
case -1: return LANG_AUTOMATIC;
|
|
|
|
case 0: return LANG_OFF;
|
|
|
|
default: return TALK_ID(value, unit);
|
|
|
|
}
|
|
|
|
}
|
2014-03-03 15:17:27 +00:00
|
|
|
#endif
|
2011-10-17 17:38:10 +00:00
|
|
|
|
Auto-Ranging Time Formatting For Menus (hh:mm:ss:mss)
Unifies time formatting in settings_list.c allows time format to
display as HH:MM:SS.MSS or any consecutive combination thereof
(hh:mm:ss, mm:ss, mm:ss.mss, ss.mss, hh, mm, ss ,mss)
works in INT and TABLE settings with the addition of flag 'F_TIME_SETTING'
Time is auto-ranged dependent on value
Adds talk_time_intervals to allow time values to be spoken similar to
display format: x Hours, x Minutes, x Seconds, x Milliseconds
Table lookups merged or removed from recording, clip meter and lcd timeout
-String_Choice replaced with TABLE_SETTING or INT_SETTING for these
functions as well, cleaned-up cfg_vals that get saved to cfgfile
RTL Languages ARE supported
Negative values ARE supported
Backlight on/off are now Always and Never to share formatter with LCD
Timeout
Added flag to allow ranged units to be locked to a minimum index
Added flag to allow leading zero to be supressed from the largest unit
merged talk_time_unit() and talk_time_intervals()
optimized time_split()
optimized format_time_auto()
Backlight time-out list same as original
Change-Id: I59027c62d3f2956bd16fdcc1a48b2ac32c084abd
2018-12-18 04:27:55 +00:00
|
|
|
static const char* formatter_time_unit_0_is_off(char *buffer, size_t buffer_size,
|
|
|
|
int val, const char *unit)
|
|
|
|
{
|
|
|
|
(void) buffer_size;
|
|
|
|
(void) unit;
|
|
|
|
if (val == 0)
|
|
|
|
return str(LANG_OFF);
|
|
|
|
return buffer;
|
|
|
|
}
|
|
|
|
|
|
|
|
static int32_t getlang_time_unit_0_is_off(int value, int unit)
|
|
|
|
{
|
|
|
|
if (value == 0)
|
|
|
|
return LANG_OFF;
|
|
|
|
else
|
|
|
|
return talk_time_intervals(value, unit, false);
|
|
|
|
}
|
|
|
|
|
|
|
|
#if defined(HAVE_BACKLIGHT) || defined(HAVE_LCD_SLEEP_SETTING)
|
|
|
|
static const char* formatter_time_unit_0_is_always(char *buffer, size_t buffer_size,
|
|
|
|
int val, const char *unit)
|
|
|
|
{
|
|
|
|
(void) buffer_size;
|
|
|
|
(void) unit;
|
|
|
|
if (val == -1)
|
|
|
|
return str(LANG__NEVER);
|
|
|
|
else if (val == 0)
|
|
|
|
return str(LANG_ALWAYS);
|
|
|
|
return buffer;
|
|
|
|
}
|
|
|
|
|
|
|
|
static int32_t getlang_time_unit_0_is_always(int value, int unit)
|
|
|
|
{
|
|
|
|
if (value == -1)
|
|
|
|
return LANG__NEVER;
|
|
|
|
else if (value == 0)
|
|
|
|
return LANG_ALWAYS;
|
|
|
|
else
|
|
|
|
return talk_time_intervals(value, unit, false);
|
|
|
|
}
|
|
|
|
#endif /* HAVE_BACKLIGHT || HAVE_LCD_SLEEP_SETTING */
|
|
|
|
|
|
|
|
static const char* formatter_time_unit_0_is_skip_track(char *buffer,
|
|
|
|
size_t buffer_size, int val, const char *unit)
|
2008-07-14 20:39:30 +00:00
|
|
|
{
|
2008-08-18 01:03:07 +00:00
|
|
|
(void)unit;
|
Auto-Ranging Time Formatting For Menus (hh:mm:ss:mss)
Unifies time formatting in settings_list.c allows time format to
display as HH:MM:SS.MSS or any consecutive combination thereof
(hh:mm:ss, mm:ss, mm:ss.mss, ss.mss, hh, mm, ss ,mss)
works in INT and TABLE settings with the addition of flag 'F_TIME_SETTING'
Time is auto-ranged dependent on value
Adds talk_time_intervals to allow time values to be spoken similar to
display format: x Hours, x Minutes, x Seconds, x Milliseconds
Table lookups merged or removed from recording, clip meter and lcd timeout
-String_Choice replaced with TABLE_SETTING or INT_SETTING for these
functions as well, cleaned-up cfg_vals that get saved to cfgfile
RTL Languages ARE supported
Negative values ARE supported
Backlight on/off are now Always and Never to share formatter with LCD
Timeout
Added flag to allow ranged units to be locked to a minimum index
Added flag to allow leading zero to be supressed from the largest unit
merged talk_time_unit() and talk_time_intervals()
optimized time_split()
optimized format_time_auto()
Backlight time-out list same as original
Change-Id: I59027c62d3f2956bd16fdcc1a48b2ac32c084abd
2018-12-18 04:27:55 +00:00
|
|
|
(void)buffer_size;
|
2009-10-17 16:05:23 +00:00
|
|
|
if (val == -1)
|
|
|
|
return str(LANG_SKIP_OUTRO);
|
|
|
|
else if (val == 0)
|
2009-08-20 16:47:44 +00:00
|
|
|
return str(LANG_SKIP_TRACK);
|
|
|
|
return buffer;
|
2008-07-14 20:39:30 +00:00
|
|
|
}
|
|
|
|
|
Auto-Ranging Time Formatting For Menus (hh:mm:ss:mss)
Unifies time formatting in settings_list.c allows time format to
display as HH:MM:SS.MSS or any consecutive combination thereof
(hh:mm:ss, mm:ss, mm:ss.mss, ss.mss, hh, mm, ss ,mss)
works in INT and TABLE settings with the addition of flag 'F_TIME_SETTING'
Time is auto-ranged dependent on value
Adds talk_time_intervals to allow time values to be spoken similar to
display format: x Hours, x Minutes, x Seconds, x Milliseconds
Table lookups merged or removed from recording, clip meter and lcd timeout
-String_Choice replaced with TABLE_SETTING or INT_SETTING for these
functions as well, cleaned-up cfg_vals that get saved to cfgfile
RTL Languages ARE supported
Negative values ARE supported
Backlight on/off are now Always and Never to share formatter with LCD
Timeout
Added flag to allow ranged units to be locked to a minimum index
Added flag to allow leading zero to be supressed from the largest unit
merged talk_time_unit() and talk_time_intervals()
optimized time_split()
optimized format_time_auto()
Backlight time-out list same as original
Change-Id: I59027c62d3f2956bd16fdcc1a48b2ac32c084abd
2018-12-18 04:27:55 +00:00
|
|
|
static int32_t getlang_time_unit_0_is_skip_track(int value, int unit)
|
2008-07-14 20:39:30 +00:00
|
|
|
{
|
2008-08-18 01:03:07 +00:00
|
|
|
(void)unit;
|
2009-11-04 23:10:09 +00:00
|
|
|
if (value == -1)
|
|
|
|
return LANG_SKIP_OUTRO;
|
|
|
|
else if (value == 0)
|
2008-07-14 20:39:30 +00:00
|
|
|
return LANG_SKIP_TRACK;
|
|
|
|
else
|
Auto-Ranging Time Formatting For Menus (hh:mm:ss:mss)
Unifies time formatting in settings_list.c allows time format to
display as HH:MM:SS.MSS or any consecutive combination thereof
(hh:mm:ss, mm:ss, mm:ss.mss, ss.mss, hh, mm, ss ,mss)
works in INT and TABLE settings with the addition of flag 'F_TIME_SETTING'
Time is auto-ranged dependent on value
Adds talk_time_intervals to allow time values to be spoken similar to
display format: x Hours, x Minutes, x Seconds, x Milliseconds
Table lookups merged or removed from recording, clip meter and lcd timeout
-String_Choice replaced with TABLE_SETTING or INT_SETTING for these
functions as well, cleaned-up cfg_vals that get saved to cfgfile
RTL Languages ARE supported
Negative values ARE supported
Backlight on/off are now Always and Never to share formatter with LCD
Timeout
Added flag to allow ranged units to be locked to a minimum index
Added flag to allow leading zero to be supressed from the largest unit
merged talk_time_unit() and talk_time_intervals()
optimized time_split()
optimized format_time_auto()
Backlight time-out list same as original
Change-Id: I59027c62d3f2956bd16fdcc1a48b2ac32c084abd
2018-12-18 04:27:55 +00:00
|
|
|
return talk_time_intervals(value, unit, false);
|
2008-07-14 20:39:30 +00:00
|
|
|
}
|
|
|
|
|
Auto-Ranging Time Formatting For Menus (hh:mm:ss:mss)
Unifies time formatting in settings_list.c allows time format to
display as HH:MM:SS.MSS or any consecutive combination thereof
(hh:mm:ss, mm:ss, mm:ss.mss, ss.mss, hh, mm, ss ,mss)
works in INT and TABLE settings with the addition of flag 'F_TIME_SETTING'
Time is auto-ranged dependent on value
Adds talk_time_intervals to allow time values to be spoken similar to
display format: x Hours, x Minutes, x Seconds, x Milliseconds
Table lookups merged or removed from recording, clip meter and lcd timeout
-String_Choice replaced with TABLE_SETTING or INT_SETTING for these
functions as well, cleaned-up cfg_vals that get saved to cfgfile
RTL Languages ARE supported
Negative values ARE supported
Backlight on/off are now Always and Never to share formatter with LCD
Timeout
Added flag to allow ranged units to be locked to a minimum index
Added flag to allow leading zero to be supressed from the largest unit
merged talk_time_unit() and talk_time_intervals()
optimized time_split()
optimized format_time_auto()
Backlight time-out list same as original
Change-Id: I59027c62d3f2956bd16fdcc1a48b2ac32c084abd
2018-12-18 04:27:55 +00:00
|
|
|
#ifdef HAVE_LCD_BITMAP
|
|
|
|
static const char* formatter_time_unit_0_is_eternal(char *buffer,
|
|
|
|
size_t buffer_size, int val, const char *unit)
|
2007-02-17 14:02:48 +00:00
|
|
|
{
|
Auto-Ranging Time Formatting For Menus (hh:mm:ss:mss)
Unifies time formatting in settings_list.c allows time format to
display as HH:MM:SS.MSS or any consecutive combination thereof
(hh:mm:ss, mm:ss, mm:ss.mss, ss.mss, hh, mm, ss ,mss)
works in INT and TABLE settings with the addition of flag 'F_TIME_SETTING'
Time is auto-ranged dependent on value
Adds talk_time_intervals to allow time values to be spoken similar to
display format: x Hours, x Minutes, x Seconds, x Milliseconds
Table lookups merged or removed from recording, clip meter and lcd timeout
-String_Choice replaced with TABLE_SETTING or INT_SETTING for these
functions as well, cleaned-up cfg_vals that get saved to cfgfile
RTL Languages ARE supported
Negative values ARE supported
Backlight on/off are now Always and Never to share formatter with LCD
Timeout
Added flag to allow ranged units to be locked to a minimum index
Added flag to allow leading zero to be supressed from the largest unit
merged talk_time_unit() and talk_time_intervals()
optimized time_split()
optimized format_time_auto()
Backlight time-out list same as original
Change-Id: I59027c62d3f2956bd16fdcc1a48b2ac32c084abd
2018-12-18 04:27:55 +00:00
|
|
|
(void) buffer_size;
|
|
|
|
(void) unit;
|
|
|
|
if (val == 0)
|
|
|
|
return str(LANG_PM_ETERNAL);
|
2009-08-20 16:47:44 +00:00
|
|
|
return buffer;
|
2007-02-17 14:02:48 +00:00
|
|
|
}
|
Auto-Ranging Time Formatting For Menus (hh:mm:ss:mss)
Unifies time formatting in settings_list.c allows time format to
display as HH:MM:SS.MSS or any consecutive combination thereof
(hh:mm:ss, mm:ss, mm:ss.mss, ss.mss, hh, mm, ss ,mss)
works in INT and TABLE settings with the addition of flag 'F_TIME_SETTING'
Time is auto-ranged dependent on value
Adds talk_time_intervals to allow time values to be spoken similar to
display format: x Hours, x Minutes, x Seconds, x Milliseconds
Table lookups merged or removed from recording, clip meter and lcd timeout
-String_Choice replaced with TABLE_SETTING or INT_SETTING for these
functions as well, cleaned-up cfg_vals that get saved to cfgfile
RTL Languages ARE supported
Negative values ARE supported
Backlight on/off are now Always and Never to share formatter with LCD
Timeout
Added flag to allow ranged units to be locked to a minimum index
Added flag to allow leading zero to be supressed from the largest unit
merged talk_time_unit() and talk_time_intervals()
optimized time_split()
optimized format_time_auto()
Backlight time-out list same as original
Change-Id: I59027c62d3f2956bd16fdcc1a48b2ac32c084abd
2018-12-18 04:27:55 +00:00
|
|
|
static int32_t getlang_time_unit_0_is_eternal(int value, int unit)
|
2007-02-17 14:02:48 +00:00
|
|
|
{
|
Auto-Ranging Time Formatting For Menus (hh:mm:ss:mss)
Unifies time formatting in settings_list.c allows time format to
display as HH:MM:SS.MSS or any consecutive combination thereof
(hh:mm:ss, mm:ss, mm:ss.mss, ss.mss, hh, mm, ss ,mss)
works in INT and TABLE settings with the addition of flag 'F_TIME_SETTING'
Time is auto-ranged dependent on value
Adds talk_time_intervals to allow time values to be spoken similar to
display format: x Hours, x Minutes, x Seconds, x Milliseconds
Table lookups merged or removed from recording, clip meter and lcd timeout
-String_Choice replaced with TABLE_SETTING or INT_SETTING for these
functions as well, cleaned-up cfg_vals that get saved to cfgfile
RTL Languages ARE supported
Negative values ARE supported
Backlight on/off are now Always and Never to share formatter with LCD
Timeout
Added flag to allow ranged units to be locked to a minimum index
Added flag to allow leading zero to be supressed from the largest unit
merged talk_time_unit() and talk_time_intervals()
optimized time_split()
optimized format_time_auto()
Backlight time-out list same as original
Change-Id: I59027c62d3f2956bd16fdcc1a48b2ac32c084abd
2018-12-18 04:27:55 +00:00
|
|
|
if (value == 0)
|
|
|
|
return LANG_PM_ETERNAL;
|
2007-02-12 14:22:35 +00:00
|
|
|
else
|
Auto-Ranging Time Formatting For Menus (hh:mm:ss:mss)
Unifies time formatting in settings_list.c allows time format to
display as HH:MM:SS.MSS or any consecutive combination thereof
(hh:mm:ss, mm:ss, mm:ss.mss, ss.mss, hh, mm, ss ,mss)
works in INT and TABLE settings with the addition of flag 'F_TIME_SETTING'
Time is auto-ranged dependent on value
Adds talk_time_intervals to allow time values to be spoken similar to
display format: x Hours, x Minutes, x Seconds, x Milliseconds
Table lookups merged or removed from recording, clip meter and lcd timeout
-String_Choice replaced with TABLE_SETTING or INT_SETTING for these
functions as well, cleaned-up cfg_vals that get saved to cfgfile
RTL Languages ARE supported
Negative values ARE supported
Backlight on/off are now Always and Never to share formatter with LCD
Timeout
Added flag to allow ranged units to be locked to a minimum index
Added flag to allow leading zero to be supressed from the largest unit
merged talk_time_unit() and talk_time_intervals()
optimized time_split()
optimized format_time_auto()
Backlight time-out list same as original
Change-Id: I59027c62d3f2956bd16fdcc1a48b2ac32c084abd
2018-12-18 04:27:55 +00:00
|
|
|
return talk_time_intervals(value, unit, false);
|
2007-02-13 07:50:47 +00:00
|
|
|
}
|
Auto-Ranging Time Formatting For Menus (hh:mm:ss:mss)
Unifies time formatting in settings_list.c allows time format to
display as HH:MM:SS.MSS or any consecutive combination thereof
(hh:mm:ss, mm:ss, mm:ss.mss, ss.mss, hh, mm, ss ,mss)
works in INT and TABLE settings with the addition of flag 'F_TIME_SETTING'
Time is auto-ranged dependent on value
Adds talk_time_intervals to allow time values to be spoken similar to
display format: x Hours, x Minutes, x Seconds, x Milliseconds
Table lookups merged or removed from recording, clip meter and lcd timeout
-String_Choice replaced with TABLE_SETTING or INT_SETTING for these
functions as well, cleaned-up cfg_vals that get saved to cfgfile
RTL Languages ARE supported
Negative values ARE supported
Backlight on/off are now Always and Never to share formatter with LCD
Timeout
Added flag to allow ranged units to be locked to a minimum index
Added flag to allow leading zero to be supressed from the largest unit
merged talk_time_unit() and talk_time_intervals()
optimized time_split()
optimized format_time_auto()
Backlight time-out list same as original
Change-Id: I59027c62d3f2956bd16fdcc1a48b2ac32c084abd
2018-12-18 04:27:55 +00:00
|
|
|
#endif /* HAVE_LCD_BITMAP */
|
2007-01-23 13:40:44 +00:00
|
|
|
|
2009-03-02 19:25:50 +00:00
|
|
|
#ifndef HAVE_WHEEL_ACCELERATION
|
2009-08-20 16:47:44 +00:00
|
|
|
static const char* scanaccel_formatter(char *buffer, size_t buffer_size,
|
2007-05-27 15:08:56 +00:00
|
|
|
int val, const char *unit)
|
|
|
|
{
|
|
|
|
(void)unit;
|
|
|
|
if (val == 0)
|
2009-08-20 16:47:44 +00:00
|
|
|
return str(LANG_OFF);
|
2007-05-27 15:08:56 +00:00
|
|
|
else
|
Auto-Ranging Time Formatting For Menus (hh:mm:ss:mss)
Unifies time formatting in settings_list.c allows time format to
display as HH:MM:SS.MSS or any consecutive combination thereof
(hh:mm:ss, mm:ss, mm:ss.mss, ss.mss, hh, mm, ss ,mss)
works in INT and TABLE settings with the addition of flag 'F_TIME_SETTING'
Time is auto-ranged dependent on value
Adds talk_time_intervals to allow time values to be spoken similar to
display format: x Hours, x Minutes, x Seconds, x Milliseconds
Table lookups merged or removed from recording, clip meter and lcd timeout
-String_Choice replaced with TABLE_SETTING or INT_SETTING for these
functions as well, cleaned-up cfg_vals that get saved to cfgfile
RTL Languages ARE supported
Negative values ARE supported
Backlight on/off are now Always and Never to share formatter with LCD
Timeout
Added flag to allow ranged units to be locked to a minimum index
Added flag to allow leading zero to be supressed from the largest unit
merged talk_time_unit() and talk_time_intervals()
optimized time_split()
optimized format_time_auto()
Backlight time-out list same as original
Change-Id: I59027c62d3f2956bd16fdcc1a48b2ac32c084abd
2018-12-18 04:27:55 +00:00
|
|
|
snprintf(buffer, buffer_size, "Speed up every %d s", val);
|
2009-08-20 16:47:44 +00:00
|
|
|
return buffer;
|
2007-05-27 15:08:56 +00:00
|
|
|
}
|
2008-06-28 18:35:26 +00:00
|
|
|
#endif
|
2007-05-27 15:08:56 +00:00
|
|
|
|
2007-02-08 10:28:42 +00:00
|
|
|
#if CONFIG_CODEC == SWCODEC
|
2018-12-22 19:53:00 +00:00
|
|
|
|
|
|
|
static const char* formatter_unit_0_is_off(char *buffer, size_t buffer_size,
|
|
|
|
int val, const char *unit)
|
|
|
|
{
|
|
|
|
if (val == 0)
|
|
|
|
return str(LANG_OFF);
|
|
|
|
else
|
|
|
|
snprintf(buffer, buffer_size, "%d %s", val, unit);
|
|
|
|
return buffer;
|
|
|
|
}
|
|
|
|
|
|
|
|
static int32_t getlang_unit_0_is_off(int value, int unit)
|
|
|
|
{
|
|
|
|
if (value == 0)
|
|
|
|
return LANG_OFF;
|
|
|
|
else
|
|
|
|
return TALK_ID(value,unit);
|
|
|
|
}
|
|
|
|
|
2007-03-07 15:06:33 +00:00
|
|
|
static void crossfeed_cross_set(int val)
|
2007-02-08 10:28:42 +00:00
|
|
|
{
|
2007-03-07 15:06:33 +00:00
|
|
|
(void)val;
|
|
|
|
dsp_set_crossfeed_cross_params(global_settings.crossfeed_cross_gain,
|
|
|
|
global_settings.crossfeed_hf_attenuation,
|
|
|
|
global_settings.crossfeed_hf_cutoff);
|
2007-02-08 10:28:42 +00:00
|
|
|
}
|
2007-02-12 14:22:35 +00:00
|
|
|
|
2014-08-22 13:30:35 +00:00
|
|
|
static void surround_set_factor(int val)
|
|
|
|
{
|
|
|
|
(void)val;
|
|
|
|
dsp_surround_set_cutoff(global_settings.surround_fx1, global_settings.surround_fx2);
|
|
|
|
}
|
|
|
|
|
2009-09-25 15:46:38 +00:00
|
|
|
static void compressor_set(int val)
|
|
|
|
{
|
|
|
|
(void)val;
|
2012-04-26 21:19:16 +00:00
|
|
|
dsp_set_compressor(&global_settings.compressor_settings);
|
2009-09-25 15:46:38 +00:00
|
|
|
}
|
|
|
|
|
2009-08-20 16:47:44 +00:00
|
|
|
static const char* db_format(char* buffer, size_t buffer_size, int value,
|
2008-05-11 23:13:59 +00:00
|
|
|
const char* unit)
|
2007-02-12 14:22:35 +00:00
|
|
|
{
|
|
|
|
int v = abs(value);
|
|
|
|
|
|
|
|
snprintf(buffer, buffer_size, "%s%d.%d %s", value < 0 ? "-" : "",
|
2008-05-11 23:13:59 +00:00
|
|
|
v / 10, v % 10, unit);
|
2009-08-20 16:47:44 +00:00
|
|
|
return buffer;
|
2007-02-12 14:22:35 +00:00
|
|
|
}
|
|
|
|
|
2008-04-19 13:19:04 +00:00
|
|
|
static int32_t get_dec_talkid(int value, int unit)
|
|
|
|
{
|
|
|
|
return TALK_ID_DECIMAL(value, 1, unit);
|
|
|
|
}
|
|
|
|
|
|
|
|
static int32_t get_precut_talkid(int value, int unit)
|
|
|
|
{
|
|
|
|
return TALK_ID_DECIMAL(-value, 1, unit);
|
|
|
|
}
|
|
|
|
|
2013-02-05 12:20:17 +00:00
|
|
|
struct eq_band_setting eq_defaults[EQ_NUM_BANDS] = {
|
|
|
|
{ 32, 7, 0 },
|
|
|
|
{ 64, 10, 0 },
|
|
|
|
{ 125, 10, 0 },
|
|
|
|
{ 250, 10, 0 },
|
|
|
|
{ 500, 10, 0 },
|
|
|
|
{ 1000, 10, 0 },
|
|
|
|
{ 2000, 10, 0 },
|
|
|
|
{ 4000, 10, 0 },
|
|
|
|
{ 8000, 10, 0 },
|
|
|
|
{ 16000, 7, 0 },
|
|
|
|
};
|
|
|
|
|
|
|
|
static void eq_load_from_cfg(void *setting, char *value)
|
|
|
|
{
|
|
|
|
struct eq_band_setting *eq = setting;
|
|
|
|
char *val_end, *end;
|
|
|
|
|
|
|
|
val_end = value + strlen(value);
|
|
|
|
|
|
|
|
/* cutoff/center */
|
|
|
|
end = strchr(value, ',');
|
|
|
|
if (!end) return;
|
|
|
|
*end = '\0';
|
|
|
|
eq->cutoff = atoi(value);
|
|
|
|
|
|
|
|
/* q */
|
|
|
|
value = end + 1;
|
|
|
|
if (value > val_end) return;
|
|
|
|
end = strchr(value, ',');
|
|
|
|
if (!end) return;
|
|
|
|
*end = '\0';
|
|
|
|
eq->q = atoi(value);
|
|
|
|
|
|
|
|
/* gain */
|
|
|
|
value = end + 1;
|
|
|
|
if (value > val_end) return;
|
|
|
|
eq->gain = atoi(value);
|
|
|
|
}
|
|
|
|
|
|
|
|
static char* eq_write_to_cfg(void *setting, char *buf, int buf_len)
|
|
|
|
{
|
|
|
|
struct eq_band_setting *eq = setting;
|
|
|
|
|
|
|
|
snprintf(buf, buf_len, "%d, %d, %d", eq->cutoff, eq->q, eq->gain);
|
|
|
|
return buf;
|
|
|
|
}
|
|
|
|
|
|
|
|
static bool eq_is_changed(void *setting, void *defaultval)
|
|
|
|
{
|
|
|
|
struct eq_band_setting *eq = setting;
|
|
|
|
|
|
|
|
return memcmp(eq, defaultval, sizeof(struct eq_band_setting));
|
|
|
|
}
|
|
|
|
|
|
|
|
static void eq_set_default(void* setting, void* defaultval)
|
|
|
|
{
|
|
|
|
memcpy(setting, defaultval, sizeof(struct eq_band_setting));
|
|
|
|
}
|
|
|
|
|
2007-02-08 10:28:42 +00:00
|
|
|
#endif
|
2007-12-08 01:56:35 +00:00
|
|
|
#if (CONFIG_CODEC == MAS3587F) || (CONFIG_CODEC == MAS3539F)
|
2007-02-08 10:28:42 +00:00
|
|
|
static void set_mdb_enable(bool value)
|
|
|
|
{
|
|
|
|
sound_set_mdb_enable((int)value);
|
|
|
|
}
|
|
|
|
static void set_superbass(bool value)
|
|
|
|
{
|
|
|
|
sound_set_superbass((int)value);
|
|
|
|
}
|
|
|
|
#endif
|
2007-02-17 14:02:48 +00:00
|
|
|
|
2008-11-03 11:11:07 +00:00
|
|
|
#ifdef HAVE_QUICKSCREEN
|
2008-11-03 22:26:32 +00:00
|
|
|
static int find_setting_by_name(char*name)
|
2008-11-03 11:11:07 +00:00
|
|
|
{
|
|
|
|
int i = 0;
|
|
|
|
const struct settings_list *setting;
|
2011-09-15 09:58:28 +00:00
|
|
|
if (!strcmp(name, "-"))
|
|
|
|
return -1;
|
2008-11-03 11:11:07 +00:00
|
|
|
while (i<nb_settings)
|
|
|
|
{
|
|
|
|
setting = &settings[i];
|
|
|
|
if (setting->cfg_name && !strcmp(setting->cfg_name, name))
|
|
|
|
{
|
|
|
|
return i;
|
|
|
|
}
|
|
|
|
i++;
|
|
|
|
}
|
|
|
|
return -1;
|
|
|
|
}
|
2008-11-03 22:26:32 +00:00
|
|
|
static void qs_load_from_cfg(void* var, char*value)
|
2008-11-03 11:11:07 +00:00
|
|
|
{
|
|
|
|
*(int*)var = find_setting_by_name(value);
|
|
|
|
}
|
2008-11-03 22:26:32 +00:00
|
|
|
static char* qs_write_to_cfg(void* setting, char*buf, int buf_len)
|
2008-11-03 11:11:07 +00:00
|
|
|
{
|
2011-09-15 09:58:28 +00:00
|
|
|
int index = *(int*)setting;
|
2014-02-10 13:39:12 +00:00
|
|
|
if (index < 0 || index >= nb_settings)
|
2011-09-15 09:58:28 +00:00
|
|
|
{
|
|
|
|
strlcpy(buf, "-", buf_len);
|
|
|
|
return buf;
|
|
|
|
}
|
|
|
|
const struct settings_list *var = &settings[index];
|
2009-07-14 13:57:45 +00:00
|
|
|
strlcpy(buf, var->cfg_name, buf_len);
|
2008-11-03 11:11:07 +00:00
|
|
|
return buf;
|
|
|
|
}
|
2008-11-03 22:26:32 +00:00
|
|
|
static bool qs_is_changed(void* setting, void* defaultval)
|
2008-11-03 11:11:07 +00:00
|
|
|
{
|
|
|
|
int i = *(int*)setting;
|
|
|
|
if (i < 0 || i >= nb_settings)
|
|
|
|
return false;
|
|
|
|
const struct settings_list *var = &settings[i];
|
|
|
|
return var != find_setting(defaultval, NULL);
|
|
|
|
}
|
2008-11-03 22:26:32 +00:00
|
|
|
static void qs_set_default(void* setting, void* defaultval)
|
2008-11-03 11:11:07 +00:00
|
|
|
{
|
2011-07-20 01:30:29 +00:00
|
|
|
if (defaultval == NULL)
|
|
|
|
*(int*)setting = -1;
|
2008-11-03 11:11:07 +00:00
|
|
|
find_setting(defaultval, (int*)setting);
|
|
|
|
}
|
|
|
|
#endif
|
2009-06-16 17:04:47 +00:00
|
|
|
#ifdef HAVE_TOUCHSCREEN
|
2010-10-31 16:22:32 +00:00
|
|
|
|
2010-10-31 16:45:14 +00:00
|
|
|
#if defined(APPLICATION) \
|
|
|
|
|| defined(ONDA_VX747) \
|
|
|
|
|| defined(ONDA_VX767) \
|
|
|
|
|| defined(ONDA_VX747P) \
|
2010-10-31 16:22:32 +00:00
|
|
|
|| defined(ONDA_VX777)
|
|
|
|
|
|
|
|
#define DEFAULT_TOUCHSCREEN_MODE TOUCHSCREEN_POINT
|
|
|
|
#else
|
|
|
|
#define DEFAULT_TOUCHSCREEN_MODE TOUCHSCREEN_BUTTON
|
|
|
|
#endif
|
|
|
|
|
2009-06-16 17:04:47 +00:00
|
|
|
static void tsc_load_from_cfg(void* setting, char*value)
|
|
|
|
{
|
|
|
|
struct touchscreen_parameter *var = (struct touchscreen_parameter*) setting;
|
|
|
|
|
|
|
|
/* Replacement for sscanf(value, "%d ..., &var->A, ...); */
|
|
|
|
int vals[7], count = 0;
|
|
|
|
while(*value != 0 && count < 7)
|
|
|
|
{
|
|
|
|
if(isspace(*value))
|
|
|
|
value++;
|
|
|
|
else
|
|
|
|
{
|
|
|
|
vals[count++] = atoi(value);
|
|
|
|
while(!isspace(*value))
|
|
|
|
value++;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
var->A = vals[0];
|
|
|
|
var->B = vals[1];
|
|
|
|
var->C = vals[2];
|
|
|
|
var->D = vals[3];
|
|
|
|
var->E = vals[4];
|
|
|
|
var->F = vals[5];
|
|
|
|
var->divider = vals[6];
|
|
|
|
}
|
|
|
|
|
|
|
|
static char* tsc_write_to_cfg(void* setting, char*buf, int buf_len)
|
|
|
|
{
|
|
|
|
const struct touchscreen_parameter *var = (const struct touchscreen_parameter*) setting;
|
|
|
|
snprintf(buf, buf_len, "%d %d %d %d %d %d %d", var->A, var->B, var->C, var->D, var->E, var->F, var->divider);
|
|
|
|
return buf;
|
|
|
|
}
|
|
|
|
static bool tsc_is_changed(void* setting, void* defaultval)
|
|
|
|
{
|
|
|
|
return memcmp(setting, defaultval, sizeof(struct touchscreen_parameter)) != 0;
|
|
|
|
}
|
|
|
|
static void tsc_set_default(void* setting, void* defaultval)
|
|
|
|
{
|
|
|
|
memcpy(setting, defaultval, sizeof(struct touchscreen_parameter));
|
|
|
|
}
|
|
|
|
#endif
|
2010-05-09 02:02:51 +00:00
|
|
|
#ifdef HAVE_HOTKEY
|
|
|
|
static const char* hotkey_formatter(char* buffer, size_t buffer_size, int value,
|
|
|
|
const char* unit)
|
|
|
|
{
|
|
|
|
(void)buffer;
|
|
|
|
(void)buffer_size;
|
|
|
|
(void)unit;
|
|
|
|
return str(get_hotkey_lang_id(value));
|
|
|
|
}
|
|
|
|
static int32_t hotkey_getlang(int value, int unit)
|
|
|
|
{
|
|
|
|
(void)unit;
|
|
|
|
return get_hotkey_lang_id(value);
|
|
|
|
}
|
|
|
|
#endif /* HAVE_HOTKEY */
|
2013-12-21 13:33:54 +00:00
|
|
|
|
|
|
|
/* volume limiter */
|
|
|
|
static void volume_limit_load_from_cfg(void* var, char*value)
|
|
|
|
{
|
|
|
|
*(int*)var = atoi(value);
|
|
|
|
}
|
|
|
|
static char* volume_limit_write_to_cfg(void* setting, char*buf, int buf_len)
|
|
|
|
{
|
|
|
|
int current = *(int*)setting;
|
|
|
|
snprintf(buf, buf_len, "%d", current);
|
|
|
|
return buf;
|
|
|
|
}
|
|
|
|
static bool volume_limit_is_changed(void* setting, void* defaultval)
|
|
|
|
{
|
2014-01-13 14:26:13 +00:00
|
|
|
(void)defaultval;
|
2013-12-21 13:33:54 +00:00
|
|
|
int current = *(int*)setting;
|
|
|
|
return (current != sound_max(SOUND_VOLUME));
|
|
|
|
}
|
|
|
|
static void volume_limit_set_default(void* setting, void* defaultval)
|
|
|
|
{
|
|
|
|
(void)defaultval;
|
|
|
|
*(int*)setting = sound_max(SOUND_VOLUME);
|
|
|
|
}
|
|
|
|
|
2007-01-23 13:40:44 +00:00
|
|
|
const struct settings_list settings[] = {
|
|
|
|
/* sound settings */
|
2013-12-21 13:33:54 +00:00
|
|
|
SOUND_SETTING(F_NO_WRAP, volume, LANG_VOLUME, "volume", SOUND_VOLUME),
|
|
|
|
CUSTOM_SETTING(F_NO_WRAP, volume_limit, LANG_VOLUME_LIMIT,
|
|
|
|
NULL, "volume limit",
|
|
|
|
volume_limit_load_from_cfg, volume_limit_write_to_cfg,
|
|
|
|
volume_limit_is_changed, volume_limit_set_default),
|
2007-10-15 10:33:01 +00:00
|
|
|
SOUND_SETTING(0, balance, LANG_BALANCE, "balance", SOUND_BALANCE),
|
2010-05-15 13:09:45 +00:00
|
|
|
/* Tone controls */
|
|
|
|
#ifdef AUDIOHW_HAVE_BASS
|
2007-10-15 10:33:01 +00:00
|
|
|
SOUND_SETTING(F_NO_WRAP,bass, LANG_BASS, "bass", SOUND_BASS),
|
2010-05-15 13:09:45 +00:00
|
|
|
#endif
|
|
|
|
#ifdef AUDIOHW_HAVE_TREBLE
|
2007-10-15 10:33:01 +00:00
|
|
|
SOUND_SETTING(F_NO_WRAP,treble, LANG_TREBLE, "treble", SOUND_TREBLE),
|
2010-05-15 13:09:45 +00:00
|
|
|
#endif
|
|
|
|
/* Hardware EQ tone controls */
|
|
|
|
#ifdef AUDIOHW_HAVE_EQ
|
|
|
|
/* Band gain is generic */
|
|
|
|
SOUND_SETTING(F_NO_WRAP, hw_eq_bands[AUDIOHW_EQ_BAND1].gain,
|
|
|
|
LANG_HW_EQ_GAIN, "tone band1 gain", SOUND_EQ_BAND1_GAIN),
|
|
|
|
#ifdef AUDIOHW_HAVE_EQ_BAND2
|
|
|
|
SOUND_SETTING(F_NO_WRAP, hw_eq_bands[AUDIOHW_EQ_BAND2].gain,
|
|
|
|
LANG_HW_EQ_GAIN, "tone band2 gain", SOUND_EQ_BAND2_GAIN),
|
|
|
|
#endif /* AUDIOHW_HAVE_EQ_BAND2 */
|
|
|
|
#ifdef AUDIOHW_HAVE_EQ_BAND3
|
|
|
|
SOUND_SETTING(F_NO_WRAP, hw_eq_bands[AUDIOHW_EQ_BAND3].gain,
|
|
|
|
LANG_HW_EQ_GAIN, "tone band3 gain", SOUND_EQ_BAND3_GAIN),
|
|
|
|
#endif /* AUDIOHW_HAVE_EQ_BAND3 */
|
|
|
|
#ifdef AUDIOHW_HAVE_EQ_BAND4
|
|
|
|
SOUND_SETTING(F_NO_WRAP, hw_eq_bands[AUDIOHW_EQ_BAND4].gain,
|
|
|
|
LANG_HW_EQ_GAIN, "tone band4 gain", SOUND_EQ_BAND4_GAIN),
|
|
|
|
#endif /* AUDIOHW_HAVE_EQ_BAND4 */
|
|
|
|
#ifdef AUDIOHW_HAVE_EQ_BAND5
|
|
|
|
SOUND_SETTING(F_NO_WRAP, hw_eq_bands[AUDIOHW_EQ_BAND5].gain,
|
|
|
|
LANG_HW_EQ_GAIN, "tone band5 gain", SOUND_EQ_BAND5_GAIN),
|
|
|
|
#endif /* AUDIOHW_HAVE_EQ_BAND5 */
|
|
|
|
#ifdef HAVE_WM8978
|
|
|
|
/* Frequencies vary with samplerate but at least the user has an idea
|
|
|
|
* about the bands and it will be correct with normal playback rates. */
|
|
|
|
/* Band 1 */
|
|
|
|
STRINGCHOICE_SETTING(F_SOUNDSETTING,
|
|
|
|
hw_eq_bands[AUDIOHW_EQ_BAND1].frequency,
|
|
|
|
LANG_HW_EQ_FREQUENCY, 0,"tone band1 frequency",
|
|
|
|
"80 Hz,105 Hz,135 Hz,175 Hz",
|
|
|
|
sound_set_hw_eq_band1_frequency, 4,
|
|
|
|
TALK_ID(80, UNIT_HERTZ), TALK_ID(105, UNIT_HERTZ),
|
|
|
|
TALK_ID(135, UNIT_HERTZ), TALK_ID(175, UNIT_HERTZ)),
|
|
|
|
/* Band 2 */
|
|
|
|
STRINGCHOICE_SETTING(F_SOUNDSETTING,
|
|
|
|
hw_eq_bands[AUDIOHW_EQ_BAND2].frequency,
|
|
|
|
LANG_HW_EQ_FREQUENCY, 0,"tone band2 frequency",
|
|
|
|
"230 Hz,300 Hz,385 Hz,500 Hz",
|
|
|
|
sound_set_hw_eq_band2_frequency, 4,
|
|
|
|
TALK_ID(230, UNIT_HERTZ), TALK_ID(300, UNIT_HERTZ),
|
|
|
|
TALK_ID(385, UNIT_HERTZ), TALK_ID(500, UNIT_HERTZ)),
|
|
|
|
CHOICE_SETTING(F_SOUNDSETTING, hw_eq_bands[AUDIOHW_EQ_BAND2].width,
|
|
|
|
LANG_HW_EQ_WIDTH, 0, "tone band2 width", "narrow,wide",
|
|
|
|
sound_set_hw_eq_band2_width, 2,
|
|
|
|
ID2P(LANG_HW_EQ_WIDTH_NARROW), ID2P(LANG_HW_EQ_WIDTH_WIDE)),
|
|
|
|
/* Band 3 */
|
|
|
|
STRINGCHOICE_SETTING(F_SOUNDSETTING,
|
|
|
|
hw_eq_bands[AUDIOHW_EQ_BAND3].frequency,
|
|
|
|
LANG_HW_EQ_FREQUENCY, 0, "tone band3 frequency",
|
|
|
|
"650 Hz,850 Hz,1.1 kHz,1.4 kHz",
|
|
|
|
sound_set_hw_eq_band3_frequency, 4,
|
|
|
|
TALK_ID(650, UNIT_HERTZ), TALK_ID(850, UNIT_HERTZ),
|
|
|
|
TALK_ID_DECIMAL(11, 1, UNIT_KHZ),
|
|
|
|
TALK_ID_DECIMAL(14, 1, UNIT_KHZ)),
|
|
|
|
CHOICE_SETTING(F_SOUNDSETTING,hw_eq_bands[AUDIOHW_EQ_BAND3].width,
|
|
|
|
LANG_HW_EQ_WIDTH, 0, "tone band3 width", "narrow,wide",
|
|
|
|
sound_set_hw_eq_band3_width, 2,
|
|
|
|
ID2P(LANG_HW_EQ_WIDTH_NARROW), ID2P(LANG_HW_EQ_WIDTH_WIDE)),
|
|
|
|
/* Band 4 */
|
|
|
|
STRINGCHOICE_SETTING(F_SOUNDSETTING,
|
|
|
|
hw_eq_bands[AUDIOHW_EQ_BAND4].frequency,
|
|
|
|
LANG_HW_EQ_FREQUENCY, 0, "tone band4 frequency",
|
|
|
|
"1.8 kHz,2.4 kHz,3.2 kHz,4.1 kHz",
|
|
|
|
sound_set_hw_eq_band4_frequency, 4,
|
|
|
|
TALK_ID_DECIMAL(18, 1, UNIT_KHZ),
|
|
|
|
TALK_ID_DECIMAL(24, 1, UNIT_KHZ),
|
|
|
|
TALK_ID_DECIMAL(32, 1, UNIT_KHZ),
|
|
|
|
TALK_ID_DECIMAL(41, 1, UNIT_KHZ)),
|
|
|
|
CHOICE_SETTING(F_SOUNDSETTING, hw_eq_bands[AUDIOHW_EQ_BAND4].width,
|
|
|
|
LANG_HW_EQ_WIDTH, 0, "tone band4 width", "narrow,wide",
|
|
|
|
sound_set_hw_eq_band4_width, 2,
|
|
|
|
ID2P(LANG_HW_EQ_WIDTH_NARROW), ID2P(LANG_HW_EQ_WIDTH_WIDE)),
|
|
|
|
/* Band 5 */
|
|
|
|
STRINGCHOICE_SETTING(F_SOUNDSETTING,
|
|
|
|
hw_eq_bands[AUDIOHW_EQ_BAND5].frequency,
|
|
|
|
LANG_HW_EQ_FREQUENCY, 0, "tone band5 frequency",
|
|
|
|
"5.3 kHz,6.9 kHz,9.0 kHz,11.7 kHz",
|
|
|
|
sound_set_hw_eq_band5_frequency, 4,
|
|
|
|
TALK_ID_DECIMAL(53, 1, UNIT_KHZ),
|
|
|
|
TALK_ID_DECIMAL(69, 1, UNIT_KHZ),
|
|
|
|
TALK_ID_DECIMAL(90, 1, UNIT_KHZ),
|
|
|
|
TALK_ID_DECIMAL(117, 1, UNIT_KHZ)),
|
|
|
|
#endif /* HAVE_WM8978 */
|
|
|
|
#endif /* AUDIOHW_HAVE_EQ */
|
|
|
|
/* 3-d enhancement effect */
|
2007-01-23 13:40:44 +00:00
|
|
|
#if (CONFIG_CODEC == MAS3587F) || (CONFIG_CODEC == MAS3539F)
|
2007-02-08 10:28:42 +00:00
|
|
|
SOUND_SETTING(0,loudness, LANG_LOUDNESS, "loudness", SOUND_LOUDNESS),
|
Auto-Ranging Time Formatting For Menus (hh:mm:ss:mss)
Unifies time formatting in settings_list.c allows time format to
display as HH:MM:SS.MSS or any consecutive combination thereof
(hh:mm:ss, mm:ss, mm:ss.mss, ss.mss, hh, mm, ss ,mss)
works in INT and TABLE settings with the addition of flag 'F_TIME_SETTING'
Time is auto-ranged dependent on value
Adds talk_time_intervals to allow time values to be spoken similar to
display format: x Hours, x Minutes, x Seconds, x Milliseconds
Table lookups merged or removed from recording, clip meter and lcd timeout
-String_Choice replaced with TABLE_SETTING or INT_SETTING for these
functions as well, cleaned-up cfg_vals that get saved to cfgfile
RTL Languages ARE supported
Negative values ARE supported
Backlight on/off are now Always and Never to share formatter with LCD
Timeout
Added flag to allow ranged units to be locked to a minimum index
Added flag to allow leading zero to be supressed from the largest unit
merged talk_time_unit() and talk_time_intervals()
optimized time_split()
optimized format_time_auto()
Backlight time-out list same as original
Change-Id: I59027c62d3f2956bd16fdcc1a48b2ac32c084abd
2018-12-18 04:27:55 +00:00
|
|
|
/* requires index, uses table defined by driver */
|
2007-12-24 22:35:31 +00:00
|
|
|
STRINGCHOICE_SETTING(F_SOUNDSETTING,avc,LANG_AUTOVOL,0,"auto volume",
|
Auto-Ranging Time Formatting For Menus (hh:mm:ss:mss)
Unifies time formatting in settings_list.c allows time format to
display as HH:MM:SS.MSS or any consecutive combination thereof
(hh:mm:ss, mm:ss, mm:ss.mss, ss.mss, hh, mm, ss ,mss)
works in INT and TABLE settings with the addition of flag 'F_TIME_SETTING'
Time is auto-ranged dependent on value
Adds talk_time_intervals to allow time values to be spoken similar to
display format: x Hours, x Minutes, x Seconds, x Milliseconds
Table lookups merged or removed from recording, clip meter and lcd timeout
-String_Choice replaced with TABLE_SETTING or INT_SETTING for these
functions as well, cleaned-up cfg_vals that get saved to cfgfile
RTL Languages ARE supported
Negative values ARE supported
Backlight on/off are now Always and Never to share formatter with LCD
Timeout
Added flag to allow ranged units to be locked to a minimum index
Added flag to allow leading zero to be supressed from the largest unit
merged talk_time_unit() and talk_time_intervals()
optimized time_split()
optimized format_time_auto()
Backlight time-out list same as original
Change-Id: I59027c62d3f2956bd16fdcc1a48b2ac32c084abd
2018-12-18 04:27:55 +00:00
|
|
|
"off,20 ms,2 s,4 s,8 s,", sound_set_avc, 5,
|
2008-05-11 23:13:59 +00:00
|
|
|
LANG_OFF,TALK_ID(20, UNIT_MS),TALK_ID(2, UNIT_SEC),
|
|
|
|
TALK_ID(4, UNIT_SEC),TALK_ID(8, UNIT_SEC)),
|
|
|
|
OFFON_SETTING(F_SOUNDSETTING, superbass, LANG_SUPERBASS, false, "superbass",
|
|
|
|
set_superbass),
|
2007-02-08 10:28:42 +00:00
|
|
|
#endif
|
2008-05-11 23:13:59 +00:00
|
|
|
|
2007-12-24 22:35:31 +00:00
|
|
|
CHOICE_SETTING(F_SOUNDSETTING, channel_config, LANG_CHANNEL_CONFIGURATION,
|
2008-05-11 23:13:59 +00:00
|
|
|
0,"channels",
|
2011-10-26 18:37:50 +00:00
|
|
|
"stereo,mono,custom,mono left,mono right,karaoke",
|
|
|
|
sound_set_channels, 6,
|
2008-05-11 23:13:59 +00:00
|
|
|
ID2P(LANG_CHANNEL_STEREO), ID2P(LANG_CHANNEL_MONO),
|
|
|
|
ID2P(LANG_CHANNEL_CUSTOM), ID2P(LANG_CHANNEL_LEFT),
|
2011-10-26 18:37:50 +00:00
|
|
|
ID2P(LANG_CHANNEL_RIGHT), ID2P(LANG_CHANNEL_KARAOKE)),
|
2007-12-24 22:35:31 +00:00
|
|
|
SOUND_SETTING(F_SOUNDSETTING, stereo_width, LANG_STEREO_WIDTH,
|
2008-05-11 23:13:59 +00:00
|
|
|
"stereo_width", SOUND_STEREO_WIDTH),
|
2010-05-15 13:09:45 +00:00
|
|
|
#ifdef AUDIOHW_HAVE_DEPTH_3D
|
|
|
|
SOUND_SETTING(0,depth_3d, LANG_DEPTH_3D, "3-d enhancement",
|
|
|
|
SOUND_DEPTH_3D),
|
|
|
|
#endif
|
2013-05-12 19:23:45 +00:00
|
|
|
|
|
|
|
#ifdef AUDIOHW_HAVE_FILTER_ROLL_OFF
|
|
|
|
CHOICE_SETTING(F_SOUNDSETTING, roll_off, LANG_FILTER_ROLL_OFF, 0,
|
2018-06-29 20:09:28 +00:00
|
|
|
#ifndef AUDIOHW_HAVE_SHORT_ROLL_OFF
|
2013-05-12 19:23:45 +00:00
|
|
|
"roll_off", "sharp,slow", sound_set_filter_roll_off,
|
|
|
|
2, ID2P(LANG_FILTER_SHARP), ID2P(LANG_FILTER_SLOW)),
|
2018-06-29 20:09:28 +00:00
|
|
|
#else
|
|
|
|
"roll_off", "sharp,slow,short,bypass", sound_set_filter_roll_off,
|
|
|
|
4, ID2P(LANG_FILTER_SHARP), ID2P(LANG_FILTER_SLOW), ID2P(LANG_FILTER_SHORT), ID2P(LANG_FILTER_BYPASS)),
|
|
|
|
#endif
|
2013-05-12 19:23:45 +00:00
|
|
|
#endif
|
|
|
|
|
2007-01-23 13:40:44 +00:00
|
|
|
/* playback */
|
2007-01-26 05:45:06 +00:00
|
|
|
OFFON_SETTING(0, playlist_shuffle, LANG_SHUFFLE, false, "shuffle", NULL),
|
2008-05-11 23:13:59 +00:00
|
|
|
SYSTEM_SETTING(NVRAM(4), resume_index, -1),
|
2012-12-09 20:04:17 +00:00
|
|
|
SYSTEM_SETTING(NVRAM(4), resume_crc32, -1),
|
2013-07-14 11:59:39 +00:00
|
|
|
SYSTEM_SETTING(NVRAM(4), resume_elapsed, -1),
|
2008-05-11 23:13:59 +00:00
|
|
|
SYSTEM_SETTING(NVRAM(4), resume_offset, -1),
|
2008-12-17 13:45:00 +00:00
|
|
|
CHOICE_SETTING(0, repeat_mode, LANG_REPEAT, REPEAT_OFF, "repeat",
|
2008-05-11 23:13:59 +00:00
|
|
|
"off,all,one,shuffle"
|
2007-02-17 23:07:39 +00:00
|
|
|
#ifdef AB_REPEAT_ENABLE
|
2008-05-11 23:13:59 +00:00
|
|
|
",ab"
|
2007-02-15 07:37:25 +00:00
|
|
|
#endif
|
2008-05-11 23:13:59 +00:00
|
|
|
, NULL,
|
2007-02-17 23:07:39 +00:00
|
|
|
#ifdef AB_REPEAT_ENABLE
|
2008-05-11 23:13:59 +00:00
|
|
|
5,
|
2007-02-15 07:37:25 +00:00
|
|
|
#else
|
2008-05-11 23:13:59 +00:00
|
|
|
4,
|
2007-02-15 07:37:25 +00:00
|
|
|
#endif
|
2008-05-11 23:13:59 +00:00
|
|
|
ID2P(LANG_OFF), ID2P(LANG_ALL), ID2P(LANG_REPEAT_ONE),
|
|
|
|
ID2P(LANG_SHUFFLE)
|
2007-02-17 23:07:39 +00:00
|
|
|
#ifdef AB_REPEAT_ENABLE
|
2008-05-11 23:13:59 +00:00
|
|
|
,ID2P(LANG_REPEAT_AB)
|
2007-02-15 07:37:25 +00:00
|
|
|
#endif
|
2008-05-11 23:13:59 +00:00
|
|
|
), /* CHOICE_SETTING( repeat_mode ) */
|
2013-05-23 17:58:51 +00:00
|
|
|
#ifdef HAVE_PLAY_FREQ
|
2013-07-06 21:14:02 +00:00
|
|
|
STRINGCHOICE_SETTING(0, play_frequency, LANG_FREQUENCY, 0,
|
2013-05-23 17:58:51 +00:00
|
|
|
"playback frequency", "44.1 kHz,48 kHz", NULL, 2,
|
|
|
|
TALK_ID_DECIMAL(441, 1, UNIT_KHZ), TALK_ID(48, UNIT_KHZ)),
|
|
|
|
#endif /* HAVE_PLAY_FREQ */
|
2007-01-23 13:40:44 +00:00
|
|
|
/* LCD */
|
|
|
|
#ifdef HAVE_LCD_CONTRAST
|
2007-02-17 14:02:48 +00:00
|
|
|
/* its easier to leave this one un-macro()ed for the time being */
|
2008-05-11 23:13:59 +00:00
|
|
|
{ F_T_INT|F_DEF_ISFUNC|F_INT_SETTING, &global_settings.contrast,
|
|
|
|
LANG_CONTRAST, FUNCTYPE(lcd_default_contrast), "contrast", NULL , {
|
|
|
|
.int_setting = (struct int_setting[]) {
|
|
|
|
{ lcd_set_contrast, UNIT_INT, MIN_CONTRAST_SETTING,
|
|
|
|
MAX_CONTRAST_SETTING, 1, NULL, NULL }}}},
|
2007-01-23 13:40:44 +00:00
|
|
|
#endif
|
2007-04-12 22:12:13 +00:00
|
|
|
#ifdef HAVE_BACKLIGHT
|
Auto-Ranging Time Formatting For Menus (hh:mm:ss:mss)
Unifies time formatting in settings_list.c allows time format to
display as HH:MM:SS.MSS or any consecutive combination thereof
(hh:mm:ss, mm:ss, mm:ss.mss, ss.mss, hh, mm, ss ,mss)
works in INT and TABLE settings with the addition of flag 'F_TIME_SETTING'
Time is auto-ranged dependent on value
Adds talk_time_intervals to allow time values to be spoken similar to
display format: x Hours, x Minutes, x Seconds, x Milliseconds
Table lookups merged or removed from recording, clip meter and lcd timeout
-String_Choice replaced with TABLE_SETTING or INT_SETTING for these
functions as well, cleaned-up cfg_vals that get saved to cfgfile
RTL Languages ARE supported
Negative values ARE supported
Backlight on/off are now Always and Never to share formatter with LCD
Timeout
Added flag to allow ranged units to be locked to a minimum index
Added flag to allow leading zero to be supressed from the largest unit
merged talk_time_unit() and talk_time_intervals()
optimized time_split()
optimized format_time_auto()
Backlight time-out list same as original
Change-Id: I59027c62d3f2956bd16fdcc1a48b2ac32c084abd
2018-12-18 04:27:55 +00:00
|
|
|
TABLE_SETTING_LIST(F_TIME_SETTING | F_ALLOW_ARBITRARY_VALS,
|
|
|
|
backlight_timeout, LANG_BACKLIGHT,
|
|
|
|
DEFAULT_BACKLIGHT_TIMEOUT, "backlight timeout",
|
|
|
|
off_on, UNIT_SEC, formatter_time_unit_0_is_always,
|
|
|
|
getlang_time_unit_0_is_always, backlight_set_timeout,
|
|
|
|
23, timeout_sec_common),
|
2007-02-18 05:32:06 +00:00
|
|
|
#if CONFIG_CHARGING
|
Auto-Ranging Time Formatting For Menus (hh:mm:ss:mss)
Unifies time formatting in settings_list.c allows time format to
display as HH:MM:SS.MSS or any consecutive combination thereof
(hh:mm:ss, mm:ss, mm:ss.mss, ss.mss, hh, mm, ss ,mss)
works in INT and TABLE settings with the addition of flag 'F_TIME_SETTING'
Time is auto-ranged dependent on value
Adds talk_time_intervals to allow time values to be spoken similar to
display format: x Hours, x Minutes, x Seconds, x Milliseconds
Table lookups merged or removed from recording, clip meter and lcd timeout
-String_Choice replaced with TABLE_SETTING or INT_SETTING for these
functions as well, cleaned-up cfg_vals that get saved to cfgfile
RTL Languages ARE supported
Negative values ARE supported
Backlight on/off are now Always and Never to share formatter with LCD
Timeout
Added flag to allow ranged units to be locked to a minimum index
Added flag to allow leading zero to be supressed from the largest unit
merged talk_time_unit() and talk_time_intervals()
optimized time_split()
optimized format_time_auto()
Backlight time-out list same as original
Change-Id: I59027c62d3f2956bd16fdcc1a48b2ac32c084abd
2018-12-18 04:27:55 +00:00
|
|
|
TABLE_SETTING_LIST(F_TIME_SETTING | F_ALLOW_ARBITRARY_VALS,
|
|
|
|
backlight_timeout_plugged, LANG_BACKLIGHT_ON_WHEN_CHARGING,
|
|
|
|
DEFAULT_BACKLIGHT_TIMEOUT, "backlight timeout plugged",
|
|
|
|
off_on, UNIT_SEC, formatter_time_unit_0_is_always,
|
|
|
|
getlang_time_unit_0_is_always, backlight_set_timeout_plugged,
|
|
|
|
23, timeout_sec_common),
|
2007-01-23 13:40:44 +00:00
|
|
|
#endif
|
2007-04-12 22:12:13 +00:00
|
|
|
#endif /* HAVE_BACKLIGHT */
|
2007-01-23 13:40:44 +00:00
|
|
|
#ifdef HAVE_LCD_BITMAP
|
2007-08-05 19:19:39 +00:00
|
|
|
#ifdef HAVE_LCD_INVERT
|
2007-02-17 14:02:48 +00:00
|
|
|
BOOL_SETTING(0, invert, LANG_INVERT, false ,"invert", off_on,
|
2008-05-11 23:13:59 +00:00
|
|
|
LANG_INVERT_LCD_INVERSE, LANG_NORMAL, lcd_set_invert_display),
|
2007-08-05 19:19:39 +00:00
|
|
|
#endif
|
|
|
|
#ifdef HAVE_LCD_FLIP
|
2008-05-11 23:13:59 +00:00
|
|
|
OFFON_SETTING(0, flip_display, LANG_FLIP_DISPLAY, false, "flip display",
|
|
|
|
NULL),
|
2007-08-05 19:19:39 +00:00
|
|
|
#endif
|
2007-01-23 13:40:44 +00:00
|
|
|
/* display */
|
2008-02-23 08:28:19 +00:00
|
|
|
CHOICE_SETTING(F_TEMPVAR|F_THEMESETTING, cursor_style, LANG_INVERT_CURSOR,
|
2007-09-27 15:42:55 +00:00
|
|
|
#ifdef HAVE_LCD_COLOR
|
2008-05-11 23:13:59 +00:00
|
|
|
3, "selector type",
|
|
|
|
"pointer,bar (inverse),bar (color),bar (gradient)", NULL, 4,
|
|
|
|
ID2P(LANG_INVERT_CURSOR_POINTER),
|
|
|
|
ID2P(LANG_INVERT_CURSOR_BAR),
|
|
|
|
ID2P(LANG_INVERT_CURSOR_COLOR),
|
|
|
|
ID2P(LANG_INVERT_CURSOR_GRADIENT)),
|
2007-09-27 15:42:55 +00:00
|
|
|
#else
|
2008-05-11 23:13:59 +00:00
|
|
|
1, "selector type", "pointer,bar (inverse)", NULL, 2,
|
|
|
|
ID2P(LANG_INVERT_CURSOR_POINTER),
|
|
|
|
ID2P(LANG_INVERT_CURSOR_BAR)),
|
2007-09-27 15:42:55 +00:00
|
|
|
#endif
|
2009-07-05 18:07:58 +00:00
|
|
|
CHOICE_SETTING(F_THEMESETTING|F_TEMPVAR, statusbar,
|
2010-03-06 00:29:46 +00:00
|
|
|
LANG_STATUS_BAR, STATUSBAR_TOP, "statusbar","off,top,bottom",
|
|
|
|
NULL, 3, ID2P(LANG_OFF), ID2P(LANG_STATUSBAR_TOP),
|
|
|
|
ID2P(LANG_STATUSBAR_BOTTOM)),
|
2009-07-05 18:07:58 +00:00
|
|
|
#ifdef HAVE_REMOTE_LCD
|
|
|
|
CHOICE_SETTING(F_THEMESETTING|F_TEMPVAR, remote_statusbar,
|
2010-03-06 00:29:46 +00:00
|
|
|
LANG_REMOTE_STATUSBAR, STATUSBAR_TOP, "remote statusbar","off,top,bottom",
|
|
|
|
NULL, 3, ID2P(LANG_OFF), ID2P(LANG_STATUSBAR_TOP),
|
|
|
|
ID2P(LANG_STATUSBAR_BOTTOM)),
|
2009-07-05 18:07:58 +00:00
|
|
|
#endif
|
2009-08-24 00:22:54 +00:00
|
|
|
CHOICE_SETTING(F_THEMESETTING|F_TEMPVAR, scrollbar,
|
2009-10-05 18:11:41 +00:00
|
|
|
LANG_SCROLL_BAR, SCROLLBAR_LEFT, "scrollbar","off,left,right",
|
|
|
|
NULL, 3, ID2P(LANG_OFF), ID2P(LANG_LEFT), ID2P(LANG_RIGHT)),
|
2009-08-24 00:22:54 +00:00
|
|
|
INT_SETTING(F_THEMESETTING, scrollbar_width, LANG_SCROLLBAR_WIDTH, 6,
|
|
|
|
"scrollbar width",UNIT_INT, 3, MAX(LCD_WIDTH/10,25), 1,
|
|
|
|
NULL, NULL, NULL),
|
2011-10-17 17:38:10 +00:00
|
|
|
#ifdef HAVE_TOUCHSCREEN
|
|
|
|
TABLE_SETTING(F_ALLOW_ARBITRARY_VALS, list_line_padding, LANG_LIST_LINE_PADDING,
|
2011-11-10 12:23:55 +00:00
|
|
|
-1, "list padding", "auto,off", UNIT_PIXEL, list_pad_formatter,
|
2011-10-17 17:38:10 +00:00
|
|
|
list_pad_getlang, NULL, 16,
|
|
|
|
-1,0,2,4,6,8,10,12,16,20,24,28,32,38,44,50),
|
|
|
|
#endif
|
2013-05-06 05:20:40 +00:00
|
|
|
#if LCD_DEPTH > 1
|
|
|
|
TABLE_SETTING(F_ALLOW_ARBITRARY_VALS, list_separator_height, LANG_LIST_SEPARATOR,
|
|
|
|
0, "list separator height", "auto,off", UNIT_PIXEL,
|
|
|
|
list_pad_formatter, list_pad_getlang, NULL, 15,
|
|
|
|
-1,0,1,2,3,4,5,7,9,11,13,16,20,25,30),
|
2014-03-03 15:17:27 +00:00
|
|
|
#ifdef HAVE_LCD_COLOR
|
2013-05-06 05:20:40 +00:00
|
|
|
{F_T_INT|F_RGB|F_THEMESETTING ,&global_settings.list_separator_color,-1,
|
|
|
|
INT(DEFAULT_THEME_SEPARATOR),"list separator color",NULL,UNUSED},
|
|
|
|
#endif
|
2014-03-03 15:17:27 +00:00
|
|
|
#endif
|
2007-01-23 13:40:44 +00:00
|
|
|
#if CONFIG_KEYPAD == RECORDER_PAD
|
2009-08-24 00:22:54 +00:00
|
|
|
OFFON_SETTING(F_THEMESETTING,buttonbar, LANG_BUTTON_BAR ,true,"buttonbar", NULL),
|
2007-01-26 05:45:06 +00:00
|
|
|
#endif
|
2009-08-24 00:22:54 +00:00
|
|
|
CHOICE_SETTING(F_THEMESETTING, volume_type, LANG_VOLUME_DISPLAY, 0,
|
2008-05-11 23:13:59 +00:00
|
|
|
"volume display", graphic_numeric, NULL, 2,
|
|
|
|
ID2P(LANG_DISPLAY_GRAPHIC),
|
|
|
|
ID2P(LANG_DISPLAY_NUMERIC)),
|
2009-08-24 00:22:54 +00:00
|
|
|
CHOICE_SETTING(F_THEMESETTING, battery_display, LANG_BATTERY_DISPLAY, 0,
|
2008-05-11 23:13:59 +00:00
|
|
|
"battery display", graphic_numeric, NULL, 2,
|
|
|
|
ID2P(LANG_DISPLAY_GRAPHIC), ID2P(LANG_DISPLAY_NUMERIC)),
|
2007-02-13 07:50:47 +00:00
|
|
|
CHOICE_SETTING(0, timeformat, LANG_TIMEFORMAT, 0,
|
|
|
|
"time format", "24hour,12hour", NULL, 2,
|
|
|
|
ID2P(LANG_24_HOUR_CLOCK), ID2P(LANG_12_HOUR_CLOCK)),
|
2007-01-23 13:40:44 +00:00
|
|
|
#endif /* HAVE_LCD_BITMAP */
|
2007-01-26 05:45:06 +00:00
|
|
|
OFFON_SETTING(0,show_icons, LANG_SHOW_ICONS ,true,"show icons", NULL),
|
2007-01-23 13:40:44 +00:00
|
|
|
/* system */
|
Auto-Ranging Time Formatting For Menus (hh:mm:ss:mss)
Unifies time formatting in settings_list.c allows time format to
display as HH:MM:SS.MSS or any consecutive combination thereof
(hh:mm:ss, mm:ss, mm:ss.mss, ss.mss, hh, mm, ss ,mss)
works in INT and TABLE settings with the addition of flag 'F_TIME_SETTING'
Time is auto-ranged dependent on value
Adds talk_time_intervals to allow time values to be spoken similar to
display format: x Hours, x Minutes, x Seconds, x Milliseconds
Table lookups merged or removed from recording, clip meter and lcd timeout
-String_Choice replaced with TABLE_SETTING or INT_SETTING for these
functions as well, cleaned-up cfg_vals that get saved to cfgfile
RTL Languages ARE supported
Negative values ARE supported
Backlight on/off are now Always and Never to share formatter with LCD
Timeout
Added flag to allow ranged units to be locked to a minimum index
Added flag to allow leading zero to be supressed from the largest unit
merged talk_time_unit() and talk_time_intervals()
optimized time_split()
optimized format_time_auto()
Backlight time-out list same as original
Change-Id: I59027c62d3f2956bd16fdcc1a48b2ac32c084abd
2018-12-18 04:27:55 +00:00
|
|
|
INT_SETTING(F_TIME_SETTING, poweroff, LANG_POWEROFF_IDLE, 10,
|
|
|
|
"idle poweroff", UNIT_MIN, 0,60,1,
|
|
|
|
formatter_time_unit_0_is_off, getlang_time_unit_0_is_off,
|
|
|
|
set_poweroff_timeout),
|
2008-06-07 09:17:20 +00:00
|
|
|
SYSTEM_SETTING(NVRAM(4), runtime, 0),
|
|
|
|
SYSTEM_SETTING(NVRAM(4), topruntime, 0),
|
Selective Backlight/Advanced Softlock - Selective actions based on context
Selective backlight allows the user to choose actions that will not
enable the backlight when pressed.
Advanced softlock allows user to choose actions that will not be
blocked by screenlock on devices without a hold button.
Both only occur in FM and WPS Contexts.
Update:
Back from the dead
-Cleaned up code, removed unnecessary calls, re-arranged last filter action
timeout conditional to work in case last_filtered_action_tick was never set
-Added entries to the manual
-Fixed back button on some menus not activating backlight
-Made menus more intuitive, no actions selected now changes menu item to off.
-Added talk fuctionality.
-Added option to disable selective backlight while on external power.
-Rewrote backlight and softlock handling code to fix issue with scrollwheels
-Menu changed to have toggle(yes/no) and settings
-Optimized selective actions lookup
-Added option to disable notification of 'buttons locked' while softlocked
-Removed uneeded code, consolidated action lookup to single function
-Fixed incorrect name on selective softlock menu
-Added option to disable touch on touchscreen devices
-Fixed backlight on original screenlock without selective screenlock active
-Added text selection in mask_select for when show_icons is off
-Fixed voice in mask_select to speak if voice is defined instead of spelling
-Added more lang defines (play skip seek)
-Added option to disable unknown keys turning on backlight
-Fixed Conditional argument In wrong place causing players without
backlight to fail to build
-Fixed Disable Unknown blocking detection of context change
-Fixed canceling menu didn't update new settings
-Added Autolock on backlight off
-Removed backlight_on_force from backlight.c, Now sets ignore next to false
and uses backlight_on
-Cleaned up autolock code added strings to lang file
-Fixed issue where rapid presses would bypass softlock
-Removed old softlock code, Cleaned selective actions code
-Changed menu to match existing RB menus
-Fixed Backlight_on_Hold blocked by backlight_ignore_next
-Fixed ignore_next for ipod
-Fixed bug allowing context with softlock to bypass selective backlight
-Changed mask_select to no longer prompt for changes to be saved
-Changed menu names
-Added ignore timeout to allow ipod scroll wheel to work properly and other
players to still work properly, removed some previous code including
ignore_event
-Increased ignore timeout to prevent sd card accesses from interrupting action
code and turning on backlight
-Changed Unknown action to unmapped action in menu, changed handling code
-Removed unneeded logic and variables for handling unfiltered actions
-Reverted unmapped action code to previous functionality
-Added manual entries (thanks JohnB)
-Removed elusive unhandled unicode character from manual, changed formatting slightly
Actions:
Volume,Play,Seek,Skip
Extras:
Disable unmapped actions
Disable selective backlight on external power
Disable touch during softlock on touchscreen devices
Disable softlock notifications (power button still notifies)
Autolock on backlight off
Method:
Adds a function to ignore backlight on next call
If selected action occurs backlight is forced on,
Filter_first_keypress stays intact.
Selective softlock allows selected actions through, bypasses the normal
softlock routine.
ToDo:
DONE
previous commit (#1) has attribution for folder_select.c which mask_select
is based from.
Change-Id: I08132ddcfd64c81751ef23b720f3ec6d68695fe4
2016-11-22 05:21:31 +00:00
|
|
|
INT_SETTING(F_BANFROMQS, max_files_in_playlist,
|
2008-06-07 09:17:20 +00:00
|
|
|
LANG_MAX_FILES_IN_PLAYLIST,
|
2011-02-02 17:43:32 +00:00
|
|
|
#if MEMORYSIZE > 1
|
2008-05-11 23:13:59 +00:00
|
|
|
10000,
|
2007-02-13 07:50:47 +00:00
|
|
|
#else
|
2008-05-11 23:13:59 +00:00
|
|
|
400,
|
2007-02-13 07:50:47 +00:00
|
|
|
#endif
|
2008-05-11 23:13:59 +00:00
|
|
|
"max files in playlist", UNIT_INT, 1000, 32000, 1000,
|
|
|
|
NULL, NULL, NULL),
|
2008-11-03 23:49:18 +00:00
|
|
|
INT_SETTING(F_BANFROMQS, max_files_in_dir, LANG_MAX_FILES_IN_DIR,
|
2011-02-02 17:43:32 +00:00
|
|
|
#if MEMORYSIZE > 1
|
2008-05-11 23:13:59 +00:00
|
|
|
1000,
|
2007-01-23 13:40:44 +00:00
|
|
|
#else
|
2008-05-11 23:13:59 +00:00
|
|
|
200,
|
2007-02-13 07:50:47 +00:00
|
|
|
#endif
|
2008-05-11 23:13:59 +00:00
|
|
|
"max files in dir", UNIT_INT, 50, 10000, 50,
|
|
|
|
NULL, NULL, NULL),
|
2010-09-01 23:49:28 +00:00
|
|
|
/* use this setting for user code even if there's no exchangable battery
|
|
|
|
* support enabled */
|
2012-01-03 23:44:38 +00:00
|
|
|
#if BATTERY_CAPACITY_DEFAULT > 0
|
2010-09-01 23:49:28 +00:00
|
|
|
/* define min/max/inc for this file if there's only one battery */
|
|
|
|
#ifndef BATTERY_CAPACITY_MIN
|
|
|
|
#define BATTERY_CAPACITY_MIN BATTERY_CAPACITY_DEFAULT
|
|
|
|
#define BATTERY_CAPACITY_MAX BATTERY_CAPACITY_DEFAULT
|
|
|
|
#define BATTERY_CAPACITY_INC 0
|
|
|
|
#endif
|
2011-07-19 20:55:59 +00:00
|
|
|
#if defined(IPOD_VIDEO) && !defined(SIMULATOR)
|
2011-07-19 20:48:16 +00:00
|
|
|
/* its easier to leave this one un-macro()ed for the time being */
|
|
|
|
{ F_T_INT|F_DEF_ISFUNC|F_INT_SETTING, &global_settings.battery_capacity,
|
|
|
|
LANG_BATTERY_CAPACITY, FUNCTYPE(battery_default_capacity),
|
|
|
|
"battery capacity", NULL , {
|
|
|
|
.int_setting = (struct int_setting[]) {
|
|
|
|
{ set_battery_capacity, UNIT_MAH, BATTERY_CAPACITY_MIN,
|
|
|
|
BATTERY_CAPACITY_MAX, BATTERY_CAPACITY_INC, NULL, NULL }}}},
|
|
|
|
#else /* IPOD_VIDEO */
|
2008-05-11 23:13:59 +00:00
|
|
|
INT_SETTING(0, battery_capacity, LANG_BATTERY_CAPACITY,
|
|
|
|
BATTERY_CAPACITY_DEFAULT, "battery capacity", UNIT_MAH,
|
|
|
|
BATTERY_CAPACITY_MIN, BATTERY_CAPACITY_MAX,
|
2011-07-19 20:48:16 +00:00
|
|
|
BATTERY_CAPACITY_INC, NULL, NULL, set_battery_capacity),
|
|
|
|
#endif /* IPOD_VIDEO */
|
2007-02-13 07:50:47 +00:00
|
|
|
#endif
|
2007-02-18 05:32:06 +00:00
|
|
|
#if CONFIG_CHARGING
|
2007-01-26 05:45:06 +00:00
|
|
|
OFFON_SETTING(NVRAM(1), car_adapter_mode,
|
2008-05-11 23:13:59 +00:00
|
|
|
LANG_CAR_ADAPTER_MODE, false, "car adapter mode", NULL),
|
2019-01-02 02:05:13 +00:00
|
|
|
INT_SETTING_NOWRAP(0, car_adapter_mode_delay, LANG_CAR_ADAPTER_MODE_DELAY,
|
|
|
|
5, "delay before resume", UNIT_SEC, 5, 30, 5,
|
|
|
|
NULL, NULL, NULL),
|
2008-04-20 18:28:25 +00:00
|
|
|
#endif
|
2008-12-25 01:46:16 +00:00
|
|
|
#ifdef IPOD_ACCESSORY_PROTOCOL
|
|
|
|
CHOICE_SETTING(0, serial_bitrate, LANG_SERIAL_BITRATE, 0, "serial bitrate",
|
|
|
|
"auto,9600,19200,38400,57600", iap_bitrate_set, 5, ID2P(LANG_SERIAL_BITRATE_AUTO),
|
2009-03-24 21:55:05 +00:00
|
|
|
ID2P(LANG_SERIAL_BITRATE_9600),ID2P(LANG_SERIAL_BITRATE_19200),
|
|
|
|
ID2P(LANG_SERIAL_BITRATE_38400),ID2P(LANG_SERIAL_BITRATE_57600)),
|
2008-12-25 01:46:16 +00:00
|
|
|
#endif
|
2008-04-20 18:28:25 +00:00
|
|
|
#ifdef HAVE_ACCESSORY_SUPPLY
|
2008-05-11 23:13:59 +00:00
|
|
|
OFFON_SETTING(0, accessory_supply, LANG_ACCESSORY_SUPPLY,
|
|
|
|
true, "accessory power supply", accessory_supply_set),
|
2010-03-20 15:02:29 +00:00
|
|
|
#endif
|
|
|
|
#ifdef HAVE_LINEOUT_POWEROFF
|
|
|
|
OFFON_SETTING(0, lineout_active, LANG_LINEOUT_ONOFF,
|
|
|
|
true, "lineout", lineout_set),
|
2007-01-23 13:40:44 +00:00
|
|
|
#endif
|
|
|
|
/* tuner */
|
2007-02-18 08:46:12 +00:00
|
|
|
#if CONFIG_TUNER
|
2007-01-26 05:45:06 +00:00
|
|
|
OFFON_SETTING(0,fm_force_mono, LANG_FM_MONO_MODE,
|
2008-05-11 23:13:59 +00:00
|
|
|
false, "force fm mono", toggle_mono_mode),
|
|
|
|
SYSTEM_SETTING(NVRAM(4),last_frequency,0),
|
2007-01-23 13:40:44 +00:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#if BATTERY_TYPES_COUNT > 1
|
2008-05-11 23:13:59 +00:00
|
|
|
CHOICE_SETTING(0, battery_type, LANG_BATTERY_TYPE, 0, "battery type",
|
|
|
|
"alkaline,nimh", NULL, 2, ID2P(LANG_BATTERY_TYPE_ALKALINE),
|
|
|
|
ID2P(LANG_BATTERY_TYPE_NIMH)),
|
2007-01-23 13:40:44 +00:00
|
|
|
#endif
|
|
|
|
#ifdef HAVE_REMOTE_LCD
|
|
|
|
/* remote lcd */
|
2008-05-11 23:13:59 +00:00
|
|
|
INT_SETTING(0, remote_contrast, LANG_CONTRAST,
|
|
|
|
DEFAULT_REMOTE_CONTRAST_SETTING, "remote contrast", UNIT_INT,
|
|
|
|
MIN_REMOTE_CONTRAST_SETTING, MAX_REMOTE_CONTRAST_SETTING, 1,
|
|
|
|
NULL, NULL, lcd_remote_set_contrast),
|
2007-02-17 14:02:48 +00:00
|
|
|
BOOL_SETTING(0, remote_invert, LANG_INVERT, false ,"remote invert", off_on,
|
2008-05-11 23:13:59 +00:00
|
|
|
LANG_INVERT_LCD_INVERSE, LANG_NORMAL,
|
|
|
|
lcd_remote_set_invert_display),
|
2007-01-26 05:45:06 +00:00
|
|
|
OFFON_SETTING(0,remote_flip_display, LANG_FLIP_DISPLAY,
|
2008-05-11 23:13:59 +00:00
|
|
|
false,"remote flip display", NULL),
|
Auto-Ranging Time Formatting For Menus (hh:mm:ss:mss)
Unifies time formatting in settings_list.c allows time format to
display as HH:MM:SS.MSS or any consecutive combination thereof
(hh:mm:ss, mm:ss, mm:ss.mss, ss.mss, hh, mm, ss ,mss)
works in INT and TABLE settings with the addition of flag 'F_TIME_SETTING'
Time is auto-ranged dependent on value
Adds talk_time_intervals to allow time values to be spoken similar to
display format: x Hours, x Minutes, x Seconds, x Milliseconds
Table lookups merged or removed from recording, clip meter and lcd timeout
-String_Choice replaced with TABLE_SETTING or INT_SETTING for these
functions as well, cleaned-up cfg_vals that get saved to cfgfile
RTL Languages ARE supported
Negative values ARE supported
Backlight on/off are now Always and Never to share formatter with LCD
Timeout
Added flag to allow ranged units to be locked to a minimum index
Added flag to allow leading zero to be supressed from the largest unit
merged talk_time_unit() and talk_time_intervals()
optimized time_split()
optimized format_time_auto()
Backlight time-out list same as original
Change-Id: I59027c62d3f2956bd16fdcc1a48b2ac32c084abd
2018-12-18 04:27:55 +00:00
|
|
|
TABLE_SETTING_LIST(F_ALLOW_ARBITRARY_VALS, remote_backlight_timeout,
|
|
|
|
LANG_BACKLIGHT, 5,
|
|
|
|
"remote backlight timeout", off_on, UNIT_SEC,
|
|
|
|
formatter_time_unit_0_is_always, getlang_time_unit_0_is_always,
|
|
|
|
remote_backlight_set_timeout, 23, timeout_sec_common),
|
2007-02-18 05:32:06 +00:00
|
|
|
#if CONFIG_CHARGING
|
Auto-Ranging Time Formatting For Menus (hh:mm:ss:mss)
Unifies time formatting in settings_list.c allows time format to
display as HH:MM:SS.MSS or any consecutive combination thereof
(hh:mm:ss, mm:ss, mm:ss.mss, ss.mss, hh, mm, ss ,mss)
works in INT and TABLE settings with the addition of flag 'F_TIME_SETTING'
Time is auto-ranged dependent on value
Adds talk_time_intervals to allow time values to be spoken similar to
display format: x Hours, x Minutes, x Seconds, x Milliseconds
Table lookups merged or removed from recording, clip meter and lcd timeout
-String_Choice replaced with TABLE_SETTING or INT_SETTING for these
functions as well, cleaned-up cfg_vals that get saved to cfgfile
RTL Languages ARE supported
Negative values ARE supported
Backlight on/off are now Always and Never to share formatter with LCD
Timeout
Added flag to allow ranged units to be locked to a minimum index
Added flag to allow leading zero to be supressed from the largest unit
merged talk_time_unit() and talk_time_intervals()
optimized time_split()
optimized format_time_auto()
Backlight time-out list same as original
Change-Id: I59027c62d3f2956bd16fdcc1a48b2ac32c084abd
2018-12-18 04:27:55 +00:00
|
|
|
TABLE_SETTING_LIST(F_ALLOW_ARBITRARY_VALS, remote_backlight_timeout_plugged,
|
2007-11-30 10:08:28 +00:00
|
|
|
LANG_BACKLIGHT_ON_WHEN_CHARGING, 10,
|
|
|
|
"remote backlight timeout plugged", off_on, UNIT_SEC,
|
Auto-Ranging Time Formatting For Menus (hh:mm:ss:mss)
Unifies time formatting in settings_list.c allows time format to
display as HH:MM:SS.MSS or any consecutive combination thereof
(hh:mm:ss, mm:ss, mm:ss.mss, ss.mss, hh, mm, ss ,mss)
works in INT and TABLE settings with the addition of flag 'F_TIME_SETTING'
Time is auto-ranged dependent on value
Adds talk_time_intervals to allow time values to be spoken similar to
display format: x Hours, x Minutes, x Seconds, x Milliseconds
Table lookups merged or removed from recording, clip meter and lcd timeout
-String_Choice replaced with TABLE_SETTING or INT_SETTING for these
functions as well, cleaned-up cfg_vals that get saved to cfgfile
RTL Languages ARE supported
Negative values ARE supported
Backlight on/off are now Always and Never to share formatter with LCD
Timeout
Added flag to allow ranged units to be locked to a minimum index
Added flag to allow leading zero to be supressed from the largest unit
merged talk_time_unit() and talk_time_intervals()
optimized time_split()
optimized format_time_auto()
Backlight time-out list same as original
Change-Id: I59027c62d3f2956bd16fdcc1a48b2ac32c084abd
2018-12-18 04:27:55 +00:00
|
|
|
formatter_time_unit_0_is_always, getlang_time_unit_0_is_always,
|
|
|
|
remote_backlight_set_timeout_plugged, 23, timeout_sec_common),
|
2007-01-23 13:40:44 +00:00
|
|
|
#endif
|
|
|
|
#ifdef HAVE_REMOTE_LCD_TICKING
|
2008-05-11 23:13:59 +00:00
|
|
|
OFFON_SETTING(0, remote_reduce_ticking, LANG_REDUCE_TICKING,
|
|
|
|
false,"remote reduce ticking", NULL),
|
2007-01-23 13:40:44 +00:00
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
|
2007-04-12 22:12:13 +00:00
|
|
|
#ifdef HAVE_BACKLIGHT
|
2008-05-11 23:13:59 +00:00
|
|
|
OFFON_SETTING(0, bl_filter_first_keypress,
|
|
|
|
LANG_BACKLIGHT_FILTER_FIRST_KEYPRESS, false,
|
|
|
|
"backlight filters first keypress", NULL),
|
2007-01-23 13:40:44 +00:00
|
|
|
#ifdef HAVE_REMOTE_LCD
|
2008-05-11 23:13:59 +00:00
|
|
|
OFFON_SETTING(0, remote_bl_filter_first_keypress,
|
|
|
|
LANG_BACKLIGHT_FILTER_FIRST_KEYPRESS, false,
|
|
|
|
"backlight filters first remote keypress", NULL),
|
2007-01-23 13:40:44 +00:00
|
|
|
#endif
|
2007-04-12 22:12:13 +00:00
|
|
|
#endif /* HAVE_BACKLIGHT */
|
2007-01-23 13:40:44 +00:00
|
|
|
|
|
|
|
/** End of old RTC config block **/
|
|
|
|
|
Selective Backlight/Advanced Softlock - Selective actions based on context
Selective backlight allows the user to choose actions that will not
enable the backlight when pressed.
Advanced softlock allows user to choose actions that will not be
blocked by screenlock on devices without a hold button.
Both only occur in FM and WPS Contexts.
Update:
Back from the dead
-Cleaned up code, removed unnecessary calls, re-arranged last filter action
timeout conditional to work in case last_filtered_action_tick was never set
-Added entries to the manual
-Fixed back button on some menus not activating backlight
-Made menus more intuitive, no actions selected now changes menu item to off.
-Added talk fuctionality.
-Added option to disable selective backlight while on external power.
-Rewrote backlight and softlock handling code to fix issue with scrollwheels
-Menu changed to have toggle(yes/no) and settings
-Optimized selective actions lookup
-Added option to disable notification of 'buttons locked' while softlocked
-Removed uneeded code, consolidated action lookup to single function
-Fixed incorrect name on selective softlock menu
-Added option to disable touch on touchscreen devices
-Fixed backlight on original screenlock without selective screenlock active
-Added text selection in mask_select for when show_icons is off
-Fixed voice in mask_select to speak if voice is defined instead of spelling
-Added more lang defines (play skip seek)
-Added option to disable unknown keys turning on backlight
-Fixed Conditional argument In wrong place causing players without
backlight to fail to build
-Fixed Disable Unknown blocking detection of context change
-Fixed canceling menu didn't update new settings
-Added Autolock on backlight off
-Removed backlight_on_force from backlight.c, Now sets ignore next to false
and uses backlight_on
-Cleaned up autolock code added strings to lang file
-Fixed issue where rapid presses would bypass softlock
-Removed old softlock code, Cleaned selective actions code
-Changed menu to match existing RB menus
-Fixed Backlight_on_Hold blocked by backlight_ignore_next
-Fixed ignore_next for ipod
-Fixed bug allowing context with softlock to bypass selective backlight
-Changed mask_select to no longer prompt for changes to be saved
-Changed menu names
-Added ignore timeout to allow ipod scroll wheel to work properly and other
players to still work properly, removed some previous code including
ignore_event
-Increased ignore timeout to prevent sd card accesses from interrupting action
code and turning on backlight
-Changed Unknown action to unmapped action in menu, changed handling code
-Removed unneeded logic and variables for handling unfiltered actions
-Reverted unmapped action code to previous functionality
-Added manual entries (thanks JohnB)
-Removed elusive unhandled unicode character from manual, changed formatting slightly
Actions:
Volume,Play,Seek,Skip
Extras:
Disable unmapped actions
Disable selective backlight on external power
Disable touch during softlock on touchscreen devices
Disable softlock notifications (power button still notifies)
Autolock on backlight off
Method:
Adds a function to ignore backlight on next call
If selected action occurs backlight is forced on,
Filter_first_keypress stays intact.
Selective softlock allows selected actions through, bypasses the normal
softlock routine.
ToDo:
DONE
previous commit (#1) has attribution for folder_select.c which mask_select
is based from.
Change-Id: I08132ddcfd64c81751ef23b720f3ec6d68695fe4
2016-11-22 05:21:31 +00:00
|
|
|
#ifndef HAS_BUTTON_HOLD
|
2018-11-06 04:53:42 +00:00
|
|
|
OFFON_SETTING(F_BANFROMQS, bt_selective_softlock_actions,
|
Selective Backlight/Advanced Softlock - Selective actions based on context
Selective backlight allows the user to choose actions that will not
enable the backlight when pressed.
Advanced softlock allows user to choose actions that will not be
blocked by screenlock on devices without a hold button.
Both only occur in FM and WPS Contexts.
Update:
Back from the dead
-Cleaned up code, removed unnecessary calls, re-arranged last filter action
timeout conditional to work in case last_filtered_action_tick was never set
-Added entries to the manual
-Fixed back button on some menus not activating backlight
-Made menus more intuitive, no actions selected now changes menu item to off.
-Added talk fuctionality.
-Added option to disable selective backlight while on external power.
-Rewrote backlight and softlock handling code to fix issue with scrollwheels
-Menu changed to have toggle(yes/no) and settings
-Optimized selective actions lookup
-Added option to disable notification of 'buttons locked' while softlocked
-Removed uneeded code, consolidated action lookup to single function
-Fixed incorrect name on selective softlock menu
-Added option to disable touch on touchscreen devices
-Fixed backlight on original screenlock without selective screenlock active
-Added text selection in mask_select for when show_icons is off
-Fixed voice in mask_select to speak if voice is defined instead of spelling
-Added more lang defines (play skip seek)
-Added option to disable unknown keys turning on backlight
-Fixed Conditional argument In wrong place causing players without
backlight to fail to build
-Fixed Disable Unknown blocking detection of context change
-Fixed canceling menu didn't update new settings
-Added Autolock on backlight off
-Removed backlight_on_force from backlight.c, Now sets ignore next to false
and uses backlight_on
-Cleaned up autolock code added strings to lang file
-Fixed issue where rapid presses would bypass softlock
-Removed old softlock code, Cleaned selective actions code
-Changed menu to match existing RB menus
-Fixed Backlight_on_Hold blocked by backlight_ignore_next
-Fixed ignore_next for ipod
-Fixed bug allowing context with softlock to bypass selective backlight
-Changed mask_select to no longer prompt for changes to be saved
-Changed menu names
-Added ignore timeout to allow ipod scroll wheel to work properly and other
players to still work properly, removed some previous code including
ignore_event
-Increased ignore timeout to prevent sd card accesses from interrupting action
code and turning on backlight
-Changed Unknown action to unmapped action in menu, changed handling code
-Removed unneeded logic and variables for handling unfiltered actions
-Reverted unmapped action code to previous functionality
-Added manual entries (thanks JohnB)
-Removed elusive unhandled unicode character from manual, changed formatting slightly
Actions:
Volume,Play,Seek,Skip
Extras:
Disable unmapped actions
Disable selective backlight on external power
Disable touch during softlock on touchscreen devices
Disable softlock notifications (power button still notifies)
Autolock on backlight off
Method:
Adds a function to ignore backlight on next call
If selected action occurs backlight is forced on,
Filter_first_keypress stays intact.
Selective softlock allows selected actions through, bypasses the normal
softlock routine.
ToDo:
DONE
previous commit (#1) has attribution for folder_select.c which mask_select
is based from.
Change-Id: I08132ddcfd64c81751ef23b720f3ec6d68695fe4
2016-11-22 05:21:31 +00:00
|
|
|
LANG_ACTION_ENABLED, false,
|
|
|
|
"No Screen Lock For Selected Actions", NULL),
|
2018-11-06 04:53:42 +00:00
|
|
|
INT_SETTING(F_BANFROMQS, bt_selective_softlock_actions_mask,
|
|
|
|
LANG_SOFTLOCK_SELECTIVE,
|
Selective Backlight/Advanced Softlock - Selective actions based on context
Selective backlight allows the user to choose actions that will not
enable the backlight when pressed.
Advanced softlock allows user to choose actions that will not be
blocked by screenlock on devices without a hold button.
Both only occur in FM and WPS Contexts.
Update:
Back from the dead
-Cleaned up code, removed unnecessary calls, re-arranged last filter action
timeout conditional to work in case last_filtered_action_tick was never set
-Added entries to the manual
-Fixed back button on some menus not activating backlight
-Made menus more intuitive, no actions selected now changes menu item to off.
-Added talk fuctionality.
-Added option to disable selective backlight while on external power.
-Rewrote backlight and softlock handling code to fix issue with scrollwheels
-Menu changed to have toggle(yes/no) and settings
-Optimized selective actions lookup
-Added option to disable notification of 'buttons locked' while softlocked
-Removed uneeded code, consolidated action lookup to single function
-Fixed incorrect name on selective softlock menu
-Added option to disable touch on touchscreen devices
-Fixed backlight on original screenlock without selective screenlock active
-Added text selection in mask_select for when show_icons is off
-Fixed voice in mask_select to speak if voice is defined instead of spelling
-Added more lang defines (play skip seek)
-Added option to disable unknown keys turning on backlight
-Fixed Conditional argument In wrong place causing players without
backlight to fail to build
-Fixed Disable Unknown blocking detection of context change
-Fixed canceling menu didn't update new settings
-Added Autolock on backlight off
-Removed backlight_on_force from backlight.c, Now sets ignore next to false
and uses backlight_on
-Cleaned up autolock code added strings to lang file
-Fixed issue where rapid presses would bypass softlock
-Removed old softlock code, Cleaned selective actions code
-Changed menu to match existing RB menus
-Fixed Backlight_on_Hold blocked by backlight_ignore_next
-Fixed ignore_next for ipod
-Fixed bug allowing context with softlock to bypass selective backlight
-Changed mask_select to no longer prompt for changes to be saved
-Changed menu names
-Added ignore timeout to allow ipod scroll wheel to work properly and other
players to still work properly, removed some previous code including
ignore_event
-Increased ignore timeout to prevent sd card accesses from interrupting action
code and turning on backlight
-Changed Unknown action to unmapped action in menu, changed handling code
-Removed unneeded logic and variables for handling unfiltered actions
-Reverted unmapped action code to previous functionality
-Added manual entries (thanks JohnB)
-Removed elusive unhandled unicode character from manual, changed formatting slightly
Actions:
Volume,Play,Seek,Skip
Extras:
Disable unmapped actions
Disable selective backlight on external power
Disable touch during softlock on touchscreen devices
Disable softlock notifications (power button still notifies)
Autolock on backlight off
Method:
Adds a function to ignore backlight on next call
If selected action occurs backlight is forced on,
Filter_first_keypress stays intact.
Selective softlock allows selected actions through, bypasses the normal
softlock routine.
ToDo:
DONE
previous commit (#1) has attribution for folder_select.c which mask_select
is based from.
Change-Id: I08132ddcfd64c81751ef23b720f3ec6d68695fe4
2016-11-22 05:21:31 +00:00
|
|
|
0, "Selective Screen Lock Actions", UNIT_INT,
|
|
|
|
0, 2048,2, NULL, NULL, NULL),
|
|
|
|
#endif /* !HAS_BUTTON_HOLD */
|
|
|
|
|
2007-04-12 22:12:13 +00:00
|
|
|
#ifdef HAVE_BACKLIGHT
|
2008-05-11 23:13:59 +00:00
|
|
|
OFFON_SETTING(0, caption_backlight, LANG_CAPTION_BACKLIGHT,
|
|
|
|
false, "caption backlight", NULL),
|
Selective Backlight/Advanced Softlock - Selective actions based on context
Selective backlight allows the user to choose actions that will not
enable the backlight when pressed.
Advanced softlock allows user to choose actions that will not be
blocked by screenlock on devices without a hold button.
Both only occur in FM and WPS Contexts.
Update:
Back from the dead
-Cleaned up code, removed unnecessary calls, re-arranged last filter action
timeout conditional to work in case last_filtered_action_tick was never set
-Added entries to the manual
-Fixed back button on some menus not activating backlight
-Made menus more intuitive, no actions selected now changes menu item to off.
-Added talk fuctionality.
-Added option to disable selective backlight while on external power.
-Rewrote backlight and softlock handling code to fix issue with scrollwheels
-Menu changed to have toggle(yes/no) and settings
-Optimized selective actions lookup
-Added option to disable notification of 'buttons locked' while softlocked
-Removed uneeded code, consolidated action lookup to single function
-Fixed incorrect name on selective softlock menu
-Added option to disable touch on touchscreen devices
-Fixed backlight on original screenlock without selective screenlock active
-Added text selection in mask_select for when show_icons is off
-Fixed voice in mask_select to speak if voice is defined instead of spelling
-Added more lang defines (play skip seek)
-Added option to disable unknown keys turning on backlight
-Fixed Conditional argument In wrong place causing players without
backlight to fail to build
-Fixed Disable Unknown blocking detection of context change
-Fixed canceling menu didn't update new settings
-Added Autolock on backlight off
-Removed backlight_on_force from backlight.c, Now sets ignore next to false
and uses backlight_on
-Cleaned up autolock code added strings to lang file
-Fixed issue where rapid presses would bypass softlock
-Removed old softlock code, Cleaned selective actions code
-Changed menu to match existing RB menus
-Fixed Backlight_on_Hold blocked by backlight_ignore_next
-Fixed ignore_next for ipod
-Fixed bug allowing context with softlock to bypass selective backlight
-Changed mask_select to no longer prompt for changes to be saved
-Changed menu names
-Added ignore timeout to allow ipod scroll wheel to work properly and other
players to still work properly, removed some previous code including
ignore_event
-Increased ignore timeout to prevent sd card accesses from interrupting action
code and turning on backlight
-Changed Unknown action to unmapped action in menu, changed handling code
-Removed unneeded logic and variables for handling unfiltered actions
-Reverted unmapped action code to previous functionality
-Added manual entries (thanks JohnB)
-Removed elusive unhandled unicode character from manual, changed formatting slightly
Actions:
Volume,Play,Seek,Skip
Extras:
Disable unmapped actions
Disable selective backlight on external power
Disable touch during softlock on touchscreen devices
Disable softlock notifications (power button still notifies)
Autolock on backlight off
Method:
Adds a function to ignore backlight on next call
If selected action occurs backlight is forced on,
Filter_first_keypress stays intact.
Selective softlock allows selected actions through, bypasses the normal
softlock routine.
ToDo:
DONE
previous commit (#1) has attribution for folder_select.c which mask_select
is based from.
Change-Id: I08132ddcfd64c81751ef23b720f3ec6d68695fe4
2016-11-22 05:21:31 +00:00
|
|
|
|
2018-11-06 04:53:42 +00:00
|
|
|
OFFON_SETTING(F_BANFROMQS, bl_selective_actions,
|
Selective Backlight/Advanced Softlock - Selective actions based on context
Selective backlight allows the user to choose actions that will not
enable the backlight when pressed.
Advanced softlock allows user to choose actions that will not be
blocked by screenlock on devices without a hold button.
Both only occur in FM and WPS Contexts.
Update:
Back from the dead
-Cleaned up code, removed unnecessary calls, re-arranged last filter action
timeout conditional to work in case last_filtered_action_tick was never set
-Added entries to the manual
-Fixed back button on some menus not activating backlight
-Made menus more intuitive, no actions selected now changes menu item to off.
-Added talk fuctionality.
-Added option to disable selective backlight while on external power.
-Rewrote backlight and softlock handling code to fix issue with scrollwheels
-Menu changed to have toggle(yes/no) and settings
-Optimized selective actions lookup
-Added option to disable notification of 'buttons locked' while softlocked
-Removed uneeded code, consolidated action lookup to single function
-Fixed incorrect name on selective softlock menu
-Added option to disable touch on touchscreen devices
-Fixed backlight on original screenlock without selective screenlock active
-Added text selection in mask_select for when show_icons is off
-Fixed voice in mask_select to speak if voice is defined instead of spelling
-Added more lang defines (play skip seek)
-Added option to disable unknown keys turning on backlight
-Fixed Conditional argument In wrong place causing players without
backlight to fail to build
-Fixed Disable Unknown blocking detection of context change
-Fixed canceling menu didn't update new settings
-Added Autolock on backlight off
-Removed backlight_on_force from backlight.c, Now sets ignore next to false
and uses backlight_on
-Cleaned up autolock code added strings to lang file
-Fixed issue where rapid presses would bypass softlock
-Removed old softlock code, Cleaned selective actions code
-Changed menu to match existing RB menus
-Fixed Backlight_on_Hold blocked by backlight_ignore_next
-Fixed ignore_next for ipod
-Fixed bug allowing context with softlock to bypass selective backlight
-Changed mask_select to no longer prompt for changes to be saved
-Changed menu names
-Added ignore timeout to allow ipod scroll wheel to work properly and other
players to still work properly, removed some previous code including
ignore_event
-Increased ignore timeout to prevent sd card accesses from interrupting action
code and turning on backlight
-Changed Unknown action to unmapped action in menu, changed handling code
-Removed unneeded logic and variables for handling unfiltered actions
-Reverted unmapped action code to previous functionality
-Added manual entries (thanks JohnB)
-Removed elusive unhandled unicode character from manual, changed formatting slightly
Actions:
Volume,Play,Seek,Skip
Extras:
Disable unmapped actions
Disable selective backlight on external power
Disable touch during softlock on touchscreen devices
Disable softlock notifications (power button still notifies)
Autolock on backlight off
Method:
Adds a function to ignore backlight on next call
If selected action occurs backlight is forced on,
Filter_first_keypress stays intact.
Selective softlock allows selected actions through, bypasses the normal
softlock routine.
ToDo:
DONE
previous commit (#1) has attribution for folder_select.c which mask_select
is based from.
Change-Id: I08132ddcfd64c81751ef23b720f3ec6d68695fe4
2016-11-22 05:21:31 +00:00
|
|
|
LANG_ACTION_ENABLED, false,
|
|
|
|
"No Backlight On Selected Actions", NULL),
|
|
|
|
|
2018-11-06 04:53:42 +00:00
|
|
|
INT_SETTING(F_BANFROMQS, bl_selective_actions_mask,
|
|
|
|
LANG_BACKLIGHT_SELECTIVE,
|
Selective Backlight/Advanced Softlock - Selective actions based on context
Selective backlight allows the user to choose actions that will not
enable the backlight when pressed.
Advanced softlock allows user to choose actions that will not be
blocked by screenlock on devices without a hold button.
Both only occur in FM and WPS Contexts.
Update:
Back from the dead
-Cleaned up code, removed unnecessary calls, re-arranged last filter action
timeout conditional to work in case last_filtered_action_tick was never set
-Added entries to the manual
-Fixed back button on some menus not activating backlight
-Made menus more intuitive, no actions selected now changes menu item to off.
-Added talk fuctionality.
-Added option to disable selective backlight while on external power.
-Rewrote backlight and softlock handling code to fix issue with scrollwheels
-Menu changed to have toggle(yes/no) and settings
-Optimized selective actions lookup
-Added option to disable notification of 'buttons locked' while softlocked
-Removed uneeded code, consolidated action lookup to single function
-Fixed incorrect name on selective softlock menu
-Added option to disable touch on touchscreen devices
-Fixed backlight on original screenlock without selective screenlock active
-Added text selection in mask_select for when show_icons is off
-Fixed voice in mask_select to speak if voice is defined instead of spelling
-Added more lang defines (play skip seek)
-Added option to disable unknown keys turning on backlight
-Fixed Conditional argument In wrong place causing players without
backlight to fail to build
-Fixed Disable Unknown blocking detection of context change
-Fixed canceling menu didn't update new settings
-Added Autolock on backlight off
-Removed backlight_on_force from backlight.c, Now sets ignore next to false
and uses backlight_on
-Cleaned up autolock code added strings to lang file
-Fixed issue where rapid presses would bypass softlock
-Removed old softlock code, Cleaned selective actions code
-Changed menu to match existing RB menus
-Fixed Backlight_on_Hold blocked by backlight_ignore_next
-Fixed ignore_next for ipod
-Fixed bug allowing context with softlock to bypass selective backlight
-Changed mask_select to no longer prompt for changes to be saved
-Changed menu names
-Added ignore timeout to allow ipod scroll wheel to work properly and other
players to still work properly, removed some previous code including
ignore_event
-Increased ignore timeout to prevent sd card accesses from interrupting action
code and turning on backlight
-Changed Unknown action to unmapped action in menu, changed handling code
-Removed unneeded logic and variables for handling unfiltered actions
-Reverted unmapped action code to previous functionality
-Added manual entries (thanks JohnB)
-Removed elusive unhandled unicode character from manual, changed formatting slightly
Actions:
Volume,Play,Seek,Skip
Extras:
Disable unmapped actions
Disable selective backlight on external power
Disable touch during softlock on touchscreen devices
Disable softlock notifications (power button still notifies)
Autolock on backlight off
Method:
Adds a function to ignore backlight on next call
If selected action occurs backlight is forced on,
Filter_first_keypress stays intact.
Selective softlock allows selected actions through, bypasses the normal
softlock routine.
ToDo:
DONE
previous commit (#1) has attribution for folder_select.c which mask_select
is based from.
Change-Id: I08132ddcfd64c81751ef23b720f3ec6d68695fe4
2016-11-22 05:21:31 +00:00
|
|
|
0, "Selective Backlight Actions", UNIT_INT,
|
|
|
|
0, 2048,2, NULL, NULL, NULL),
|
2007-01-23 13:40:44 +00:00
|
|
|
#ifdef HAVE_REMOTE_LCD
|
2008-05-11 23:13:59 +00:00
|
|
|
OFFON_SETTING(0, remote_caption_backlight, LANG_CAPTION_BACKLIGHT,
|
|
|
|
false, "remote caption backlight", NULL),
|
2007-01-23 13:40:44 +00:00
|
|
|
#endif
|
|
|
|
#ifdef HAVE_BACKLIGHT_BRIGHTNESS
|
2008-05-11 23:13:59 +00:00
|
|
|
INT_SETTING(F_NO_WRAP, brightness, LANG_BRIGHTNESS,
|
|
|
|
DEFAULT_BRIGHTNESS_SETTING, "brightness",UNIT_INT,
|
|
|
|
MIN_BRIGHTNESS_SETTING, MAX_BRIGHTNESS_SETTING, 1,
|
|
|
|
NULL, NULL, backlight_set_brightness),
|
2007-01-23 13:40:44 +00:00
|
|
|
#endif
|
|
|
|
/* backlight fading */
|
2009-01-26 23:21:49 +00:00
|
|
|
#if defined(HAVE_BACKLIGHT_FADING_INT_SETTING)
|
Auto-Ranging Time Formatting For Menus (hh:mm:ss:mss)
Unifies time formatting in settings_list.c allows time format to
display as HH:MM:SS.MSS or any consecutive combination thereof
(hh:mm:ss, mm:ss, mm:ss.mss, ss.mss, hh, mm, ss ,mss)
works in INT and TABLE settings with the addition of flag 'F_TIME_SETTING'
Time is auto-ranged dependent on value
Adds talk_time_intervals to allow time values to be spoken similar to
display format: x Hours, x Minutes, x Seconds, x Milliseconds
Table lookups merged or removed from recording, clip meter and lcd timeout
-String_Choice replaced with TABLE_SETTING or INT_SETTING for these
functions as well, cleaned-up cfg_vals that get saved to cfgfile
RTL Languages ARE supported
Negative values ARE supported
Backlight on/off are now Always and Never to share formatter with LCD
Timeout
Added flag to allow ranged units to be locked to a minimum index
Added flag to allow leading zero to be supressed from the largest unit
merged talk_time_unit() and talk_time_intervals()
optimized time_split()
optimized format_time_auto()
Backlight time-out list same as original
Change-Id: I59027c62d3f2956bd16fdcc1a48b2ac32c084abd
2018-12-18 04:27:55 +00:00
|
|
|
TABLE_SETTING_LIST(F_TIME_SETTING | F_ALLOW_ARBITRARY_VALS, backlight_fade_in,
|
2007-11-26 23:10:20 +00:00
|
|
|
LANG_BACKLIGHT_FADE_IN, 300, "backlight fade in", "off",
|
2018-12-22 19:53:00 +00:00
|
|
|
UNIT_MS, formatter_time_unit_0_is_off, getlang_time_unit_0_is_off,
|
Auto-Ranging Time Formatting For Menus (hh:mm:ss:mss)
Unifies time formatting in settings_list.c allows time format to
display as HH:MM:SS.MSS or any consecutive combination thereof
(hh:mm:ss, mm:ss, mm:ss.mss, ss.mss, hh, mm, ss ,mss)
works in INT and TABLE settings with the addition of flag 'F_TIME_SETTING'
Time is auto-ranged dependent on value
Adds talk_time_intervals to allow time values to be spoken similar to
display format: x Hours, x Minutes, x Seconds, x Milliseconds
Table lookups merged or removed from recording, clip meter and lcd timeout
-String_Choice replaced with TABLE_SETTING or INT_SETTING for these
functions as well, cleaned-up cfg_vals that get saved to cfgfile
RTL Languages ARE supported
Negative values ARE supported
Backlight on/off are now Always and Never to share formatter with LCD
Timeout
Added flag to allow ranged units to be locked to a minimum index
Added flag to allow leading zero to be supressed from the largest unit
merged talk_time_unit() and talk_time_intervals()
optimized time_split()
optimized format_time_auto()
Backlight time-out list same as original
Change-Id: I59027c62d3f2956bd16fdcc1a48b2ac32c084abd
2018-12-18 04:27:55 +00:00
|
|
|
backlight_set_fade_in, 7, backlight_fade),
|
|
|
|
TABLE_SETTING_LIST(F_TIME_SETTING | F_ALLOW_ARBITRARY_VALS, backlight_fade_out,
|
2007-11-26 23:10:20 +00:00
|
|
|
LANG_BACKLIGHT_FADE_OUT, 2000, "backlight fade out", "off",
|
Auto-Ranging Time Formatting For Menus (hh:mm:ss:mss)
Unifies time formatting in settings_list.c allows time format to
display as HH:MM:SS.MSS or any consecutive combination thereof
(hh:mm:ss, mm:ss, mm:ss.mss, ss.mss, hh, mm, ss ,mss)
works in INT and TABLE settings with the addition of flag 'F_TIME_SETTING'
Time is auto-ranged dependent on value
Adds talk_time_intervals to allow time values to be spoken similar to
display format: x Hours, x Minutes, x Seconds, x Milliseconds
Table lookups merged or removed from recording, clip meter and lcd timeout
-String_Choice replaced with TABLE_SETTING or INT_SETTING for these
functions as well, cleaned-up cfg_vals that get saved to cfgfile
RTL Languages ARE supported
Negative values ARE supported
Backlight on/off are now Always and Never to share formatter with LCD
Timeout
Added flag to allow ranged units to be locked to a minimum index
Added flag to allow leading zero to be supressed from the largest unit
merged talk_time_unit() and talk_time_intervals()
optimized time_split()
optimized format_time_auto()
Backlight time-out list same as original
Change-Id: I59027c62d3f2956bd16fdcc1a48b2ac32c084abd
2018-12-18 04:27:55 +00:00
|
|
|
UNIT_MS, formatter_time_unit_0_is_off,
|
|
|
|
getlang_time_unit_0_is_off,
|
|
|
|
backlight_set_fade_out, 10, backlight_fade),
|
2009-01-26 23:21:49 +00:00
|
|
|
#elif defined(HAVE_BACKLIGHT_FADING_BOOL_SETTING)
|
2008-11-26 08:26:13 +00:00
|
|
|
OFFON_SETTING(0, backlight_fade_in, LANG_BACKLIGHT_FADE_IN,
|
|
|
|
true, "backlight fade in", backlight_set_fade_in),
|
|
|
|
OFFON_SETTING(0, backlight_fade_out, LANG_BACKLIGHT_FADE_OUT,
|
|
|
|
true, "backlight fade out", backlight_set_fade_out),
|
2007-02-17 14:02:48 +00:00
|
|
|
#endif
|
2009-01-26 23:21:49 +00:00
|
|
|
#endif /* HAVE_BACKLIGHT */
|
2008-05-11 23:13:59 +00:00
|
|
|
INT_SETTING(F_PADTITLE, scroll_speed, LANG_SCROLL_SPEED, 9,"scroll speed",
|
2012-01-09 03:26:03 +00:00
|
|
|
UNIT_INT, 0, 17, 1, NULL, NULL, lcd_scroll_speed),
|
Auto-Ranging Time Formatting For Menus (hh:mm:ss:mss)
Unifies time formatting in settings_list.c allows time format to
display as HH:MM:SS.MSS or any consecutive combination thereof
(hh:mm:ss, mm:ss, mm:ss.mss, ss.mss, hh, mm, ss ,mss)
works in INT and TABLE settings with the addition of flag 'F_TIME_SETTING'
Time is auto-ranged dependent on value
Adds talk_time_intervals to allow time values to be spoken similar to
display format: x Hours, x Minutes, x Seconds, x Milliseconds
Table lookups merged or removed from recording, clip meter and lcd timeout
-String_Choice replaced with TABLE_SETTING or INT_SETTING for these
functions as well, cleaned-up cfg_vals that get saved to cfgfile
RTL Languages ARE supported
Negative values ARE supported
Backlight on/off are now Always and Never to share formatter with LCD
Timeout
Added flag to allow ranged units to be locked to a minimum index
Added flag to allow leading zero to be supressed from the largest unit
merged talk_time_unit() and talk_time_intervals()
optimized time_split()
optimized format_time_auto()
Backlight time-out list same as original
Change-Id: I59027c62d3f2956bd16fdcc1a48b2ac32c084abd
2018-12-18 04:27:55 +00:00
|
|
|
INT_SETTING(F_TIME_SETTING | F_PADTITLE, scroll_delay, LANG_SCROLL_DELAY,
|
|
|
|
1000, "scroll delay", UNIT_MS, 0, 3000, 100,
|
|
|
|
formatter_time_unit_0_is_off,
|
|
|
|
getlang_time_unit_0_is_off, lcd_scroll_delay),
|
2008-05-11 23:13:59 +00:00
|
|
|
INT_SETTING(0, bidir_limit, LANG_BIDIR_SCROLL, 50, "bidir limit",
|
2007-02-17 14:02:48 +00:00
|
|
|
UNIT_PERCENT, 0, 200, 25, NULL, NULL, lcd_bidir_scroll),
|
2007-01-23 13:40:44 +00:00
|
|
|
#ifdef HAVE_REMOTE_LCD
|
2008-05-11 23:13:59 +00:00
|
|
|
INT_SETTING(0, remote_scroll_speed, LANG_SCROLL_SPEED, 9,
|
2012-01-09 03:26:03 +00:00
|
|
|
"remote scroll speed", UNIT_INT, 0,17, 1,
|
2008-05-11 23:13:59 +00:00
|
|
|
NULL, NULL, lcd_remote_scroll_speed),
|
|
|
|
INT_SETTING(0, remote_scroll_step, LANG_SCROLL_STEP, 6,
|
|
|
|
"remote scroll step", UNIT_PIXEL, 1, LCD_REMOTE_WIDTH, 1, NULL,
|
|
|
|
NULL, lcd_remote_scroll_step),
|
Auto-Ranging Time Formatting For Menus (hh:mm:ss:mss)
Unifies time formatting in settings_list.c allows time format to
display as HH:MM:SS.MSS or any consecutive combination thereof
(hh:mm:ss, mm:ss, mm:ss.mss, ss.mss, hh, mm, ss ,mss)
works in INT and TABLE settings with the addition of flag 'F_TIME_SETTING'
Time is auto-ranged dependent on value
Adds talk_time_intervals to allow time values to be spoken similar to
display format: x Hours, x Minutes, x Seconds, x Milliseconds
Table lookups merged or removed from recording, clip meter and lcd timeout
-String_Choice replaced with TABLE_SETTING or INT_SETTING for these
functions as well, cleaned-up cfg_vals that get saved to cfgfile
RTL Languages ARE supported
Negative values ARE supported
Backlight on/off are now Always and Never to share formatter with LCD
Timeout
Added flag to allow ranged units to be locked to a minimum index
Added flag to allow leading zero to be supressed from the largest unit
merged talk_time_unit() and talk_time_intervals()
optimized time_split()
optimized format_time_auto()
Backlight time-out list same as original
Change-Id: I59027c62d3f2956bd16fdcc1a48b2ac32c084abd
2018-12-18 04:27:55 +00:00
|
|
|
INT_SETTING(F_TIME_SETTING, remote_scroll_delay, LANG_SCROLL_DELAY, 1000,
|
|
|
|
"remote scroll delay", UNIT_MS, 0, 3000, 100,
|
|
|
|
formatter_time_unit_0_is_off, getlang_time_unit_0_is_off,
|
2008-05-11 23:13:59 +00:00
|
|
|
lcd_remote_scroll_delay),
|
|
|
|
INT_SETTING(0, remote_bidir_limit, LANG_BIDIR_SCROLL, 50,
|
|
|
|
"remote bidir limit", UNIT_PERCENT, 0, 200, 25, NULL, NULL,
|
|
|
|
lcd_remote_bidir_scroll),
|
2007-01-23 13:40:44 +00:00
|
|
|
#endif
|
|
|
|
#ifdef HAVE_LCD_BITMAP
|
2007-02-17 14:02:48 +00:00
|
|
|
OFFON_SETTING(0, offset_out_of_view, LANG_SCREEN_SCROLL_VIEW,
|
2008-05-11 23:13:59 +00:00
|
|
|
false, "Screen Scrolls Out Of View",
|
|
|
|
gui_list_screen_scroll_out_of_view),
|
|
|
|
INT_SETTING(F_PADTITLE, scroll_step, LANG_SCROLL_STEP, 6, "scroll step",
|
|
|
|
UNIT_PIXEL, 1, LCD_WIDTH, 1, NULL, NULL, lcd_scroll_step),
|
|
|
|
INT_SETTING(F_PADTITLE, screen_scroll_step, LANG_SCREEN_SCROLL_STEP, 16,
|
|
|
|
"screen scroll step", UNIT_PIXEL, 1, LCD_WIDTH, 1, NULL, NULL,
|
|
|
|
gui_list_screen_scroll_step),
|
2007-01-23 13:40:44 +00:00
|
|
|
#endif /* HAVE_LCD_BITMAP */
|
2007-01-26 05:45:06 +00:00
|
|
|
OFFON_SETTING(0,scroll_paginated,LANG_SCROLL_PAGINATED,
|
2008-05-11 23:13:59 +00:00
|
|
|
false,"scroll paginated",NULL),
|
2007-01-23 13:40:44 +00:00
|
|
|
#ifdef HAVE_LCD_COLOR
|
2008-02-23 03:56:39 +00:00
|
|
|
|
2008-05-11 23:13:59 +00:00
|
|
|
{F_T_INT|F_RGB|F_THEMESETTING ,&global_settings.fg_color,-1,
|
|
|
|
INT(DEFAULT_THEME_FOREGROUND),"foreground color",NULL,UNUSED},
|
|
|
|
{F_T_INT|F_RGB|F_THEMESETTING ,&global_settings.bg_color,-1,
|
|
|
|
INT(DEFAULT_THEME_BACKGROUND),"background color",NULL,UNUSED},
|
|
|
|
{F_T_INT|F_RGB|F_THEMESETTING ,&global_settings.lss_color,-1,
|
|
|
|
INT(DEFAULT_THEME_SELECTOR_START),"line selector start color",NULL,
|
|
|
|
UNUSED},
|
|
|
|
{F_T_INT|F_RGB|F_THEMESETTING ,&global_settings.lse_color,-1,
|
|
|
|
INT(DEFAULT_THEME_SELECTOR_END),"line selector end color",NULL,UNUSED},
|
|
|
|
{F_T_INT|F_RGB|F_THEMESETTING ,&global_settings.lst_color,-1,
|
|
|
|
INT(DEFAULT_THEME_SELECTOR_TEXT),"line selector text color",NULL,
|
|
|
|
UNUSED},
|
2008-02-23 03:56:39 +00:00
|
|
|
|
2007-01-23 13:40:44 +00:00
|
|
|
#endif
|
|
|
|
/* more playback */
|
2007-01-26 05:45:06 +00:00
|
|
|
OFFON_SETTING(0,play_selected,LANG_PLAY_SELECTED,true,"play selected",NULL),
|
|
|
|
OFFON_SETTING(0,party_mode,LANG_PARTY_MODE,false,"party mode",NULL),
|
|
|
|
OFFON_SETTING(0,fade_on_stop,LANG_FADE_ON_STOP,true,"volume fade",NULL),
|
Auto-Ranging Time Formatting For Menus (hh:mm:ss:mss)
Unifies time formatting in settings_list.c allows time format to
display as HH:MM:SS.MSS or any consecutive combination thereof
(hh:mm:ss, mm:ss, mm:ss.mss, ss.mss, hh, mm, ss ,mss)
works in INT and TABLE settings with the addition of flag 'F_TIME_SETTING'
Time is auto-ranged dependent on value
Adds talk_time_intervals to allow time values to be spoken similar to
display format: x Hours, x Minutes, x Seconds, x Milliseconds
Table lookups merged or removed from recording, clip meter and lcd timeout
-String_Choice replaced with TABLE_SETTING or INT_SETTING for these
functions as well, cleaned-up cfg_vals that get saved to cfgfile
RTL Languages ARE supported
Negative values ARE supported
Backlight on/off are now Always and Never to share formatter with LCD
Timeout
Added flag to allow ranged units to be locked to a minimum index
Added flag to allow leading zero to be supressed from the largest unit
merged talk_time_unit() and talk_time_intervals()
optimized time_split()
optimized format_time_auto()
Backlight time-out list same as original
Change-Id: I59027c62d3f2956bd16fdcc1a48b2ac32c084abd
2018-12-18 04:27:55 +00:00
|
|
|
INT_SETTING(F_TIME_SETTING, ff_rewind_min_step, LANG_FFRW_STEP, 1,
|
|
|
|
"scan min step", UNIT_SEC, 1, 60, 1, NULL, NULL, NULL),
|
2008-06-28 17:55:53 +00:00
|
|
|
CHOICE_SETTING(0, ff_rewind_accel, LANG_FFRW_ACCEL, 2,
|
2008-06-29 14:53:21 +00:00
|
|
|
"seek acceleration", "very fast,fast,normal,slow,very slow", NULL, 5,
|
2008-06-28 17:55:53 +00:00
|
|
|
ID2P(LANG_VERY_FAST), ID2P(LANG_FAST), ID2P(LANG_NORMAL),
|
|
|
|
ID2P(LANG_SLOW) , ID2P(LANG_VERY_SLOW)),
|
2008-10-07 19:37:33 +00:00
|
|
|
#if (CONFIG_CODEC == SWCODEC) && defined(HAVE_DISK_STORAGE)
|
Auto-Ranging Time Formatting For Menus (hh:mm:ss:mss)
Unifies time formatting in settings_list.c allows time format to
display as HH:MM:SS.MSS or any consecutive combination thereof
(hh:mm:ss, mm:ss, mm:ss.mss, ss.mss, hh, mm, ss ,mss)
works in INT and TABLE settings with the addition of flag 'F_TIME_SETTING'
Time is auto-ranged dependent on value
Adds talk_time_intervals to allow time values to be spoken similar to
display format: x Hours, x Minutes, x Seconds, x Milliseconds
Table lookups merged or removed from recording, clip meter and lcd timeout
-String_Choice replaced with TABLE_SETTING or INT_SETTING for these
functions as well, cleaned-up cfg_vals that get saved to cfgfile
RTL Languages ARE supported
Negative values ARE supported
Backlight on/off are now Always and Never to share formatter with LCD
Timeout
Added flag to allow ranged units to be locked to a minimum index
Added flag to allow leading zero to be supressed from the largest unit
merged talk_time_unit() and talk_time_intervals()
optimized time_split()
optimized format_time_auto()
Backlight time-out list same as original
Change-Id: I59027c62d3f2956bd16fdcc1a48b2ac32c084abd
2018-12-18 04:27:55 +00:00
|
|
|
TABLE_SETTING(F_TIME_SETTING | F_ALLOW_ARBITRARY_VALS, buffer_margin,
|
|
|
|
LANG_MP3BUFFER_MARGIN, 5, "antiskip", NULL, UNIT_SEC,
|
|
|
|
NULL, NULL,
|
|
|
|
NULL,8, 5,15,30,60,120,180,300,600),
|
2008-10-07 19:37:33 +00:00
|
|
|
#elif defined(HAVE_DISK_STORAGE)
|
Auto-Ranging Time Formatting For Menus (hh:mm:ss:mss)
Unifies time formatting in settings_list.c allows time format to
display as HH:MM:SS.MSS or any consecutive combination thereof
(hh:mm:ss, mm:ss, mm:ss.mss, ss.mss, hh, mm, ss ,mss)
works in INT and TABLE settings with the addition of flag 'F_TIME_SETTING'
Time is auto-ranged dependent on value
Adds talk_time_intervals to allow time values to be spoken similar to
display format: x Hours, x Minutes, x Seconds, x Milliseconds
Table lookups merged or removed from recording, clip meter and lcd timeout
-String_Choice replaced with TABLE_SETTING or INT_SETTING for these
functions as well, cleaned-up cfg_vals that get saved to cfgfile
RTL Languages ARE supported
Negative values ARE supported
Backlight on/off are now Always and Never to share formatter with LCD
Timeout
Added flag to allow ranged units to be locked to a minimum index
Added flag to allow leading zero to be supressed from the largest unit
merged talk_time_unit() and talk_time_intervals()
optimized time_split()
optimized format_time_auto()
Backlight time-out list same as original
Change-Id: I59027c62d3f2956bd16fdcc1a48b2ac32c084abd
2018-12-18 04:27:55 +00:00
|
|
|
INT_SETTING(F_TIME_SETTING, buffer_margin, LANG_MP3BUFFER_MARGIN, 0,
|
|
|
|
"antiskip", UNIT_SEC, 0, 7, 1, formatter_time_unit_0_is_off,
|
|
|
|
getlang_time_unit_0_is_off, audio_set_buffer_margin),
|
2007-01-23 13:40:44 +00:00
|
|
|
#endif
|
|
|
|
/* disk */
|
2008-10-07 19:37:33 +00:00
|
|
|
#ifdef HAVE_DISK_STORAGE
|
Auto-Ranging Time Formatting For Menus (hh:mm:ss:mss)
Unifies time formatting in settings_list.c allows time format to
display as HH:MM:SS.MSS or any consecutive combination thereof
(hh:mm:ss, mm:ss, mm:ss.mss, ss.mss, hh, mm, ss ,mss)
works in INT and TABLE settings with the addition of flag 'F_TIME_SETTING'
Time is auto-ranged dependent on value
Adds talk_time_intervals to allow time values to be spoken similar to
display format: x Hours, x Minutes, x Seconds, x Milliseconds
Table lookups merged or removed from recording, clip meter and lcd timeout
-String_Choice replaced with TABLE_SETTING or INT_SETTING for these
functions as well, cleaned-up cfg_vals that get saved to cfgfile
RTL Languages ARE supported
Negative values ARE supported
Backlight on/off are now Always and Never to share formatter with LCD
Timeout
Added flag to allow ranged units to be locked to a minimum index
Added flag to allow leading zero to be supressed from the largest unit
merged talk_time_unit() and talk_time_intervals()
optimized time_split()
optimized format_time_auto()
Backlight time-out list same as original
Change-Id: I59027c62d3f2956bd16fdcc1a48b2ac32c084abd
2018-12-18 04:27:55 +00:00
|
|
|
INT_SETTING(F_TIME_SETTING, disk_spindown, LANG_SPINDOWN, 5, "disk spindown",
|
2008-11-01 16:14:28 +00:00
|
|
|
UNIT_SEC, 3, 254, 1, NULL, NULL, storage_spindown),
|
2008-10-07 19:37:33 +00:00
|
|
|
#endif /* HAVE_DISK_STORAGE */
|
2007-01-23 13:40:44 +00:00
|
|
|
/* browser */
|
2010-10-04 10:34:38 +00:00
|
|
|
TEXT_SETTING(0, start_directory, "start directory", "/", NULL, NULL),
|
2007-02-13 07:50:47 +00:00
|
|
|
CHOICE_SETTING(0, dirfilter, LANG_FILTER, SHOW_SUPPORTED, "show files",
|
2008-05-11 23:13:59 +00:00
|
|
|
"all,supported,music,playlists", NULL, 4, ID2P(LANG_ALL),
|
|
|
|
ID2P(LANG_FILTER_SUPPORTED), ID2P(LANG_FILTER_MUSIC),
|
|
|
|
ID2P(LANG_PLAYLISTS)),
|
2009-03-01 17:55:59 +00:00
|
|
|
/* file sorting */
|
2008-05-11 23:13:59 +00:00
|
|
|
OFFON_SETTING(0, sort_case, LANG_SORT_CASE, false, "sort case", NULL),
|
2009-03-01 17:55:59 +00:00
|
|
|
CHOICE_SETTING(0, sort_dir, LANG_SORT_DIR, 0 ,
|
|
|
|
"sort dirs", "alpha,oldest,newest", NULL, 3,
|
|
|
|
ID2P(LANG_SORT_ALPHA), ID2P(LANG_SORT_DATE),
|
|
|
|
ID2P(LANG_SORT_DATE_REVERSE)),
|
|
|
|
CHOICE_SETTING(0, sort_file, LANG_SORT_FILE, 0 ,
|
|
|
|
"sort files", "alpha,oldest,newest,type", NULL, 4,
|
|
|
|
ID2P(LANG_SORT_ALPHA), ID2P(LANG_SORT_DATE),
|
|
|
|
ID2P(LANG_SORT_DATE_REVERSE) , ID2P(LANG_SORT_TYPE)),
|
|
|
|
CHOICE_SETTING(0, interpret_numbers, LANG_SORT_INTERPRET_NUMBERS, 1,
|
|
|
|
"sort interpret number", "digits,numbers",NULL, 2,
|
|
|
|
ID2P(LANG_SORT_INTERPRET_AS_DIGIT),
|
|
|
|
ID2P(LANG_SORT_INTERPRET_AS_NUMBERS)),
|
2007-08-13 23:11:30 +00:00
|
|
|
CHOICE_SETTING(0, show_filename_ext, LANG_SHOW_FILENAME_EXT, 3,
|
2008-05-11 23:13:59 +00:00
|
|
|
"show filename exts", "off,on,unknown,view_all", NULL , 4 ,
|
|
|
|
ID2P(LANG_OFF), ID2P(LANG_ON), ID2P(LANG_UNKNOWN_TYPES),
|
|
|
|
ID2P(LANG_EXT_ONLY_VIEW_ALL)),
|
2007-01-26 05:45:06 +00:00
|
|
|
OFFON_SETTING(0,browse_current,LANG_FOLLOW,false,"follow playlist",NULL),
|
|
|
|
OFFON_SETTING(0,playlist_viewer_icons,LANG_SHOW_ICONS,true,
|
2008-05-11 23:13:59 +00:00
|
|
|
"playlist viewer icons",NULL),
|
2007-01-26 05:45:06 +00:00
|
|
|
OFFON_SETTING(0,playlist_viewer_indices,LANG_SHOW_INDICES,true,
|
2008-05-11 23:13:59 +00:00
|
|
|
"playlist viewer indices",NULL),
|
2007-04-25 11:20:19 +00:00
|
|
|
CHOICE_SETTING(0, playlist_viewer_track_display, LANG_TRACK_DISPLAY, 0,
|
2008-05-11 23:13:59 +00:00
|
|
|
"playlist viewer track display","track name,full path",
|
|
|
|
NULL, 2, ID2P(LANG_DISPLAY_TRACK_NAME_ONLY),
|
|
|
|
ID2P(LANG_DISPLAY_FULL_PATH)),
|
2007-10-01 13:39:30 +00:00
|
|
|
CHOICE_SETTING(0, recursive_dir_insert, LANG_RECURSE_DIRECTORY , RECURSE_ON,
|
2008-05-11 23:13:59 +00:00
|
|
|
"recursive directory insert", off_on_ask, NULL , 3 ,
|
|
|
|
ID2P(LANG_OFF), ID2P(LANG_ON), ID2P(LANG_ASK)),
|
2007-01-23 13:40:44 +00:00
|
|
|
/* bookmarks */
|
2007-02-13 07:50:47 +00:00
|
|
|
CHOICE_SETTING(0, autocreatebookmark, LANG_BOOKMARK_SETTINGS_AUTOCREATE,
|
2008-05-11 23:13:59 +00:00
|
|
|
BOOKMARK_NO, "autocreate bookmarks",
|
|
|
|
"off,on,ask,recent only - on,recent only - ask", NULL, 5,
|
|
|
|
ID2P(LANG_SET_BOOL_NO), ID2P(LANG_SET_BOOL_YES),
|
|
|
|
ID2P(LANG_ASK), ID2P(LANG_BOOKMARK_SETTINGS_RECENT_ONLY_YES),
|
|
|
|
ID2P(LANG_BOOKMARK_SETTINGS_RECENT_ONLY_ASK)),
|
2010-07-05 16:39:00 +00:00
|
|
|
OFFON_SETTING(0, autoupdatebookmark, LANG_BOOKMARK_SETTINGS_AUTOUPDATE,
|
|
|
|
false, "autoupdate bookmarks", NULL),
|
2008-05-11 23:13:59 +00:00
|
|
|
CHOICE_SETTING(0, autoloadbookmark, LANG_BOOKMARK_SETTINGS_AUTOLOAD,
|
|
|
|
BOOKMARK_NO, "autoload bookmarks", off_on_ask, NULL, 3,
|
|
|
|
ID2P(LANG_SET_BOOL_NO), ID2P(LANG_SET_BOOL_YES),
|
|
|
|
ID2P(LANG_ASK)),
|
2007-02-13 07:50:47 +00:00
|
|
|
CHOICE_SETTING(0, usemrb, LANG_BOOKMARK_SETTINGS_MAINTAIN_RECENT_BOOKMARKS,
|
2008-05-11 23:13:59 +00:00
|
|
|
BOOKMARK_NO, "use most-recent-bookmarks",
|
2018-10-30 13:43:32 +00:00
|
|
|
"off,on,unique only,one per track", NULL, 4, ID2P(LANG_SET_BOOL_NO),
|
2008-05-11 23:13:59 +00:00
|
|
|
ID2P(LANG_SET_BOOL_YES),
|
2018-10-30 13:43:32 +00:00
|
|
|
ID2P(LANG_BOOKMARK_SETTINGS_ONE_PER_PLAYLIST),
|
|
|
|
ID2P(LANG_BOOKMARK_SETTINGS_ONE_PER_TRACK)),
|
2007-01-23 13:40:44 +00:00
|
|
|
#ifdef HAVE_LCD_BITMAP
|
|
|
|
/* peak meter */
|
Auto-Ranging Time Formatting For Menus (hh:mm:ss:mss)
Unifies time formatting in settings_list.c allows time format to
display as HH:MM:SS.MSS or any consecutive combination thereof
(hh:mm:ss, mm:ss, mm:ss.mss, ss.mss, hh, mm, ss ,mss)
works in INT and TABLE settings with the addition of flag 'F_TIME_SETTING'
Time is auto-ranged dependent on value
Adds talk_time_intervals to allow time values to be spoken similar to
display format: x Hours, x Minutes, x Seconds, x Milliseconds
Table lookups merged or removed from recording, clip meter and lcd timeout
-String_Choice replaced with TABLE_SETTING or INT_SETTING for these
functions as well, cleaned-up cfg_vals that get saved to cfgfile
RTL Languages ARE supported
Negative values ARE supported
Backlight on/off are now Always and Never to share formatter with LCD
Timeout
Added flag to allow ranged units to be locked to a minimum index
Added flag to allow leading zero to be supressed from the largest unit
merged talk_time_unit() and talk_time_intervals()
optimized time_split()
optimized format_time_auto()
Backlight time-out list same as original
Change-Id: I59027c62d3f2956bd16fdcc1a48b2ac32c084abd
2018-12-18 04:27:55 +00:00
|
|
|
TABLE_SETTING_LIST(F_TIME_SETTING | F_ALLOW_ARBITRARY_VALS, peak_meter_clip_hold,
|
|
|
|
LANG_PM_CLIP_HOLD, 60, "peak meter clip hold", "eternal",
|
|
|
|
UNIT_SEC, formatter_time_unit_0_is_eternal,
|
|
|
|
getlang_time_unit_0_is_eternal, peak_meter_set_clip_hold,
|
|
|
|
31, &timeout_sec_common[1]), /* skip -1 entry */
|
|
|
|
TABLE_SETTING(F_TIME_SETTING | F_ALLOW_ARBITRARY_VALS, peak_meter_hold,
|
|
|
|
LANG_PM_PEAK_HOLD, 500, "peak meter hold", off, UNIT_MS,
|
|
|
|
formatter_time_unit_0_is_off, getlang_time_unit_0_is_off,NULL,
|
|
|
|
18, 0,200,300,500,1000,2000,3000,4000,5000,6000,7000,8000,
|
|
|
|
9000,10000,15000,20000,30000,60000),
|
2008-05-11 23:13:59 +00:00
|
|
|
INT_SETTING(0, peak_meter_release, LANG_PM_RELEASE, 8, "peak meter release",
|
|
|
|
UNIT_PM_TICK, 1, 0x7e, 1, NULL, NULL,NULL),
|
2007-01-26 05:45:06 +00:00
|
|
|
OFFON_SETTING(0,peak_meter_dbfs,LANG_PM_DBFS,true,"peak meter dbfs",NULL),
|
2008-05-11 23:13:59 +00:00
|
|
|
{F_T_INT, &global_settings.peak_meter_min, LANG_PM_MIN,INT(60),
|
|
|
|
"peak meter min", NULL, UNUSED},
|
|
|
|
{F_T_INT, &global_settings.peak_meter_max, LANG_PM_MAX,INT(0),
|
|
|
|
"peak meter max", NULL, UNUSED},
|
2007-08-26 21:34:36 +00:00
|
|
|
#ifdef HAVE_RECORDING
|
2008-05-11 23:13:59 +00:00
|
|
|
OFFON_SETTING(0, peak_meter_clipcounter, LANG_PM_CLIPCOUNTER, false,
|
|
|
|
"peak meter clipcounter", NULL),
|
2007-08-26 21:34:36 +00:00
|
|
|
#endif /* HAVE_RECORDING */
|
|
|
|
#endif /* HAVE_LCD_BITMAP */
|
2007-01-23 13:40:44 +00:00
|
|
|
#if (CONFIG_CODEC == MAS3587F) || (CONFIG_CODEC == MAS3539F)
|
2007-12-24 22:35:31 +00:00
|
|
|
SOUND_SETTING(F_SOUNDSETTING, mdb_strength, LANG_MDB_STRENGTH,
|
2008-05-11 23:13:59 +00:00
|
|
|
"mdb strength", SOUND_MDB_STRENGTH),
|
2007-12-24 22:35:31 +00:00
|
|
|
SOUND_SETTING(F_SOUNDSETTING, mdb_harmonics, LANG_MDB_HARMONICS,
|
2008-05-11 23:13:59 +00:00
|
|
|
"mdb harmonics", SOUND_MDB_HARMONICS),
|
2007-12-24 22:35:31 +00:00
|
|
|
SOUND_SETTING(F_SOUNDSETTING, mdb_center, LANG_MDB_CENTER,
|
2008-05-11 23:13:59 +00:00
|
|
|
"mdb center", SOUND_MDB_CENTER),
|
2007-12-24 22:35:31 +00:00
|
|
|
SOUND_SETTING(F_SOUNDSETTING, mdb_shape, LANG_MDB_SHAPE,
|
2008-05-11 23:13:59 +00:00
|
|
|
"mdb shape", SOUND_MDB_SHAPE),
|
2007-12-24 22:35:31 +00:00
|
|
|
OFFON_SETTING(F_SOUNDSETTING, mdb_enable, LANG_MDB_ENABLE,
|
2008-05-11 23:13:59 +00:00
|
|
|
false, "mdb enable", set_mdb_enable),
|
2007-01-23 13:40:44 +00:00
|
|
|
#endif
|
|
|
|
#if CONFIG_CODEC == MAS3507D
|
2007-12-24 22:35:31 +00:00
|
|
|
OFFON_SETTING(F_SOUNDSETTING, line_in,LANG_LINE_IN,false,"line in",NULL),
|
2007-01-23 13:40:44 +00:00
|
|
|
#endif
|
|
|
|
/* voice */
|
2007-06-07 09:24:53 +00:00
|
|
|
OFFON_SETTING(F_TEMPVAR, talk_menu, LANG_VOICE_MENU, true, "talk menu", NULL),
|
2007-02-13 07:50:47 +00:00
|
|
|
CHOICE_SETTING(0, talk_dir, LANG_VOICE_DIR, 0,
|
2008-05-11 23:13:59 +00:00
|
|
|
"talk dir", off_number_spell, NULL, 3,
|
|
|
|
ID2P(LANG_OFF), ID2P(LANG_VOICE_NUMBER),
|
|
|
|
ID2P(LANG_VOICE_SPELL)),
|
|
|
|
OFFON_SETTING(F_TEMPVAR, talk_dir_clip, LANG_VOICE_DIR_TALK, false,
|
|
|
|
"talk dir clip", NULL),
|
2007-02-13 07:50:47 +00:00
|
|
|
CHOICE_SETTING(0, talk_file, LANG_VOICE_FILE, 0,
|
2008-05-11 23:13:59 +00:00
|
|
|
"talk file", off_number_spell, NULL, 3,
|
|
|
|
ID2P(LANG_OFF), ID2P(LANG_VOICE_NUMBER),
|
|
|
|
ID2P(LANG_VOICE_SPELL)),
|
|
|
|
OFFON_SETTING(F_TEMPVAR, talk_file_clip, LANG_VOICE_FILE_TALK, false,
|
|
|
|
"talk file clip", NULL),
|
|
|
|
OFFON_SETTING(F_TEMPVAR, talk_filetype, LANG_VOICE_FILETYPE, false,
|
|
|
|
"talk filetype", NULL),
|
|
|
|
OFFON_SETTING(F_TEMPVAR, talk_battery_level, LANG_TALK_BATTERY_LEVEL, false,
|
2007-11-03 05:00:49 +00:00
|
|
|
"Announce Battery Level", NULL),
|
2007-01-26 05:45:06 +00:00
|
|
|
|
2007-01-23 13:40:44 +00:00
|
|
|
#ifdef HAVE_RECORDING
|
Auto-Ranging Time Formatting For Menus (hh:mm:ss:mss)
Unifies time formatting in settings_list.c allows time format to
display as HH:MM:SS.MSS or any consecutive combination thereof
(hh:mm:ss, mm:ss, mm:ss.mss, ss.mss, hh, mm, ss ,mss)
works in INT and TABLE settings with the addition of flag 'F_TIME_SETTING'
Time is auto-ranged dependent on value
Adds talk_time_intervals to allow time values to be spoken similar to
display format: x Hours, x Minutes, x Seconds, x Milliseconds
Table lookups merged or removed from recording, clip meter and lcd timeout
-String_Choice replaced with TABLE_SETTING or INT_SETTING for these
functions as well, cleaned-up cfg_vals that get saved to cfgfile
RTL Languages ARE supported
Negative values ARE supported
Backlight on/off are now Always and Never to share formatter with LCD
Timeout
Added flag to allow ranged units to be locked to a minimum index
Added flag to allow leading zero to be supressed from the largest unit
merged talk_time_unit() and talk_time_intervals()
optimized time_split()
optimized format_time_auto()
Backlight time-out list same as original
Change-Id: I59027c62d3f2956bd16fdcc1a48b2ac32c084abd
2018-12-18 04:27:55 +00:00
|
|
|
/* recording */
|
|
|
|
TABLE_SETTING(F_TIME_SETTING | F_ALLOW_ARBITRARY_VALS | F_RECSETTING,
|
|
|
|
rec_timesplit,
|
|
|
|
LANG_SPLIT_TIME, 0, "rec timesplit", off, UNIT_MIN,
|
|
|
|
formatter_time_unit_0_is_off, getlang_time_unit_0_is_off,NULL,
|
|
|
|
16, 0,5,10,15,30,60,74,80,120,240,360,480,600,720,1080,1440),
|
2007-05-29 04:39:11 +00:00
|
|
|
STRINGCHOICE_SETTING(F_RECSETTING, rec_sizesplit, LANG_SPLIT_SIZE, 0,
|
2008-05-11 23:13:59 +00:00
|
|
|
"rec sizesplit",
|
|
|
|
"off,5MB,10MB,15MB,32MB,64MB,75MB,100MB,128MB,"
|
|
|
|
"256MB,512MB,650MB,700MB,1GB,1.5GB,1.75GB",
|
|
|
|
NULL, 16, LANG_OFF,
|
|
|
|
TALK_ID(5, UNIT_MB), TALK_ID(10, UNIT_MB),
|
|
|
|
TALK_ID(15, UNIT_MB), TALK_ID(32, UNIT_MB),
|
|
|
|
TALK_ID(64, UNIT_MB), TALK_ID(75, UNIT_MB),
|
|
|
|
TALK_ID(100, UNIT_MB), TALK_ID(128, UNIT_MB),
|
|
|
|
TALK_ID(256, UNIT_MB), TALK_ID(512, UNIT_MB),
|
|
|
|
TALK_ID(650, UNIT_MB), TALK_ID(700, UNIT_MB),
|
|
|
|
TALK_ID(1024, UNIT_MB), TALK_ID(1536, UNIT_MB),
|
|
|
|
TALK_ID(1792, UNIT_MB)),
|
|
|
|
{F_T_INT|F_RECSETTING, &global_settings.rec_channels, LANG_CHANNELS, INT(0),
|
|
|
|
"rec channels","stereo,mono",UNUSED},
|
2008-10-08 22:18:16 +00:00
|
|
|
#if CONFIG_CODEC == SWCODEC
|
|
|
|
{F_T_INT|F_RECSETTING, &global_settings.rec_mono_mode,
|
|
|
|
LANG_RECORDING_MONO_MODE, INT(0), "rec mono mode","L+R,L,R",UNUSED},
|
|
|
|
#endif
|
2008-05-11 23:13:59 +00:00
|
|
|
CHOICE_SETTING(F_RECSETTING, rec_split_type, LANG_SPLIT_TYPE, 0,
|
2008-05-15 22:47:07 +00:00
|
|
|
"rec split type", "Split,Stop,Shutdown", NULL, 3,
|
|
|
|
ID2P(LANG_START_NEW_FILE), ID2P(LANG_STOP_RECORDING),ID2P(LANG_STOP_RECORDING_AND_SHUTDOWN)),
|
2008-05-11 23:13:59 +00:00
|
|
|
CHOICE_SETTING(F_RECSETTING, rec_split_method, LANG_SPLIT_MEASURE, 0,
|
|
|
|
"rec split method", "Time,Filesize", NULL, 2,
|
2010-12-24 03:31:40 +00:00
|
|
|
ID2P(LANG_TIME), ID2P(LANG_FILESIZE)),
|
2008-05-11 23:13:59 +00:00
|
|
|
{F_T_INT|F_RECSETTING, &global_settings.rec_source, LANG_RECORDING_SOURCE,
|
|
|
|
INT(0), "rec source",
|
Selective Backlight/Advanced Softlock - Selective actions based on context
Selective backlight allows the user to choose actions that will not
enable the backlight when pressed.
Advanced softlock allows user to choose actions that will not be
blocked by screenlock on devices without a hold button.
Both only occur in FM and WPS Contexts.
Update:
Back from the dead
-Cleaned up code, removed unnecessary calls, re-arranged last filter action
timeout conditional to work in case last_filtered_action_tick was never set
-Added entries to the manual
-Fixed back button on some menus not activating backlight
-Made menus more intuitive, no actions selected now changes menu item to off.
-Added talk fuctionality.
-Added option to disable selective backlight while on external power.
-Rewrote backlight and softlock handling code to fix issue with scrollwheels
-Menu changed to have toggle(yes/no) and settings
-Optimized selective actions lookup
-Added option to disable notification of 'buttons locked' while softlocked
-Removed uneeded code, consolidated action lookup to single function
-Fixed incorrect name on selective softlock menu
-Added option to disable touch on touchscreen devices
-Fixed backlight on original screenlock without selective screenlock active
-Added text selection in mask_select for when show_icons is off
-Fixed voice in mask_select to speak if voice is defined instead of spelling
-Added more lang defines (play skip seek)
-Added option to disable unknown keys turning on backlight
-Fixed Conditional argument In wrong place causing players without
backlight to fail to build
-Fixed Disable Unknown blocking detection of context change
-Fixed canceling menu didn't update new settings
-Added Autolock on backlight off
-Removed backlight_on_force from backlight.c, Now sets ignore next to false
and uses backlight_on
-Cleaned up autolock code added strings to lang file
-Fixed issue where rapid presses would bypass softlock
-Removed old softlock code, Cleaned selective actions code
-Changed menu to match existing RB menus
-Fixed Backlight_on_Hold blocked by backlight_ignore_next
-Fixed ignore_next for ipod
-Fixed bug allowing context with softlock to bypass selective backlight
-Changed mask_select to no longer prompt for changes to be saved
-Changed menu names
-Added ignore timeout to allow ipod scroll wheel to work properly and other
players to still work properly, removed some previous code including
ignore_event
-Increased ignore timeout to prevent sd card accesses from interrupting action
code and turning on backlight
-Changed Unknown action to unmapped action in menu, changed handling code
-Removed unneeded logic and variables for handling unfiltered actions
-Reverted unmapped action code to previous functionality
-Added manual entries (thanks JohnB)
-Removed elusive unhandled unicode character from manual, changed formatting slightly
Actions:
Volume,Play,Seek,Skip
Extras:
Disable unmapped actions
Disable selective backlight on external power
Disable touch during softlock on touchscreen devices
Disable softlock notifications (power button still notifies)
Autolock on backlight off
Method:
Adds a function to ignore backlight on next call
If selected action occurs backlight is forced on,
Filter_first_keypress stays intact.
Selective softlock allows selected actions through, bypasses the normal
softlock routine.
ToDo:
DONE
previous commit (#1) has attribution for folder_select.c which mask_select
is based from.
Change-Id: I08132ddcfd64c81751ef23b720f3ec6d68695fe4
2016-11-22 05:21:31 +00:00
|
|
|
&HAVE_MIC_REC_(",mic")
|
2008-05-11 23:13:59 +00:00
|
|
|
HAVE_LINE_REC_(",line")
|
|
|
|
HAVE_SPDIF_REC_(",spdif")
|
|
|
|
HAVE_FMRADIO_REC_(",fmradio")[1],
|
|
|
|
UNUSED},
|
Auto-Ranging Time Formatting For Menus (hh:mm:ss:mss)
Unifies time formatting in settings_list.c allows time format to
display as HH:MM:SS.MSS or any consecutive combination thereof
(hh:mm:ss, mm:ss, mm:ss.mss, ss.mss, hh, mm, ss ,mss)
works in INT and TABLE settings with the addition of flag 'F_TIME_SETTING'
Time is auto-ranged dependent on value
Adds talk_time_intervals to allow time values to be spoken similar to
display format: x Hours, x Minutes, x Seconds, x Milliseconds
Table lookups merged or removed from recording, clip meter and lcd timeout
-String_Choice replaced with TABLE_SETTING or INT_SETTING for these
functions as well, cleaned-up cfg_vals that get saved to cfgfile
RTL Languages ARE supported
Negative values ARE supported
Backlight on/off are now Always and Never to share formatter with LCD
Timeout
Added flag to allow ranged units to be locked to a minimum index
Added flag to allow leading zero to be supressed from the largest unit
merged talk_time_unit() and talk_time_intervals()
optimized time_split()
optimized format_time_auto()
Backlight time-out list same as original
Change-Id: I59027c62d3f2956bd16fdcc1a48b2ac32c084abd
2018-12-18 04:27:55 +00:00
|
|
|
INT_SETTING(F_TIME_SETTING | F_RECSETTING, rec_prerecord_time,
|
|
|
|
LANG_RECORD_PRERECORD_TIME, 0,
|
2008-05-11 23:13:59 +00:00
|
|
|
"prerecording time", UNIT_SEC, 0, 30, 1,
|
Auto-Ranging Time Formatting For Menus (hh:mm:ss:mss)
Unifies time formatting in settings_list.c allows time format to
display as HH:MM:SS.MSS or any consecutive combination thereof
(hh:mm:ss, mm:ss, mm:ss.mss, ss.mss, hh, mm, ss ,mss)
works in INT and TABLE settings with the addition of flag 'F_TIME_SETTING'
Time is auto-ranged dependent on value
Adds talk_time_intervals to allow time values to be spoken similar to
display format: x Hours, x Minutes, x Seconds, x Milliseconds
Table lookups merged or removed from recording, clip meter and lcd timeout
-String_Choice replaced with TABLE_SETTING or INT_SETTING for these
functions as well, cleaned-up cfg_vals that get saved to cfgfile
RTL Languages ARE supported
Negative values ARE supported
Backlight on/off are now Always and Never to share formatter with LCD
Timeout
Added flag to allow ranged units to be locked to a minimum index
Added flag to allow leading zero to be supressed from the largest unit
merged talk_time_unit() and talk_time_intervals()
optimized time_split()
optimized format_time_auto()
Backlight time-out list same as original
Change-Id: I59027c62d3f2956bd16fdcc1a48b2ac32c084abd
2018-12-18 04:27:55 +00:00
|
|
|
formatter_time_unit_0_is_off, getlang_time_unit_0_is_off, NULL),
|
2008-05-11 23:13:59 +00:00
|
|
|
|
2008-10-23 00:29:17 +00:00
|
|
|
TEXT_SETTING(F_RECSETTING, rec_directory, "rec path",
|
|
|
|
REC_BASE_DIR, NULL, NULL),
|
2007-04-12 22:12:13 +00:00
|
|
|
#ifdef HAVE_BACKLIGHT
|
2008-05-11 23:13:59 +00:00
|
|
|
CHOICE_SETTING(F_RECSETTING, cliplight, LANG_CLIP_LIGHT, 0,
|
|
|
|
"cliplight", "off,main,both,remote", NULL,
|
2007-03-13 11:48:47 +00:00
|
|
|
#ifdef HAVE_REMOTE_LCD
|
2008-05-11 23:13:59 +00:00
|
|
|
4, ID2P(LANG_OFF), ID2P(LANG_MAIN_UNIT),
|
|
|
|
ID2P(LANG_REMOTE_MAIN), ID2P(LANG_REMOTE_UNIT)
|
2007-03-13 11:48:47 +00:00
|
|
|
#else
|
2008-05-11 23:13:59 +00:00
|
|
|
2, ID2P(LANG_OFF), ID2P(LANG_ON)
|
2007-03-13 11:48:47 +00:00
|
|
|
#endif
|
2008-05-11 23:13:59 +00:00
|
|
|
),
|
2007-01-23 13:40:44 +00:00
|
|
|
#endif
|
2007-06-05 07:03:30 +00:00
|
|
|
#ifdef DEFAULT_REC_MIC_GAIN
|
2007-05-29 04:39:11 +00:00
|
|
|
{F_T_INT|F_RECSETTING,&global_settings.rec_mic_gain,
|
2007-08-05 19:19:39 +00:00
|
|
|
LANG_GAIN,INT(DEFAULT_REC_MIC_GAIN),
|
2007-01-23 13:40:44 +00:00
|
|
|
"rec mic gain",NULL,UNUSED},
|
2007-06-05 07:03:30 +00:00
|
|
|
#endif /* DEFAULT_REC_MIC_GAIN */
|
|
|
|
#ifdef DEFAULT_REC_LEFT_GAIN
|
2007-05-29 04:39:11 +00:00
|
|
|
{F_T_INT|F_RECSETTING,&global_settings.rec_left_gain,
|
2008-08-06 20:12:44 +00:00
|
|
|
LANG_GAIN_LEFT,INT(DEFAULT_REC_LEFT_GAIN),
|
2007-01-23 13:40:44 +00:00
|
|
|
"rec left gain",NULL,UNUSED},
|
2007-06-05 07:03:30 +00:00
|
|
|
#endif /* DEFAULT_REC_LEFT_GAIN */
|
|
|
|
#ifdef DEFAULT_REC_RIGHT_GAIN
|
2008-08-06 20:12:44 +00:00
|
|
|
{F_T_INT|F_RECSETTING,&global_settings.rec_right_gain,LANG_GAIN_RIGHT,
|
2007-01-26 05:45:06 +00:00
|
|
|
INT(DEFAULT_REC_RIGHT_GAIN),
|
2007-01-23 13:40:44 +00:00
|
|
|
"rec right gain",NULL,UNUSED},
|
2007-06-05 07:03:30 +00:00
|
|
|
#endif /* DEFAULT_REC_RIGHT_GAIN */
|
2007-01-23 13:40:44 +00:00
|
|
|
#if CONFIG_CODEC == MAS3587F
|
2007-05-29 04:39:11 +00:00
|
|
|
{F_T_INT|F_RECSETTING,&global_settings.rec_frequency,
|
2013-07-06 21:14:02 +00:00
|
|
|
LANG_FREQUENCY, INT(0), "rec frequency",
|
|
|
|
"44,48,32,22,24,16", UNUSED},
|
2008-05-11 23:13:59 +00:00
|
|
|
INT_SETTING(F_RECSETTING, rec_quality, LANG_RECORDING_QUALITY, 5,
|
|
|
|
"rec quality", UNIT_INT, 0, 7, 1, NULL, NULL, NULL),
|
|
|
|
OFFON_SETTING(F_RECSETTING, rec_editable, LANG_RECORDING_EDITABLE, false,
|
|
|
|
"editable recordings", NULL),
|
2007-01-23 13:40:44 +00:00
|
|
|
#endif /* CONFIG_CODEC == MAS3587F */
|
|
|
|
#if CONFIG_CODEC == SWCODEC
|
2007-05-29 04:39:11 +00:00
|
|
|
{F_T_INT|F_RECSETTING,&global_settings.rec_frequency,
|
2013-07-06 21:14:02 +00:00
|
|
|
LANG_FREQUENCY,INT(REC_FREQ_DEFAULT),
|
2007-01-23 13:40:44 +00:00
|
|
|
"rec frequency",REC_FREQ_CFG_VAL_LIST,UNUSED},
|
2007-05-29 04:39:11 +00:00
|
|
|
{F_T_INT|F_RECSETTING,&global_settings.rec_format,
|
|
|
|
LANG_RECORDING_FORMAT,INT(REC_FORMAT_DEFAULT),
|
2007-01-23 13:40:44 +00:00
|
|
|
"rec format",REC_FORMAT_CFG_VAL_LIST,UNUSED},
|
|
|
|
/** Encoder settings start - keep these together **/
|
|
|
|
/* aiff_enc */
|
|
|
|
/* (no settings yet) */
|
|
|
|
/* mp3_enc */
|
2007-05-29 04:39:11 +00:00
|
|
|
{F_T_INT|F_RECSETTING, &global_settings.mp3_enc_config.bitrate,-1,
|
|
|
|
INT(MP3_ENC_BITRATE_CFG_DEFAULT),
|
2007-01-23 13:40:44 +00:00
|
|
|
"mp3_enc bitrate",MP3_ENC_BITRATE_CFG_VALUE_LIST,UNUSED},
|
|
|
|
/* wav_enc */
|
|
|
|
/* (no settings yet) */
|
|
|
|
/* wavpack_enc */
|
|
|
|
/* (no settings yet) */
|
|
|
|
/** Encoder settings end **/
|
|
|
|
#endif /* CONFIG_CODEC == SWCODEC */
|
|
|
|
/* values for the trigger */
|
2008-05-28 10:55:39 +00:00
|
|
|
INT_SETTING(F_RECSETTING, rec_start_thres_db, LANG_RECORD_START_THRESHOLD, -35,
|
2013-04-20 08:06:13 +00:00
|
|
|
"trigger start threshold dB", UNIT_DB, -89, 0, 1, NULL, NULL, NULL),
|
2008-05-28 10:55:39 +00:00
|
|
|
INT_SETTING(F_RECSETTING, rec_start_thres_linear, LANG_RECORD_START_THRESHOLD, 5,
|
|
|
|
"trigger start threshold linear", UNIT_PERCENT, 0, 100, 1, NULL, NULL, NULL),
|
|
|
|
INT_SETTING(F_RECSETTING, rec_stop_thres_db, LANG_RECORD_STOP_THRESHOLD, -45,
|
2013-04-20 08:06:13 +00:00
|
|
|
"trigger stop threshold dB", UNIT_DB, -89, 0, 1, NULL, NULL, NULL),
|
2008-05-28 10:55:39 +00:00
|
|
|
INT_SETTING(F_RECSETTING, rec_stop_thres_linear, LANG_RECORD_STOP_THRESHOLD, 10,
|
|
|
|
"trigger stop threshold linear", UNIT_PERCENT, 0, 100, 1, NULL, NULL, NULL),
|
Auto-Ranging Time Formatting For Menus (hh:mm:ss:mss)
Unifies time formatting in settings_list.c allows time format to
display as HH:MM:SS.MSS or any consecutive combination thereof
(hh:mm:ss, mm:ss, mm:ss.mss, ss.mss, hh, mm, ss ,mss)
works in INT and TABLE settings with the addition of flag 'F_TIME_SETTING'
Time is auto-ranged dependent on value
Adds talk_time_intervals to allow time values to be spoken similar to
display format: x Hours, x Minutes, x Seconds, x Milliseconds
Table lookups merged or removed from recording, clip meter and lcd timeout
-String_Choice replaced with TABLE_SETTING or INT_SETTING for these
functions as well, cleaned-up cfg_vals that get saved to cfgfile
RTL Languages ARE supported
Negative values ARE supported
Backlight on/off are now Always and Never to share formatter with LCD
Timeout
Added flag to allow ranged units to be locked to a minimum index
Added flag to allow leading zero to be supressed from the largest unit
merged talk_time_unit() and talk_time_intervals()
optimized time_split()
optimized format_time_auto()
Backlight time-out list same as original
Change-Id: I59027c62d3f2956bd16fdcc1a48b2ac32c084abd
2018-12-18 04:27:55 +00:00
|
|
|
TABLE_SETTING_LIST(F_TIME_SETTING | F_RECSETTING, rec_start_duration,
|
|
|
|
LANG_MIN_DURATION, 0, "trigger start duration",
|
|
|
|
off, UNIT_SEC, NULL, NULL, NULL, 13, time_recording_trigger),
|
|
|
|
TABLE_SETTING_LIST(F_TIME_SETTING | F_RECSETTING, rec_stop_postrec,
|
|
|
|
LANG_MIN_DURATION, 0, "trigger stop duration",
|
|
|
|
off, UNIT_SEC, NULL, NULL, NULL, 13, time_recording_trigger),
|
|
|
|
TABLE_SETTING_LIST(F_TIME_SETTING | F_RECSETTING, rec_stop_gap,
|
|
|
|
LANG_RECORD_STOP_GAP, 1, "trigger min gap",
|
|
|
|
off, UNIT_SEC, NULL, NULL, NULL, 13, time_recording_trigger),
|
2008-05-28 10:55:39 +00:00
|
|
|
CHOICE_SETTING(F_RECSETTING, rec_trigger_mode, LANG_RECORD_TRIGGER, TRIG_MODE_OFF,
|
|
|
|
"trigger mode","off,once,repeat", NULL ,3,
|
|
|
|
ID2P(LANG_OFF), ID2P(LANG_RECORD_TRIG_NOREARM), ID2P(LANG_REPEAT)),
|
|
|
|
CHOICE_SETTING(F_RECSETTING, rec_trigger_type, LANG_RECORD_TRIGGER_TYPE, TRIG_TYPE_STOP,
|
2008-08-10 08:09:43 +00:00
|
|
|
"trigger type","stop,pause,nf stp", NULL ,3,
|
2008-05-28 10:55:39 +00:00
|
|
|
ID2P(LANG_RECORD_TRIGGER_STOP), ID2P(LANG_PAUSE), ID2P(LANG_RECORD_TRIGGER_NEWFILESTP)),
|
2011-06-05 12:36:27 +00:00
|
|
|
#endif /* HAVE_RECORDING */
|
|
|
|
|
|
|
|
#ifdef HAVE_HISTOGRAM
|
2010-03-03 22:16:08 +00:00
|
|
|
/* TO DO: additional restictions of following REP items? */
|
Auto-Ranging Time Formatting For Menus (hh:mm:ss:mss)
Unifies time formatting in settings_list.c allows time format to
display as HH:MM:SS.MSS or any consecutive combination thereof
(hh:mm:ss, mm:ss, mm:ss.mss, ss.mss, hh, mm, ss ,mss)
works in INT and TABLE settings with the addition of flag 'F_TIME_SETTING'
Time is auto-ranged dependent on value
Adds talk_time_intervals to allow time values to be spoken similar to
display format: x Hours, x Minutes, x Seconds, x Milliseconds
Table lookups merged or removed from recording, clip meter and lcd timeout
-String_Choice replaced with TABLE_SETTING or INT_SETTING for these
functions as well, cleaned-up cfg_vals that get saved to cfgfile
RTL Languages ARE supported
Negative values ARE supported
Backlight on/off are now Always and Never to share formatter with LCD
Timeout
Added flag to allow ranged units to be locked to a minimum index
Added flag to allow leading zero to be supressed from the largest unit
merged talk_time_unit() and talk_time_intervals()
optimized time_split()
optimized format_time_auto()
Backlight time-out list same as original
Change-Id: I59027c62d3f2956bd16fdcc1a48b2ac32c084abd
2018-12-18 04:27:55 +00:00
|
|
|
INT_SETTING(F_TIME_SETTING | F_RECSETTING, histogram_interval,
|
|
|
|
LANG_HISTOGRAM_INTERVAL, 0,
|
|
|
|
"histogram interval", UNIT_SEC, 0,4,1,
|
|
|
|
NULL, NULL, NULL),
|
2011-06-05 12:36:27 +00:00
|
|
|
#endif /* HAVE_HISTOGRAM */
|
2007-01-23 13:40:44 +00:00
|
|
|
|
|
|
|
#ifdef HAVE_SPDIF_POWER
|
2007-12-24 22:35:31 +00:00
|
|
|
OFFON_SETTING(F_SOUNDSETTING, spdif_enable, LANG_SPDIF_ENABLE, false,
|
2008-05-11 23:13:59 +00:00
|
|
|
"spdif enable", spdif_power_enable),
|
2007-01-23 13:40:44 +00:00
|
|
|
#endif
|
2007-02-12 14:22:35 +00:00
|
|
|
CHOICE_SETTING(0, next_folder, LANG_NEXT_FOLDER, FOLDER_ADVANCE_OFF,
|
2008-05-11 23:13:59 +00:00
|
|
|
"folder navigation", "off,on,random",NULL ,3,
|
|
|
|
ID2P(LANG_SET_BOOL_NO), ID2P(LANG_SET_BOOL_YES),
|
|
|
|
ID2P(LANG_RANDOM)),
|
2012-03-19 09:56:38 +00:00
|
|
|
BOOL_SETTING(0, constrain_next_folder, LANG_CONSTRAIN_NEXT_FOLDER, false,
|
|
|
|
"constrain next folder", off_on,
|
|
|
|
LANG_SET_BOOL_YES, LANG_SET_BOOL_NO, NULL),
|
2009-01-03 13:41:54 +00:00
|
|
|
|
|
|
|
#ifdef HAVE_TAGCACHE
|
Selective Backlight/Advanced Softlock - Selective actions based on context
Selective backlight allows the user to choose actions that will not
enable the backlight when pressed.
Advanced softlock allows user to choose actions that will not be
blocked by screenlock on devices without a hold button.
Both only occur in FM and WPS Contexts.
Update:
Back from the dead
-Cleaned up code, removed unnecessary calls, re-arranged last filter action
timeout conditional to work in case last_filtered_action_tick was never set
-Added entries to the manual
-Fixed back button on some menus not activating backlight
-Made menus more intuitive, no actions selected now changes menu item to off.
-Added talk fuctionality.
-Added option to disable selective backlight while on external power.
-Rewrote backlight and softlock handling code to fix issue with scrollwheels
-Menu changed to have toggle(yes/no) and settings
-Optimized selective actions lookup
-Added option to disable notification of 'buttons locked' while softlocked
-Removed uneeded code, consolidated action lookup to single function
-Fixed incorrect name on selective softlock menu
-Added option to disable touch on touchscreen devices
-Fixed backlight on original screenlock without selective screenlock active
-Added text selection in mask_select for when show_icons is off
-Fixed voice in mask_select to speak if voice is defined instead of spelling
-Added more lang defines (play skip seek)
-Added option to disable unknown keys turning on backlight
-Fixed Conditional argument In wrong place causing players without
backlight to fail to build
-Fixed Disable Unknown blocking detection of context change
-Fixed canceling menu didn't update new settings
-Added Autolock on backlight off
-Removed backlight_on_force from backlight.c, Now sets ignore next to false
and uses backlight_on
-Cleaned up autolock code added strings to lang file
-Fixed issue where rapid presses would bypass softlock
-Removed old softlock code, Cleaned selective actions code
-Changed menu to match existing RB menus
-Fixed Backlight_on_Hold blocked by backlight_ignore_next
-Fixed ignore_next for ipod
-Fixed bug allowing context with softlock to bypass selective backlight
-Changed mask_select to no longer prompt for changes to be saved
-Changed menu names
-Added ignore timeout to allow ipod scroll wheel to work properly and other
players to still work properly, removed some previous code including
ignore_event
-Increased ignore timeout to prevent sd card accesses from interrupting action
code and turning on backlight
-Changed Unknown action to unmapped action in menu, changed handling code
-Removed unneeded logic and variables for handling unfiltered actions
-Reverted unmapped action code to previous functionality
-Added manual entries (thanks JohnB)
-Removed elusive unhandled unicode character from manual, changed formatting slightly
Actions:
Volume,Play,Seek,Skip
Extras:
Disable unmapped actions
Disable selective backlight on external power
Disable touch during softlock on touchscreen devices
Disable softlock notifications (power button still notifies)
Autolock on backlight off
Method:
Adds a function to ignore backlight on next call
If selected action occurs backlight is forced on,
Filter_first_keypress stays intact.
Selective softlock allows selected actions through, bypasses the normal
softlock routine.
ToDo:
DONE
previous commit (#1) has attribution for folder_select.c which mask_select
is based from.
Change-Id: I08132ddcfd64c81751ef23b720f3ec6d68695fe4
2016-11-22 05:21:31 +00:00
|
|
|
#if CONFIG_CODEC == SWCODEC
|
2011-02-08 20:31:22 +00:00
|
|
|
BOOL_SETTING(0, autoresume_enable, LANG_AUTORESUME, false,
|
2011-01-02 02:49:13 +00:00
|
|
|
"autoresume enable", off_on,
|
2011-02-08 20:31:22 +00:00
|
|
|
LANG_SET_BOOL_YES, LANG_SET_BOOL_NO, NULL),
|
2011-02-08 20:31:35 +00:00
|
|
|
CHOICE_SETTING(0, autoresume_automatic, LANG_AUTORESUME_AUTOMATIC,
|
|
|
|
AUTORESUME_NEXTTRACK_NEVER,
|
|
|
|
"autoresume next track", "never,all,custom",
|
|
|
|
NULL, 3,
|
|
|
|
ID2P(LANG_SET_BOOL_NO),
|
|
|
|
ID2P(LANG_ALWAYS),
|
|
|
|
ID2P(LANG_AUTORESUME_CUSTOM)),
|
2011-02-11 00:20:03 +00:00
|
|
|
TEXT_SETTING(0, autoresume_paths, "autoresume next track paths",
|
|
|
|
"/podcast:/podcasts", NULL, NULL),
|
Selective Backlight/Advanced Softlock - Selective actions based on context
Selective backlight allows the user to choose actions that will not
enable the backlight when pressed.
Advanced softlock allows user to choose actions that will not be
blocked by screenlock on devices without a hold button.
Both only occur in FM and WPS Contexts.
Update:
Back from the dead
-Cleaned up code, removed unnecessary calls, re-arranged last filter action
timeout conditional to work in case last_filtered_action_tick was never set
-Added entries to the manual
-Fixed back button on some menus not activating backlight
-Made menus more intuitive, no actions selected now changes menu item to off.
-Added talk fuctionality.
-Added option to disable selective backlight while on external power.
-Rewrote backlight and softlock handling code to fix issue with scrollwheels
-Menu changed to have toggle(yes/no) and settings
-Optimized selective actions lookup
-Added option to disable notification of 'buttons locked' while softlocked
-Removed uneeded code, consolidated action lookup to single function
-Fixed incorrect name on selective softlock menu
-Added option to disable touch on touchscreen devices
-Fixed backlight on original screenlock without selective screenlock active
-Added text selection in mask_select for when show_icons is off
-Fixed voice in mask_select to speak if voice is defined instead of spelling
-Added more lang defines (play skip seek)
-Added option to disable unknown keys turning on backlight
-Fixed Conditional argument In wrong place causing players without
backlight to fail to build
-Fixed Disable Unknown blocking detection of context change
-Fixed canceling menu didn't update new settings
-Added Autolock on backlight off
-Removed backlight_on_force from backlight.c, Now sets ignore next to false
and uses backlight_on
-Cleaned up autolock code added strings to lang file
-Fixed issue where rapid presses would bypass softlock
-Removed old softlock code, Cleaned selective actions code
-Changed menu to match existing RB menus
-Fixed Backlight_on_Hold blocked by backlight_ignore_next
-Fixed ignore_next for ipod
-Fixed bug allowing context with softlock to bypass selective backlight
-Changed mask_select to no longer prompt for changes to be saved
-Changed menu names
-Added ignore timeout to allow ipod scroll wheel to work properly and other
players to still work properly, removed some previous code including
ignore_event
-Increased ignore timeout to prevent sd card accesses from interrupting action
code and turning on backlight
-Changed Unknown action to unmapped action in menu, changed handling code
-Removed unneeded logic and variables for handling unfiltered actions
-Reverted unmapped action code to previous functionality
-Added manual entries (thanks JohnB)
-Removed elusive unhandled unicode character from manual, changed formatting slightly
Actions:
Volume,Play,Seek,Skip
Extras:
Disable unmapped actions
Disable selective backlight on external power
Disable touch during softlock on touchscreen devices
Disable softlock notifications (power button still notifies)
Autolock on backlight off
Method:
Adds a function to ignore backlight on next call
If selected action occurs backlight is forced on,
Filter_first_keypress stays intact.
Selective softlock allows selected actions through, bypasses the normal
softlock routine.
ToDo:
DONE
previous commit (#1) has attribution for folder_select.c which mask_select
is based from.
Change-Id: I08132ddcfd64c81751ef23b720f3ec6d68695fe4
2016-11-22 05:21:31 +00:00
|
|
|
#endif
|
2011-01-12 16:20:48 +00:00
|
|
|
|
2008-05-11 23:13:59 +00:00
|
|
|
OFFON_SETTING(0, runtimedb, LANG_RUNTIMEDB_ACTIVE, false,
|
|
|
|
"gather runtime data", NULL),
|
2012-07-18 21:36:57 +00:00
|
|
|
TEXT_SETTING(0, tagcache_scan_paths, "database scan paths",
|
|
|
|
DEFAULT_TAGCACHE_SCAN_PATHS, NULL, NULL),
|
2009-01-03 13:41:54 +00:00
|
|
|
#endif
|
2007-01-23 13:40:44 +00:00
|
|
|
|
|
|
|
#if CONFIG_CODEC == SWCODEC
|
2007-01-26 05:45:06 +00:00
|
|
|
/* replay gain */
|
2012-04-30 20:27:01 +00:00
|
|
|
CHOICE_SETTING(F_SOUNDSETTING, replaygain_settings.type,
|
|
|
|
LANG_REPLAYGAIN_MODE, REPLAYGAIN_SHUFFLE, "replaygain type",
|
2009-06-20 21:13:24 +00:00
|
|
|
"track,album,track shuffle,off", NULL, 4, ID2P(LANG_TRACK_GAIN),
|
|
|
|
ID2P(LANG_ALBUM_GAIN), ID2P(LANG_SHUFFLE_GAIN), ID2P(LANG_OFF)),
|
2012-04-30 20:27:01 +00:00
|
|
|
OFFON_SETTING(F_SOUNDSETTING, replaygain_settings.noclip,
|
|
|
|
LANG_REPLAYGAIN_NOCLIP, false, "replaygain noclip", NULL),
|
|
|
|
INT_SETTING_NOWRAP(F_SOUNDSETTING, replaygain_settings.preamp,
|
2008-05-11 23:13:59 +00:00
|
|
|
LANG_REPLAYGAIN_PREAMP, 0, "replaygain preamp",
|
|
|
|
UNIT_DB, -120, 120, 5, db_format, get_dec_talkid, NULL),
|
|
|
|
|
|
|
|
CHOICE_SETTING(0, beep, LANG_BEEP, 0, "beep", "off,weak,moderate,strong",
|
|
|
|
NULL, 4, ID2P(LANG_OFF), ID2P(LANG_WEAK),
|
|
|
|
ID2P(LANG_MODERATE), ID2P(LANG_STRONG)),
|
2007-01-26 05:45:06 +00:00
|
|
|
|
2009-08-11 02:05:38 +00:00
|
|
|
#ifdef HAVE_CROSSFADE
|
2007-01-26 05:45:06 +00:00
|
|
|
/* crossfade */
|
2008-05-11 23:13:59 +00:00
|
|
|
CHOICE_SETTING(F_SOUNDSETTING, crossfade, LANG_CROSSFADE_ENABLE, 0,
|
|
|
|
"crossfade",
|
2009-11-12 15:42:37 +00:00
|
|
|
"off,auto track change,man track skip,shuffle,shuffle or man track skip,always",
|
2009-11-11 00:48:17 +00:00
|
|
|
NULL, 6, ID2P(LANG_OFF), ID2P(LANG_AUTOTRACKSKIP),
|
|
|
|
ID2P(LANG_MANTRACKSKIP), ID2P(LANG_SHUFFLE),
|
2008-05-11 23:13:59 +00:00
|
|
|
ID2P(LANG_SHUFFLE_TRACKSKIP), ID2P(LANG_ALWAYS)),
|
Auto-Ranging Time Formatting For Menus (hh:mm:ss:mss)
Unifies time formatting in settings_list.c allows time format to
display as HH:MM:SS.MSS or any consecutive combination thereof
(hh:mm:ss, mm:ss, mm:ss.mss, ss.mss, hh, mm, ss ,mss)
works in INT and TABLE settings with the addition of flag 'F_TIME_SETTING'
Time is auto-ranged dependent on value
Adds talk_time_intervals to allow time values to be spoken similar to
display format: x Hours, x Minutes, x Seconds, x Milliseconds
Table lookups merged or removed from recording, clip meter and lcd timeout
-String_Choice replaced with TABLE_SETTING or INT_SETTING for these
functions as well, cleaned-up cfg_vals that get saved to cfgfile
RTL Languages ARE supported
Negative values ARE supported
Backlight on/off are now Always and Never to share formatter with LCD
Timeout
Added flag to allow ranged units to be locked to a minimum index
Added flag to allow leading zero to be supressed from the largest unit
merged talk_time_unit() and talk_time_intervals()
optimized time_split()
optimized format_time_auto()
Backlight time-out list same as original
Change-Id: I59027c62d3f2956bd16fdcc1a48b2ac32c084abd
2018-12-18 04:27:55 +00:00
|
|
|
INT_SETTING(F_TIME_SETTING | F_SOUNDSETTING, crossfade_fade_in_delay,
|
2008-05-11 23:13:59 +00:00
|
|
|
LANG_CROSSFADE_FADE_IN_DELAY, 0,
|
|
|
|
"crossfade fade in delay", UNIT_SEC, 0, 7, 1, NULL, NULL, NULL),
|
Auto-Ranging Time Formatting For Menus (hh:mm:ss:mss)
Unifies time formatting in settings_list.c allows time format to
display as HH:MM:SS.MSS or any consecutive combination thereof
(hh:mm:ss, mm:ss, mm:ss.mss, ss.mss, hh, mm, ss ,mss)
works in INT and TABLE settings with the addition of flag 'F_TIME_SETTING'
Time is auto-ranged dependent on value
Adds talk_time_intervals to allow time values to be spoken similar to
display format: x Hours, x Minutes, x Seconds, x Milliseconds
Table lookups merged or removed from recording, clip meter and lcd timeout
-String_Choice replaced with TABLE_SETTING or INT_SETTING for these
functions as well, cleaned-up cfg_vals that get saved to cfgfile
RTL Languages ARE supported
Negative values ARE supported
Backlight on/off are now Always and Never to share formatter with LCD
Timeout
Added flag to allow ranged units to be locked to a minimum index
Added flag to allow leading zero to be supressed from the largest unit
merged talk_time_unit() and talk_time_intervals()
optimized time_split()
optimized format_time_auto()
Backlight time-out list same as original
Change-Id: I59027c62d3f2956bd16fdcc1a48b2ac32c084abd
2018-12-18 04:27:55 +00:00
|
|
|
INT_SETTING(F_TIME_SETTING | F_SOUNDSETTING, crossfade_fade_out_delay,
|
2008-05-11 23:13:59 +00:00
|
|
|
LANG_CROSSFADE_FADE_OUT_DELAY, 0,
|
|
|
|
"crossfade fade out delay", UNIT_SEC, 0, 7, 1, NULL, NULL,NULL),
|
Auto-Ranging Time Formatting For Menus (hh:mm:ss:mss)
Unifies time formatting in settings_list.c allows time format to
display as HH:MM:SS.MSS or any consecutive combination thereof
(hh:mm:ss, mm:ss, mm:ss.mss, ss.mss, hh, mm, ss ,mss)
works in INT and TABLE settings with the addition of flag 'F_TIME_SETTING'
Time is auto-ranged dependent on value
Adds talk_time_intervals to allow time values to be spoken similar to
display format: x Hours, x Minutes, x Seconds, x Milliseconds
Table lookups merged or removed from recording, clip meter and lcd timeout
-String_Choice replaced with TABLE_SETTING or INT_SETTING for these
functions as well, cleaned-up cfg_vals that get saved to cfgfile
RTL Languages ARE supported
Negative values ARE supported
Backlight on/off are now Always and Never to share formatter with LCD
Timeout
Added flag to allow ranged units to be locked to a minimum index
Added flag to allow leading zero to be supressed from the largest unit
merged talk_time_unit() and talk_time_intervals()
optimized time_split()
optimized format_time_auto()
Backlight time-out list same as original
Change-Id: I59027c62d3f2956bd16fdcc1a48b2ac32c084abd
2018-12-18 04:27:55 +00:00
|
|
|
INT_SETTING(F_TIME_SETTING | F_SOUNDSETTING, crossfade_fade_in_duration,
|
2008-05-11 23:13:59 +00:00
|
|
|
LANG_CROSSFADE_FADE_IN_DURATION, 2,
|
Auto-Ranging Time Formatting For Menus (hh:mm:ss:mss)
Unifies time formatting in settings_list.c allows time format to
display as HH:MM:SS.MSS or any consecutive combination thereof
(hh:mm:ss, mm:ss, mm:ss.mss, ss.mss, hh, mm, ss ,mss)
works in INT and TABLE settings with the addition of flag 'F_TIME_SETTING'
Time is auto-ranged dependent on value
Adds talk_time_intervals to allow time values to be spoken similar to
display format: x Hours, x Minutes, x Seconds, x Milliseconds
Table lookups merged or removed from recording, clip meter and lcd timeout
-String_Choice replaced with TABLE_SETTING or INT_SETTING for these
functions as well, cleaned-up cfg_vals that get saved to cfgfile
RTL Languages ARE supported
Negative values ARE supported
Backlight on/off are now Always and Never to share formatter with LCD
Timeout
Added flag to allow ranged units to be locked to a minimum index
Added flag to allow leading zero to be supressed from the largest unit
merged talk_time_unit() and talk_time_intervals()
optimized time_split()
optimized format_time_auto()
Backlight time-out list same as original
Change-Id: I59027c62d3f2956bd16fdcc1a48b2ac32c084abd
2018-12-18 04:27:55 +00:00
|
|
|
"crossfade fade in duration", UNIT_SEC, 0, 15, 1, NULL, NULL, NULL),
|
|
|
|
INT_SETTING(F_TIME_SETTING | F_SOUNDSETTING, crossfade_fade_out_duration,
|
2008-05-11 23:13:59 +00:00
|
|
|
LANG_CROSSFADE_FADE_OUT_DURATION, 2,
|
Auto-Ranging Time Formatting For Menus (hh:mm:ss:mss)
Unifies time formatting in settings_list.c allows time format to
display as HH:MM:SS.MSS or any consecutive combination thereof
(hh:mm:ss, mm:ss, mm:ss.mss, ss.mss, hh, mm, ss ,mss)
works in INT and TABLE settings with the addition of flag 'F_TIME_SETTING'
Time is auto-ranged dependent on value
Adds talk_time_intervals to allow time values to be spoken similar to
display format: x Hours, x Minutes, x Seconds, x Milliseconds
Table lookups merged or removed from recording, clip meter and lcd timeout
-String_Choice replaced with TABLE_SETTING or INT_SETTING for these
functions as well, cleaned-up cfg_vals that get saved to cfgfile
RTL Languages ARE supported
Negative values ARE supported
Backlight on/off are now Always and Never to share formatter with LCD
Timeout
Added flag to allow ranged units to be locked to a minimum index
Added flag to allow leading zero to be supressed from the largest unit
merged talk_time_unit() and talk_time_intervals()
optimized time_split()
optimized format_time_auto()
Backlight time-out list same as original
Change-Id: I59027c62d3f2956bd16fdcc1a48b2ac32c084abd
2018-12-18 04:27:55 +00:00
|
|
|
"crossfade fade out duration", UNIT_SEC, 0, 15, 1, NULL, NULL, NULL),
|
2008-05-11 23:13:59 +00:00
|
|
|
CHOICE_SETTING(F_SOUNDSETTING, crossfade_fade_out_mixmode,
|
|
|
|
LANG_CROSSFADE_FADE_OUT_MODE, 0,
|
|
|
|
"crossfade fade out mode", "crossfade,mix", NULL, 2,
|
|
|
|
ID2P(LANG_CROSSFADE), ID2P(LANG_MIX)),
|
2009-08-11 01:09:05 +00:00
|
|
|
#endif
|
2008-05-11 23:13:59 +00:00
|
|
|
|
2007-01-26 05:45:06 +00:00
|
|
|
/* crossfeed */
|
2012-05-01 07:58:27 +00:00
|
|
|
CHOICE_SETTING(F_SOUNDSETTING, crossfeed, LANG_CROSSFEED, 0,"crossfeed",
|
|
|
|
"off,meier,custom", dsp_set_crossfeed_type, 3,
|
|
|
|
ID2P(LANG_OFF), ID2P(LANG_CROSSFEED_MEIER),
|
|
|
|
ID2P(LANG_CROSSFEED_CUSTOM)),
|
2008-05-11 23:13:59 +00:00
|
|
|
INT_SETTING_NOWRAP(F_SOUNDSETTING, crossfeed_direct_gain,
|
|
|
|
LANG_CROSSFEED_DIRECT_GAIN, -15,
|
|
|
|
"crossfeed direct gain", UNIT_DB, -60, 0, 5,
|
|
|
|
db_format, get_dec_talkid,dsp_set_crossfeed_direct_gain),
|
|
|
|
INT_SETTING_NOWRAP(F_SOUNDSETTING, crossfeed_cross_gain,
|
|
|
|
LANG_CROSSFEED_CROSS_GAIN, -60,
|
|
|
|
"crossfeed cross gain", UNIT_DB, -120, -30, 5,
|
|
|
|
db_format, get_dec_talkid, crossfeed_cross_set),
|
|
|
|
INT_SETTING_NOWRAP(F_SOUNDSETTING, crossfeed_hf_attenuation,
|
|
|
|
LANG_CROSSFEED_HF_ATTENUATION, -160,
|
|
|
|
"crossfeed hf attenuation", UNIT_DB, -240, -60, 5,
|
|
|
|
db_format, get_dec_talkid, crossfeed_cross_set),
|
|
|
|
INT_SETTING_NOWRAP(F_SOUNDSETTING, crossfeed_hf_cutoff,
|
|
|
|
LANG_CROSSFEED_HF_CUTOFF, 700,
|
|
|
|
"crossfeed hf cutoff", UNIT_HERTZ, 500, 2000, 100,
|
|
|
|
NULL, NULL, crossfeed_cross_set),
|
2007-12-07 10:59:07 +00:00
|
|
|
|
2007-01-23 13:40:44 +00:00
|
|
|
/* equalizer */
|
2007-12-07 10:59:07 +00:00
|
|
|
OFFON_SETTING(F_EQSETTING, eq_enabled, LANG_EQUALIZER_ENABLED, false,
|
2008-05-11 23:13:59 +00:00
|
|
|
"eq enabled", NULL),
|
2013-02-05 12:20:17 +00:00
|
|
|
|
2007-12-07 10:59:07 +00:00
|
|
|
INT_SETTING_NOWRAP(F_EQSETTING, eq_precut, LANG_EQUALIZER_PRECUT, 0,
|
2013-03-04 23:15:27 +00:00
|
|
|
"eq precut", UNIT_DB, 0, 240, 1, eq_precut_format,
|
2008-05-11 23:13:59 +00:00
|
|
|
get_precut_talkid, dsp_set_eq_precut),
|
2013-02-05 12:20:17 +00:00
|
|
|
|
2007-01-23 13:40:44 +00:00
|
|
|
/* 0..32768 Hz */
|
2013-02-05 12:20:17 +00:00
|
|
|
INT_SETTING_NOWRAP(F_DEPRECATED|F_EQSETTING, eq_band_settings[0].cutoff, LANG_EQUALIZER_BAND_CUTOFF,
|
2013-01-22 18:08:16 +00:00
|
|
|
32, "eq band 0 cutoff", UNIT_HERTZ, EQ_CUTOFF_MIN,
|
2008-05-11 23:13:59 +00:00
|
|
|
EQ_CUTOFF_MAX, EQ_CUTOFF_STEP, NULL, NULL, NULL),
|
2013-02-05 12:20:17 +00:00
|
|
|
INT_SETTING_NOWRAP(F_DEPRECATED|F_EQSETTING, eq_band_settings[1].cutoff, LANG_EQUALIZER_BAND_CENTER,
|
2013-01-22 18:08:16 +00:00
|
|
|
64, "eq band 1 cutoff", UNIT_HERTZ, EQ_CUTOFF_MIN,
|
2008-05-11 23:13:59 +00:00
|
|
|
EQ_CUTOFF_MAX, EQ_CUTOFF_STEP, NULL, NULL, NULL),
|
2013-02-05 12:20:17 +00:00
|
|
|
INT_SETTING_NOWRAP(F_DEPRECATED|F_EQSETTING, eq_band_settings[2].cutoff, LANG_EQUALIZER_BAND_CENTER,
|
2013-01-22 18:08:16 +00:00
|
|
|
125, "eq band 2 cutoff", UNIT_HERTZ, EQ_CUTOFF_MIN,
|
2008-05-11 23:13:59 +00:00
|
|
|
EQ_CUTOFF_MAX, EQ_CUTOFF_STEP, NULL, NULL, NULL),
|
2013-02-05 12:20:17 +00:00
|
|
|
INT_SETTING_NOWRAP(F_DEPRECATED|F_EQSETTING, eq_band_settings[3].cutoff, LANG_EQUALIZER_BAND_CENTER,
|
2013-01-22 18:08:16 +00:00
|
|
|
250, "eq band 3 cutoff", UNIT_HERTZ, EQ_CUTOFF_MIN,
|
2008-05-11 23:13:59 +00:00
|
|
|
EQ_CUTOFF_MAX, EQ_CUTOFF_STEP, NULL, NULL, NULL),
|
2013-02-05 12:20:17 +00:00
|
|
|
INT_SETTING_NOWRAP(F_DEPRECATED|F_EQSETTING, eq_band_settings[4].cutoff, LANG_EQUALIZER_BAND_CENTER,
|
2013-01-22 18:08:16 +00:00
|
|
|
500, "eq band 4 cutoff", UNIT_HERTZ, EQ_CUTOFF_MIN,
|
|
|
|
EQ_CUTOFF_MAX, EQ_CUTOFF_STEP, NULL, NULL, NULL),
|
2013-02-05 12:20:17 +00:00
|
|
|
INT_SETTING_NOWRAP(F_DEPRECATED|F_EQSETTING, eq_band_settings[5].cutoff, LANG_EQUALIZER_BAND_CENTER,
|
2013-01-22 18:08:16 +00:00
|
|
|
1000, "eq band 5 cutoff", UNIT_HERTZ, EQ_CUTOFF_MIN,
|
|
|
|
EQ_CUTOFF_MAX, EQ_CUTOFF_STEP, NULL, NULL, NULL),
|
2013-02-05 12:20:17 +00:00
|
|
|
INT_SETTING_NOWRAP(F_DEPRECATED|F_EQSETTING, eq_band_settings[6].cutoff, LANG_EQUALIZER_BAND_CENTER,
|
2013-01-22 18:08:16 +00:00
|
|
|
2000, "eq band 6 cutoff", UNIT_HERTZ, EQ_CUTOFF_MIN,
|
|
|
|
EQ_CUTOFF_MAX, EQ_CUTOFF_STEP, NULL, NULL, NULL),
|
2013-02-05 12:20:17 +00:00
|
|
|
INT_SETTING_NOWRAP(F_DEPRECATED|F_EQSETTING, eq_band_settings[7].cutoff, LANG_EQUALIZER_BAND_CENTER,
|
2013-01-22 18:08:16 +00:00
|
|
|
4000, "eq band 7 cutoff", UNIT_HERTZ, EQ_CUTOFF_MIN,
|
|
|
|
EQ_CUTOFF_MAX, EQ_CUTOFF_STEP, NULL, NULL, NULL),
|
2013-02-05 12:20:17 +00:00
|
|
|
INT_SETTING_NOWRAP(F_DEPRECATED|F_EQSETTING, eq_band_settings[8].cutoff, LANG_EQUALIZER_BAND_CENTER,
|
2013-01-22 18:08:16 +00:00
|
|
|
8000, "eq band 8 cutoff", UNIT_HERTZ, EQ_CUTOFF_MIN,
|
|
|
|
EQ_CUTOFF_MAX, EQ_CUTOFF_STEP, NULL, NULL, NULL),
|
2013-02-05 12:20:17 +00:00
|
|
|
INT_SETTING_NOWRAP(F_DEPRECATED|F_EQSETTING, eq_band_settings[9].cutoff, LANG_EQUALIZER_BAND_CUTOFF,
|
2013-01-22 18:08:16 +00:00
|
|
|
16000, "eq band 9 cutoff", UNIT_HERTZ, EQ_CUTOFF_MIN,
|
2008-05-11 23:13:59 +00:00
|
|
|
EQ_CUTOFF_MAX, EQ_CUTOFF_STEP, NULL, NULL, NULL),
|
2007-01-23 13:40:44 +00:00
|
|
|
/* 0..64 (or 0.0 to 6.4) */
|
2013-02-05 12:20:17 +00:00
|
|
|
INT_SETTING_NOWRAP(F_DEPRECATED|F_EQSETTING, eq_band_settings[0].q, LANG_EQUALIZER_BAND_Q, 7,
|
2008-05-11 23:13:59 +00:00
|
|
|
"eq band 0 q", UNIT_INT, EQ_Q_MIN, EQ_Q_MAX, EQ_Q_STEP,
|
|
|
|
eq_q_format, get_dec_talkid, NULL),
|
2013-02-05 12:20:17 +00:00
|
|
|
INT_SETTING_NOWRAP(F_DEPRECATED|F_EQSETTING, eq_band_settings[1].q, LANG_EQUALIZER_BAND_Q, 10,
|
2008-05-11 23:13:59 +00:00
|
|
|
"eq band 1 q", UNIT_INT, EQ_Q_MIN, EQ_Q_MAX, EQ_Q_STEP,
|
|
|
|
eq_q_format, get_dec_talkid, NULL),
|
2013-02-05 12:20:17 +00:00
|
|
|
INT_SETTING_NOWRAP(F_DEPRECATED|F_EQSETTING, eq_band_settings[2].q, LANG_EQUALIZER_BAND_Q, 10,
|
2008-05-11 23:13:59 +00:00
|
|
|
"eq band 2 q", UNIT_INT, EQ_Q_MIN, EQ_Q_MAX, EQ_Q_STEP,
|
|
|
|
eq_q_format, get_dec_talkid, NULL),
|
2013-02-05 12:20:17 +00:00
|
|
|
INT_SETTING_NOWRAP(F_DEPRECATED|F_EQSETTING, eq_band_settings[3].q, LANG_EQUALIZER_BAND_Q, 10,
|
2008-05-11 23:13:59 +00:00
|
|
|
"eq band 3 q", UNIT_INT, EQ_Q_MIN, EQ_Q_MAX, EQ_Q_STEP,
|
|
|
|
eq_q_format, get_dec_talkid, NULL),
|
2013-02-05 12:20:17 +00:00
|
|
|
INT_SETTING_NOWRAP(F_DEPRECATED|F_EQSETTING, eq_band_settings[4].q, LANG_EQUALIZER_BAND_Q, 10,
|
2008-05-11 23:13:59 +00:00
|
|
|
"eq band 4 q", UNIT_INT, EQ_Q_MIN, EQ_Q_MAX, EQ_Q_STEP,
|
|
|
|
eq_q_format, get_dec_talkid, NULL),
|
2013-02-05 12:20:17 +00:00
|
|
|
INT_SETTING_NOWRAP(F_DEPRECATED|F_EQSETTING, eq_band_settings[5].q, LANG_EQUALIZER_BAND_Q, 10,
|
2013-01-22 18:08:16 +00:00
|
|
|
"eq band 5 q", UNIT_INT, EQ_Q_MIN, EQ_Q_MAX, EQ_Q_STEP,
|
|
|
|
eq_q_format, get_dec_talkid, NULL),
|
2013-02-05 12:20:17 +00:00
|
|
|
INT_SETTING_NOWRAP(F_DEPRECATED|F_EQSETTING, eq_band_settings[6].q, LANG_EQUALIZER_BAND_Q, 10,
|
2013-01-22 18:08:16 +00:00
|
|
|
"eq band 6 q", UNIT_INT, EQ_Q_MIN, EQ_Q_MAX, EQ_Q_STEP,
|
|
|
|
eq_q_format, get_dec_talkid, NULL),
|
2013-02-05 12:20:17 +00:00
|
|
|
INT_SETTING_NOWRAP(F_DEPRECATED|F_EQSETTING, eq_band_settings[7].q, LANG_EQUALIZER_BAND_Q, 10,
|
2013-01-22 18:08:16 +00:00
|
|
|
"eq band 7 q", UNIT_INT, EQ_Q_MIN, EQ_Q_MAX, EQ_Q_STEP,
|
|
|
|
eq_q_format, get_dec_talkid, NULL),
|
2013-02-05 12:20:17 +00:00
|
|
|
INT_SETTING_NOWRAP(F_DEPRECATED|F_EQSETTING, eq_band_settings[8].q, LANG_EQUALIZER_BAND_Q, 10,
|
2013-01-22 18:08:16 +00:00
|
|
|
"eq band 8 q", UNIT_INT, EQ_Q_MIN, EQ_Q_MAX, EQ_Q_STEP,
|
|
|
|
eq_q_format, get_dec_talkid, NULL),
|
2013-02-05 12:20:17 +00:00
|
|
|
INT_SETTING_NOWRAP(F_DEPRECATED|F_EQSETTING, eq_band_settings[9].q, LANG_EQUALIZER_BAND_Q, 7,
|
2013-01-22 18:08:16 +00:00
|
|
|
"eq band 9 q", UNIT_INT, EQ_Q_MIN, EQ_Q_MAX, EQ_Q_STEP,
|
|
|
|
eq_q_format, get_dec_talkid, NULL),
|
2007-01-23 13:40:44 +00:00
|
|
|
/* -240..240 (or -24db to +24db) */
|
2013-02-05 12:20:17 +00:00
|
|
|
INT_SETTING_NOWRAP(F_DEPRECATED|F_EQSETTING, eq_band_settings[0].gain, LANG_GAIN, 0,
|
2008-05-11 23:13:59 +00:00
|
|
|
"eq band 0 gain", UNIT_DB, EQ_GAIN_MIN, EQ_GAIN_MAX,
|
|
|
|
EQ_GAIN_STEP, db_format, get_dec_talkid, NULL),
|
2013-02-05 12:20:17 +00:00
|
|
|
INT_SETTING_NOWRAP(F_DEPRECATED|F_EQSETTING, eq_band_settings[1].gain, LANG_GAIN, 0,
|
2008-05-11 23:13:59 +00:00
|
|
|
"eq band 1 gain", UNIT_DB, EQ_GAIN_MIN, EQ_GAIN_MAX,
|
|
|
|
EQ_GAIN_STEP, db_format, get_dec_talkid, NULL),
|
2013-02-05 12:20:17 +00:00
|
|
|
INT_SETTING_NOWRAP(F_DEPRECATED|F_EQSETTING, eq_band_settings[2].gain, LANG_GAIN, 0,
|
2008-05-11 23:13:59 +00:00
|
|
|
"eq band 2 gain", UNIT_DB, EQ_GAIN_MIN, EQ_GAIN_MAX,
|
|
|
|
EQ_GAIN_STEP, db_format, get_dec_talkid, NULL),
|
2013-02-05 12:20:17 +00:00
|
|
|
INT_SETTING_NOWRAP(F_DEPRECATED|F_EQSETTING, eq_band_settings[3].gain, LANG_GAIN, 0,
|
2008-05-11 23:13:59 +00:00
|
|
|
"eq band 3 gain", UNIT_DB, EQ_GAIN_MIN, EQ_GAIN_MAX,
|
|
|
|
EQ_GAIN_STEP, db_format, get_dec_talkid, NULL),
|
2013-02-05 12:20:17 +00:00
|
|
|
INT_SETTING_NOWRAP(F_DEPRECATED|F_EQSETTING, eq_band_settings[4].gain, LANG_GAIN, 0,
|
2008-05-11 23:13:59 +00:00
|
|
|
"eq band 4 gain", UNIT_DB, EQ_GAIN_MIN, EQ_GAIN_MAX,
|
|
|
|
EQ_GAIN_STEP, db_format, get_dec_talkid, NULL),
|
2013-02-05 12:20:17 +00:00
|
|
|
INT_SETTING_NOWRAP(F_DEPRECATED|F_EQSETTING, eq_band_settings[5].gain, LANG_GAIN, 0,
|
2013-01-22 18:08:16 +00:00
|
|
|
"eq band 5 gain", UNIT_DB, EQ_GAIN_MIN, EQ_GAIN_MAX,
|
|
|
|
EQ_GAIN_STEP, db_format, get_dec_talkid, NULL),
|
2013-02-05 12:20:17 +00:00
|
|
|
INT_SETTING_NOWRAP(F_DEPRECATED|F_EQSETTING, eq_band_settings[6].gain, LANG_GAIN, 0,
|
2013-01-22 18:08:16 +00:00
|
|
|
"eq band 6 gain", UNIT_DB, EQ_GAIN_MIN, EQ_GAIN_MAX,
|
|
|
|
EQ_GAIN_STEP, db_format, get_dec_talkid, NULL),
|
2013-02-05 12:20:17 +00:00
|
|
|
INT_SETTING_NOWRAP(F_DEPRECATED|F_EQSETTING, eq_band_settings[7].gain, LANG_GAIN, 0,
|
2013-01-22 18:08:16 +00:00
|
|
|
"eq band 7 gain", UNIT_DB, EQ_GAIN_MIN, EQ_GAIN_MAX,
|
|
|
|
EQ_GAIN_STEP, db_format, get_dec_talkid, NULL),
|
2013-02-05 12:20:17 +00:00
|
|
|
INT_SETTING_NOWRAP(F_DEPRECATED|F_EQSETTING, eq_band_settings[8].gain, LANG_GAIN, 0,
|
2013-01-22 18:08:16 +00:00
|
|
|
"eq band 8 gain", UNIT_DB, EQ_GAIN_MIN, EQ_GAIN_MAX,
|
|
|
|
EQ_GAIN_STEP, db_format, get_dec_talkid, NULL),
|
2013-02-05 12:20:17 +00:00
|
|
|
INT_SETTING_NOWRAP(F_DEPRECATED|F_EQSETTING, eq_band_settings[9].gain, LANG_GAIN, 0,
|
2013-01-22 18:08:16 +00:00
|
|
|
"eq band 9 gain", UNIT_DB, EQ_GAIN_MIN, EQ_GAIN_MAX,
|
|
|
|
EQ_GAIN_STEP, db_format, get_dec_talkid, NULL),
|
2007-01-23 13:40:44 +00:00
|
|
|
|
2013-02-05 12:20:17 +00:00
|
|
|
#define EQ_BAND(id, string) \
|
|
|
|
CUSTOM_SETTING(F_EQSETTING, eq_band_settings[id], -1, \
|
|
|
|
&eq_defaults[id], string, \
|
|
|
|
eq_load_from_cfg, eq_write_to_cfg, \
|
|
|
|
eq_is_changed, eq_set_default)
|
|
|
|
EQ_BAND(0, "eq low shelf filter"),
|
|
|
|
EQ_BAND(1, "eq peak filter 1"),
|
|
|
|
EQ_BAND(2, "eq peak filter 2"),
|
|
|
|
EQ_BAND(3, "eq peak filter 3"),
|
|
|
|
EQ_BAND(4, "eq peak filter 4"),
|
|
|
|
EQ_BAND(5, "eq peak filter 5"),
|
|
|
|
EQ_BAND(6, "eq peak filter 6"),
|
|
|
|
EQ_BAND(7, "eq peak filter 7"),
|
|
|
|
EQ_BAND(8, "eq peak filter 8"),
|
|
|
|
EQ_BAND(9, "eq high shelf filter"),
|
|
|
|
#undef EQ_BAND
|
|
|
|
|
2007-01-23 13:40:44 +00:00
|
|
|
/* dithering */
|
2008-05-11 23:13:59 +00:00
|
|
|
OFFON_SETTING(F_SOUNDSETTING, dithering_enabled, LANG_DITHERING, false,
|
|
|
|
"dithering enabled", dsp_dither_enable),
|
2014-08-22 13:30:35 +00:00
|
|
|
/* surround */
|
Auto-Ranging Time Formatting For Menus (hh:mm:ss:mss)
Unifies time formatting in settings_list.c allows time format to
display as HH:MM:SS.MSS or any consecutive combination thereof
(hh:mm:ss, mm:ss, mm:ss.mss, ss.mss, hh, mm, ss ,mss)
works in INT and TABLE settings with the addition of flag 'F_TIME_SETTING'
Time is auto-ranged dependent on value
Adds talk_time_intervals to allow time values to be spoken similar to
display format: x Hours, x Minutes, x Seconds, x Milliseconds
Table lookups merged or removed from recording, clip meter and lcd timeout
-String_Choice replaced with TABLE_SETTING or INT_SETTING for these
functions as well, cleaned-up cfg_vals that get saved to cfgfile
RTL Languages ARE supported
Negative values ARE supported
Backlight on/off are now Always and Never to share formatter with LCD
Timeout
Added flag to allow ranged units to be locked to a minimum index
Added flag to allow leading zero to be supressed from the largest unit
merged talk_time_unit() and talk_time_intervals()
optimized time_split()
optimized format_time_auto()
Backlight time-out list same as original
Change-Id: I59027c62d3f2956bd16fdcc1a48b2ac32c084abd
2018-12-18 04:27:55 +00:00
|
|
|
TABLE_SETTING(F_TIME_SETTING | F_SOUNDSETTING, surround_enabled,
|
|
|
|
LANG_SURROUND, 0, "surround enabled", off,
|
|
|
|
UNIT_MS, formatter_time_unit_0_is_off,
|
|
|
|
getlang_time_unit_0_is_off,
|
2014-08-22 13:30:35 +00:00
|
|
|
dsp_surround_enable, 6,
|
|
|
|
0,5,8,10,15,30),
|
|
|
|
INT_SETTING_NOWRAP(F_SOUNDSETTING, surround_balance,
|
|
|
|
LANG_BALANCE, 35,
|
|
|
|
"surround balance", UNIT_PERCENT, 0, 99,
|
|
|
|
1, NULL, NULL, dsp_surround_set_balance),
|
|
|
|
INT_SETTING_NOWRAP(F_SOUNDSETTING, surround_fx1,
|
|
|
|
LANG_SURROUND_FX1, 3400,
|
|
|
|
"surround_fx1", UNIT_HERTZ, 600, 8000,
|
|
|
|
200, NULL, NULL, surround_set_factor),
|
|
|
|
INT_SETTING_NOWRAP(F_SOUNDSETTING, surround_fx2,
|
|
|
|
LANG_SURROUND_FX2, 320,
|
|
|
|
"surround_fx2", UNIT_HERTZ, 40, 400,
|
|
|
|
40, NULL, NULL, surround_set_factor),
|
|
|
|
OFFON_SETTING(F_SOUNDSETTING, surround_method2, LANG_SURROUND_METHOD2, false,
|
|
|
|
"side only", dsp_surround_side_only),
|
|
|
|
INT_SETTING_NOWRAP(F_SOUNDSETTING, surround_mix,
|
|
|
|
LANG_SURROUND_MIX, 50,
|
|
|
|
"surround mix", UNIT_PERCENT, 0, 100,
|
|
|
|
5, NULL, NULL, dsp_surround_mix),
|
|
|
|
/* auditory fatigue reduction */
|
|
|
|
CHOICE_SETTING(F_SOUNDSETTING|F_NO_WRAP, afr_enabled,
|
|
|
|
LANG_AFR, 0,"afr enabled",
|
|
|
|
"off,weak,moderate,strong", dsp_afr_enable, 4,
|
|
|
|
ID2P(LANG_OFF), ID2P(LANG_WEAK),ID2P(LANG_MODERATE),ID2P(LANG_STRONG)),
|
|
|
|
/* PBE */
|
|
|
|
INT_SETTING_NOWRAP(F_SOUNDSETTING, pbe,
|
|
|
|
LANG_PBE, 0,
|
|
|
|
"pbe", UNIT_PERCENT, 0, 100,
|
|
|
|
25, NULL, NULL, dsp_pbe_enable),
|
|
|
|
INT_SETTING_NOWRAP(F_SOUNDSETTING, pbe_precut,
|
|
|
|
LANG_EQUALIZER_PRECUT, -25,
|
|
|
|
"pbe precut", UNIT_DB, -45, 0,
|
|
|
|
1, db_format, NULL, dsp_pbe_precut),
|
2012-05-08 14:34:26 +00:00
|
|
|
#ifdef HAVE_PITCHCONTROL
|
2009-06-12 07:20:50 +00:00
|
|
|
/* timestretch */
|
|
|
|
OFFON_SETTING(F_SOUNDSETTING, timestretch_enabled, LANG_TIMESTRETCH, false,
|
|
|
|
"timestretch enabled", dsp_timestretch_enable),
|
2010-09-17 20:28:47 +00:00
|
|
|
#endif
|
2009-08-18 03:24:45 +00:00
|
|
|
|
2009-09-25 15:46:38 +00:00
|
|
|
/* compressor */
|
2012-04-26 21:19:16 +00:00
|
|
|
INT_SETTING_NOWRAP(F_SOUNDSETTING, compressor_settings.threshold,
|
2009-09-25 15:46:38 +00:00
|
|
|
LANG_COMPRESSOR_THRESHOLD, 0,
|
|
|
|
"compressor threshold", UNIT_DB, 0, -24,
|
2012-04-26 21:19:16 +00:00
|
|
|
-3, formatter_unit_0_is_off, getlang_unit_0_is_off,
|
|
|
|
compressor_set),
|
|
|
|
CHOICE_SETTING(F_SOUNDSETTING|F_NO_WRAP, compressor_settings.makeup_gain,
|
2009-11-04 18:14:36 +00:00
|
|
|
LANG_COMPRESSOR_GAIN, 1, "compressor makeup gain",
|
|
|
|
"off,auto", compressor_set, 2,
|
|
|
|
ID2P(LANG_OFF), ID2P(LANG_AUTO)),
|
2012-04-26 21:19:16 +00:00
|
|
|
CHOICE_SETTING(F_SOUNDSETTING|F_NO_WRAP, compressor_settings.ratio,
|
2009-09-25 15:46:38 +00:00
|
|
|
LANG_COMPRESSOR_RATIO, 1, "compressor ratio",
|
|
|
|
"2:1,4:1,6:1,10:1,limit", compressor_set, 5,
|
|
|
|
ID2P(LANG_COMPRESSOR_RATIO_2), ID2P(LANG_COMPRESSOR_RATIO_4),
|
|
|
|
ID2P(LANG_COMPRESSOR_RATIO_6), ID2P(LANG_COMPRESSOR_RATIO_10),
|
|
|
|
ID2P(LANG_COMPRESSOR_RATIO_LIMIT)),
|
2012-04-26 21:19:16 +00:00
|
|
|
CHOICE_SETTING(F_SOUNDSETTING|F_NO_WRAP, compressor_settings.knee,
|
2009-09-25 15:46:38 +00:00
|
|
|
LANG_COMPRESSOR_KNEE, 1, "compressor knee",
|
|
|
|
"hard knee,soft knee", compressor_set, 2,
|
Selective Backlight/Advanced Softlock - Selective actions based on context
Selective backlight allows the user to choose actions that will not
enable the backlight when pressed.
Advanced softlock allows user to choose actions that will not be
blocked by screenlock on devices without a hold button.
Both only occur in FM and WPS Contexts.
Update:
Back from the dead
-Cleaned up code, removed unnecessary calls, re-arranged last filter action
timeout conditional to work in case last_filtered_action_tick was never set
-Added entries to the manual
-Fixed back button on some menus not activating backlight
-Made menus more intuitive, no actions selected now changes menu item to off.
-Added talk fuctionality.
-Added option to disable selective backlight while on external power.
-Rewrote backlight and softlock handling code to fix issue with scrollwheels
-Menu changed to have toggle(yes/no) and settings
-Optimized selective actions lookup
-Added option to disable notification of 'buttons locked' while softlocked
-Removed uneeded code, consolidated action lookup to single function
-Fixed incorrect name on selective softlock menu
-Added option to disable touch on touchscreen devices
-Fixed backlight on original screenlock without selective screenlock active
-Added text selection in mask_select for when show_icons is off
-Fixed voice in mask_select to speak if voice is defined instead of spelling
-Added more lang defines (play skip seek)
-Added option to disable unknown keys turning on backlight
-Fixed Conditional argument In wrong place causing players without
backlight to fail to build
-Fixed Disable Unknown blocking detection of context change
-Fixed canceling menu didn't update new settings
-Added Autolock on backlight off
-Removed backlight_on_force from backlight.c, Now sets ignore next to false
and uses backlight_on
-Cleaned up autolock code added strings to lang file
-Fixed issue where rapid presses would bypass softlock
-Removed old softlock code, Cleaned selective actions code
-Changed menu to match existing RB menus
-Fixed Backlight_on_Hold blocked by backlight_ignore_next
-Fixed ignore_next for ipod
-Fixed bug allowing context with softlock to bypass selective backlight
-Changed mask_select to no longer prompt for changes to be saved
-Changed menu names
-Added ignore timeout to allow ipod scroll wheel to work properly and other
players to still work properly, removed some previous code including
ignore_event
-Increased ignore timeout to prevent sd card accesses from interrupting action
code and turning on backlight
-Changed Unknown action to unmapped action in menu, changed handling code
-Removed unneeded logic and variables for handling unfiltered actions
-Reverted unmapped action code to previous functionality
-Added manual entries (thanks JohnB)
-Removed elusive unhandled unicode character from manual, changed formatting slightly
Actions:
Volume,Play,Seek,Skip
Extras:
Disable unmapped actions
Disable selective backlight on external power
Disable touch during softlock on touchscreen devices
Disable softlock notifications (power button still notifies)
Autolock on backlight off
Method:
Adds a function to ignore backlight on next call
If selected action occurs backlight is forced on,
Filter_first_keypress stays intact.
Selective softlock allows selected actions through, bypasses the normal
softlock routine.
ToDo:
DONE
previous commit (#1) has attribution for folder_select.c which mask_select
is based from.
Change-Id: I08132ddcfd64c81751ef23b720f3ec6d68695fe4
2016-11-22 05:21:31 +00:00
|
|
|
ID2P(LANG_COMPRESSOR_HARD_KNEE), ID2P(LANG_COMPRESSOR_SOFT_KNEE)),
|
Auto-Ranging Time Formatting For Menus (hh:mm:ss:mss)
Unifies time formatting in settings_list.c allows time format to
display as HH:MM:SS.MSS or any consecutive combination thereof
(hh:mm:ss, mm:ss, mm:ss.mss, ss.mss, hh, mm, ss ,mss)
works in INT and TABLE settings with the addition of flag 'F_TIME_SETTING'
Time is auto-ranged dependent on value
Adds talk_time_intervals to allow time values to be spoken similar to
display format: x Hours, x Minutes, x Seconds, x Milliseconds
Table lookups merged or removed from recording, clip meter and lcd timeout
-String_Choice replaced with TABLE_SETTING or INT_SETTING for these
functions as well, cleaned-up cfg_vals that get saved to cfgfile
RTL Languages ARE supported
Negative values ARE supported
Backlight on/off are now Always and Never to share formatter with LCD
Timeout
Added flag to allow ranged units to be locked to a minimum index
Added flag to allow leading zero to be supressed from the largest unit
merged talk_time_unit() and talk_time_intervals()
optimized time_split()
optimized format_time_auto()
Backlight time-out list same as original
Change-Id: I59027c62d3f2956bd16fdcc1a48b2ac32c084abd
2018-12-18 04:27:55 +00:00
|
|
|
INT_SETTING_NOWRAP(F_TIME_SETTING | F_SOUNDSETTING,
|
|
|
|
compressor_settings.attack_time,
|
DSP Compressor: Sidechain, Exponential Atk/Rls
This is an improvement to the current compressor which I have added
to my own Sansa Fuze V2 build. I am submitting here in case others
find it interesting.
Features added to the existing compressor:
Attack, Look-ahead, Sidechain Filtering.
Exponential attack and release characteristic response.
Benefits from adding missing features:
Attack:
Preserve perceived "brightness" of tone by letting onset transients
come through at a higher level than the rest of the compressed program
material.
Look-ahead:
With Attack comes clipping on the leading several cycles of a transient
onset. With look-ahead function, this can be pre-emptively mitigated with
a slower gain change (less distortion). Look-ahead limiting is implemented
to prevent clipping while keeping gain change ramp to an interval near 3ms
instead of instant attack.
The existing compressor implementation distorts the leading edge of a
transient by causing instant gain change, resulting in log() distortion.
This sounds "woofy" to me.
Exponential Attack/Release:
eMore natural sounding. On attack, this is a true straight line of 10dB per
attack interval. Release is a little different, however, sounds natural as
an analog compressor.
Sidechain Filtering:
Mild high-pass filter reduces response to low frequency onsets. For example,
a hard kick drum is less likely to make the whole of the program material
appear to fade in and out. Combined with a moderate attack time, such a
transient will ride through with minimal audible artifact.
Overall these changes make dynamic music sound more "open", more natural. The
goal of a compressor is to make dyanamic music sound louder without necessarily
sounding as though it has been compressed. I believe these changes come closer to this goal.
Enjoy. If not, I am enjoying it
Change-Id: I664eace546c364b815b4dc9ed4a72849231a0eb2
Reviewed-on: http://gerrit.rockbox.org/626
Tested: Purling Nayuki <cyq.yzfl@gmail.com>
Reviewed-by: Michael Giacomelli <giac2000@hotmail.com>
2013-10-03 12:57:00 +00:00
|
|
|
LANG_COMPRESSOR_ATTACK, 5,
|
|
|
|
"compressor attack time", UNIT_MS, 0, 30,
|
Selective Backlight/Advanced Softlock - Selective actions based on context
Selective backlight allows the user to choose actions that will not
enable the backlight when pressed.
Advanced softlock allows user to choose actions that will not be
blocked by screenlock on devices without a hold button.
Both only occur in FM and WPS Contexts.
Update:
Back from the dead
-Cleaned up code, removed unnecessary calls, re-arranged last filter action
timeout conditional to work in case last_filtered_action_tick was never set
-Added entries to the manual
-Fixed back button on some menus not activating backlight
-Made menus more intuitive, no actions selected now changes menu item to off.
-Added talk fuctionality.
-Added option to disable selective backlight while on external power.
-Rewrote backlight and softlock handling code to fix issue with scrollwheels
-Menu changed to have toggle(yes/no) and settings
-Optimized selective actions lookup
-Added option to disable notification of 'buttons locked' while softlocked
-Removed uneeded code, consolidated action lookup to single function
-Fixed incorrect name on selective softlock menu
-Added option to disable touch on touchscreen devices
-Fixed backlight on original screenlock without selective screenlock active
-Added text selection in mask_select for when show_icons is off
-Fixed voice in mask_select to speak if voice is defined instead of spelling
-Added more lang defines (play skip seek)
-Added option to disable unknown keys turning on backlight
-Fixed Conditional argument In wrong place causing players without
backlight to fail to build
-Fixed Disable Unknown blocking detection of context change
-Fixed canceling menu didn't update new settings
-Added Autolock on backlight off
-Removed backlight_on_force from backlight.c, Now sets ignore next to false
and uses backlight_on
-Cleaned up autolock code added strings to lang file
-Fixed issue where rapid presses would bypass softlock
-Removed old softlock code, Cleaned selective actions code
-Changed menu to match existing RB menus
-Fixed Backlight_on_Hold blocked by backlight_ignore_next
-Fixed ignore_next for ipod
-Fixed bug allowing context with softlock to bypass selective backlight
-Changed mask_select to no longer prompt for changes to be saved
-Changed menu names
-Added ignore timeout to allow ipod scroll wheel to work properly and other
players to still work properly, removed some previous code including
ignore_event
-Increased ignore timeout to prevent sd card accesses from interrupting action
code and turning on backlight
-Changed Unknown action to unmapped action in menu, changed handling code
-Removed unneeded logic and variables for handling unfiltered actions
-Reverted unmapped action code to previous functionality
-Added manual entries (thanks JohnB)
-Removed elusive unhandled unicode character from manual, changed formatting slightly
Actions:
Volume,Play,Seek,Skip
Extras:
Disable unmapped actions
Disable selective backlight on external power
Disable touch during softlock on touchscreen devices
Disable softlock notifications (power button still notifies)
Autolock on backlight off
Method:
Adds a function to ignore backlight on next call
If selected action occurs backlight is forced on,
Filter_first_keypress stays intact.
Selective softlock allows selected actions through, bypasses the normal
softlock routine.
ToDo:
DONE
previous commit (#1) has attribution for folder_select.c which mask_select
is based from.
Change-Id: I08132ddcfd64c81751ef23b720f3ec6d68695fe4
2016-11-22 05:21:31 +00:00
|
|
|
5, NULL, NULL, compressor_set),
|
Auto-Ranging Time Formatting For Menus (hh:mm:ss:mss)
Unifies time formatting in settings_list.c allows time format to
display as HH:MM:SS.MSS or any consecutive combination thereof
(hh:mm:ss, mm:ss, mm:ss.mss, ss.mss, hh, mm, ss ,mss)
works in INT and TABLE settings with the addition of flag 'F_TIME_SETTING'
Time is auto-ranged dependent on value
Adds talk_time_intervals to allow time values to be spoken similar to
display format: x Hours, x Minutes, x Seconds, x Milliseconds
Table lookups merged or removed from recording, clip meter and lcd timeout
-String_Choice replaced with TABLE_SETTING or INT_SETTING for these
functions as well, cleaned-up cfg_vals that get saved to cfgfile
RTL Languages ARE supported
Negative values ARE supported
Backlight on/off are now Always and Never to share formatter with LCD
Timeout
Added flag to allow ranged units to be locked to a minimum index
Added flag to allow leading zero to be supressed from the largest unit
merged talk_time_unit() and talk_time_intervals()
optimized time_split()
optimized format_time_auto()
Backlight time-out list same as original
Change-Id: I59027c62d3f2956bd16fdcc1a48b2ac32c084abd
2018-12-18 04:27:55 +00:00
|
|
|
INT_SETTING_NOWRAP(F_TIME_SETTING | F_SOUNDSETTING,
|
|
|
|
compressor_settings.release_time,
|
2009-11-04 18:14:36 +00:00
|
|
|
LANG_COMPRESSOR_RELEASE, 500,
|
|
|
|
"compressor release time", UNIT_MS, 100, 1000,
|
|
|
|
100, NULL, NULL, compressor_set),
|
2018-12-22 19:53:00 +00:00
|
|
|
#endif /* CONFIG_CODEC == SWCODEC */
|
|
|
|
|
2010-05-15 13:09:45 +00:00
|
|
|
#ifdef AUDIOHW_HAVE_BASS_CUTOFF
|
2008-05-11 23:13:59 +00:00
|
|
|
SOUND_SETTING(F_NO_WRAP, bass_cutoff, LANG_BASS_CUTOFF,
|
|
|
|
"bass cutoff", SOUND_BASS_CUTOFF),
|
2010-05-15 13:09:45 +00:00
|
|
|
#endif
|
|
|
|
#ifdef AUDIOHW_HAVE_TREBLE_CUTOFF
|
2008-05-11 23:13:59 +00:00
|
|
|
SOUND_SETTING(F_NO_WRAP, treble_cutoff, LANG_TREBLE_CUTOFF,
|
|
|
|
"treble cutoff", SOUND_TREBLE_CUTOFF),
|
2007-11-24 07:51:00 +00:00
|
|
|
#endif
|
2007-01-23 13:40:44 +00:00
|
|
|
#ifdef HAVE_DIRCACHE
|
2010-12-06 22:25:31 +00:00
|
|
|
/*enable dircache for all targets > 2MB of RAM by default*/
|
|
|
|
OFFON_SETTING(F_BANFROMQS,dircache,LANG_DIRCACHE_ENABLE,true,"dircache",NULL),
|
2007-01-23 13:40:44 +00:00
|
|
|
SYSTEM_SETTING(NVRAM(4),dircache_size,0),
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef HAVE_TAGCACHE
|
|
|
|
#ifdef HAVE_TC_RAMCACHE
|
2008-11-03 23:49:18 +00:00
|
|
|
OFFON_SETTING(F_BANFROMQS,tagcache_ram,LANG_TAGCACHE_RAM,false,"tagcache_ram",NULL),
|
2007-01-23 13:40:44 +00:00
|
|
|
#endif
|
2008-11-03 23:49:18 +00:00
|
|
|
OFFON_SETTING(F_BANFROMQS, tagcache_autoupdate, LANG_TAGCACHE_AUTOUPDATE, false,
|
2008-05-11 23:13:59 +00:00
|
|
|
"tagcache_autoupdate", NULL),
|
2007-01-23 13:40:44 +00:00
|
|
|
#endif
|
Rewrite filesystem code (WIP)
This patch redoes the filesystem code from the FAT driver up to the
clipboard code in onplay.c.
Not every aspect of this is finished therefore it is still "WIP". I
don't wish to do too much at once (haha!). What is left to do is get
dircache back in the sim and find an implementation for the dircache
indicies in the tagcache and playlist code or do something else that
has the same benefit. Leaving these out for now does not make anything
unusable. All the basics are done.
Phone app code should probably get vetted (and app path handling
just plain rewritten as environment expansions); the SDL app and
Android run well.
Main things addressed:
1) Thread safety: There is none right now in the trunk code. Most of
what currently works is luck when multiple threads are involved or
multiple descriptors to the same file are open.
2) POSIX compliance: Many of the functions behave nothing like their
counterparts on a host system. This leads to inconsistent code or very
different behavior from native to hosted. One huge offender was
rename(). Going point by point would fill a book.
3) Actual running RAM usage: Many targets will use less RAM and less
stack space (some more RAM because I upped the number of cache buffers
for large memory). There's very little memory lying fallow in rarely-used
areas (see 'Key core changes' below). Also, all targets may open the same
number of directory streams whereas before those with less than 8MB RAM
were limited to 8, not 12 implying those targets will save slightly
less.
4) Performance: The test_disk plugin shows markedly improved performance,
particularly in the area of (uncached) directory scanning, due partly to
more optimal directory reading and to a better sector cache algorithm.
Uncached times tend to be better while there is a bit of a slowdown in
dircache due to it being a bit heavier of an implementation. It's not
noticeable by a human as far as I can say.
Key core changes:
1) Files and directories share core code and data structures.
2) The filesystem code knows which descriptors refer to same file.
This ensures that changes from one stream are appropriately reflected
in every open descriptor for that file (fileobj_mgr.c).
3) File and directory cache buffers are borrowed from the main sector
cache. This means that when they are not in use by a file, they are not
wasted, but used for the cache. Most of the time, only a few of them
are needed. It also means that adding more file and directory handles
is less expensive. All one must do in ensure a large enough cache to
borrow from.
4) Relative path components are supported and the namespace is unified.
It does not support full relative paths to an implied current directory;
what is does support is use of "." and "..". Adding the former would
not be very difficult. The namespace is unified in the sense that
volumes may be specified several times along with relative parts, e.g.:
"/<0>/foo/../../<1>/bar" :<=> "/<1>/bar".
5) Stack usage is down due to sharing of data, static allocation and
less duplication of strings on the stack. This requires more
serialization than I would like but since the number of threads is
limited to a low number, the tradoff in favor of the stack seems
reasonable.
6) Separates and heirarchicalizes (sic) the SIM and APP filesystem
code. SIM path and volume handling is just like the target. Some
aspects of the APP file code get more straightforward (e.g. no path
hashing is needed).
Dircache:
Deserves its own section. Dircache is new but pays homage to the old.
The old one was not compatible and so it, since it got redone, does
all the stuff it always should have done such as:
1) It may be update and used at any time during the build process.
No longer has one to wait for it to finish building to do basic file
management (create, remove, rename, etc.).
2) It does not need to be either fully scanned or completely disabled;
it can be incomplete (i.e. overfilled, missing paths), still be
of benefit and be correct.
3) Handles mounting and dismounting of individual volumes which means
a full rebuild is not needed just because you pop a new SD card in the
slot. Now, because it reuses its freed entry data, may rebuild only
that volume.
4) Much more fundamental to the file code. When it is built, it is
the keeper of the master file list whether enabled or not ("disabled"
is just a state of the cache). Its must always to ready to be started
and bind all streams opened prior to being enabled.
5) Maintains any short filenames in OEM format which means that it does
not need to be rebuilt when changing the default codepage.
Miscellaneous Compatibility:
1) Update any other code that would otherwise not work such as the
hotswap mounting code in various card drivers.
2) File management: Clipboard needed updating because of the behavioral
changes. Still needs a little more work on some finer points.
3) Remove now-obsolete functionality such as the mutex's "no preempt"
flag (which was only for the prior FAT driver).
4) struct dirinfo uses time_t rather than raw FAT directory entry
time fields. I plan to follow up on genericizing everything there
(i.e. no FAT attributes).
5) unicode.c needed some redoing so that the file code does not try
try to load codepages during a scan, which is actually a problem with
the current code. The default codepage, if any is required, is now
kept in RAM separarately (bufalloced) from codepages specified to
iso_decode() (which must not be bufalloced because the conversion
may be done by playback threads).
Brings with it some additional reusable core code:
1) Revised file functions: Reusable code that does things such as
safe path concatenation and parsing without buffer limitations or
data duplication. Variants that copy or alter the input path may be
based off these.
To do:
1) Put dircache functionality back in the sim. Treating it internally
as a different kind of file system seems the best approach at this
time.
2) Restore use of dircache indexes in the playlist and database or
something effectively the same. Since the cache doesn't have to be
complete in order to be used, not getting a hit on the cache doesn't
unambiguously say if the path exists or not.
Change-Id: Ia30f3082a136253e3a0eae0784e3091d138915c8
Reviewed-on: http://gerrit.rockbox.org/566
Reviewed-by: Michael Sevakis <jethead71@rockbox.org>
Tested: Michael Sevakis <jethead71@rockbox.org>
2013-08-06 02:02:45 +00:00
|
|
|
CHOICE_SETTING(F_TEMPVAR, default_codepage, LANG_DEFAULT_CODEPAGE, 0,
|
2008-05-11 23:13:59 +00:00
|
|
|
"default codepage",
|
2007-08-05 19:19:39 +00:00
|
|
|
#ifdef HAVE_LCD_BITMAP
|
2008-05-11 23:13:59 +00:00
|
|
|
/* The order must match with that in unicode.c */
|
|
|
|
"iso8859-1,iso8859-7,iso8859-8,cp1251,iso8859-11,cp1256,"
|
2012-04-06 18:21:29 +00:00
|
|
|
"iso8859-9,iso8859-2,cp1250,cp1252,sjis,gb2312,ksx1001,big5,utf-8",
|
Rewrite filesystem code (WIP)
This patch redoes the filesystem code from the FAT driver up to the
clipboard code in onplay.c.
Not every aspect of this is finished therefore it is still "WIP". I
don't wish to do too much at once (haha!). What is left to do is get
dircache back in the sim and find an implementation for the dircache
indicies in the tagcache and playlist code or do something else that
has the same benefit. Leaving these out for now does not make anything
unusable. All the basics are done.
Phone app code should probably get vetted (and app path handling
just plain rewritten as environment expansions); the SDL app and
Android run well.
Main things addressed:
1) Thread safety: There is none right now in the trunk code. Most of
what currently works is luck when multiple threads are involved or
multiple descriptors to the same file are open.
2) POSIX compliance: Many of the functions behave nothing like their
counterparts on a host system. This leads to inconsistent code or very
different behavior from native to hosted. One huge offender was
rename(). Going point by point would fill a book.
3) Actual running RAM usage: Many targets will use less RAM and less
stack space (some more RAM because I upped the number of cache buffers
for large memory). There's very little memory lying fallow in rarely-used
areas (see 'Key core changes' below). Also, all targets may open the same
number of directory streams whereas before those with less than 8MB RAM
were limited to 8, not 12 implying those targets will save slightly
less.
4) Performance: The test_disk plugin shows markedly improved performance,
particularly in the area of (uncached) directory scanning, due partly to
more optimal directory reading and to a better sector cache algorithm.
Uncached times tend to be better while there is a bit of a slowdown in
dircache due to it being a bit heavier of an implementation. It's not
noticeable by a human as far as I can say.
Key core changes:
1) Files and directories share core code and data structures.
2) The filesystem code knows which descriptors refer to same file.
This ensures that changes from one stream are appropriately reflected
in every open descriptor for that file (fileobj_mgr.c).
3) File and directory cache buffers are borrowed from the main sector
cache. This means that when they are not in use by a file, they are not
wasted, but used for the cache. Most of the time, only a few of them
are needed. It also means that adding more file and directory handles
is less expensive. All one must do in ensure a large enough cache to
borrow from.
4) Relative path components are supported and the namespace is unified.
It does not support full relative paths to an implied current directory;
what is does support is use of "." and "..". Adding the former would
not be very difficult. The namespace is unified in the sense that
volumes may be specified several times along with relative parts, e.g.:
"/<0>/foo/../../<1>/bar" :<=> "/<1>/bar".
5) Stack usage is down due to sharing of data, static allocation and
less duplication of strings on the stack. This requires more
serialization than I would like but since the number of threads is
limited to a low number, the tradoff in favor of the stack seems
reasonable.
6) Separates and heirarchicalizes (sic) the SIM and APP filesystem
code. SIM path and volume handling is just like the target. Some
aspects of the APP file code get more straightforward (e.g. no path
hashing is needed).
Dircache:
Deserves its own section. Dircache is new but pays homage to the old.
The old one was not compatible and so it, since it got redone, does
all the stuff it always should have done such as:
1) It may be update and used at any time during the build process.
No longer has one to wait for it to finish building to do basic file
management (create, remove, rename, etc.).
2) It does not need to be either fully scanned or completely disabled;
it can be incomplete (i.e. overfilled, missing paths), still be
of benefit and be correct.
3) Handles mounting and dismounting of individual volumes which means
a full rebuild is not needed just because you pop a new SD card in the
slot. Now, because it reuses its freed entry data, may rebuild only
that volume.
4) Much more fundamental to the file code. When it is built, it is
the keeper of the master file list whether enabled or not ("disabled"
is just a state of the cache). Its must always to ready to be started
and bind all streams opened prior to being enabled.
5) Maintains any short filenames in OEM format which means that it does
not need to be rebuilt when changing the default codepage.
Miscellaneous Compatibility:
1) Update any other code that would otherwise not work such as the
hotswap mounting code in various card drivers.
2) File management: Clipboard needed updating because of the behavioral
changes. Still needs a little more work on some finer points.
3) Remove now-obsolete functionality such as the mutex's "no preempt"
flag (which was only for the prior FAT driver).
4) struct dirinfo uses time_t rather than raw FAT directory entry
time fields. I plan to follow up on genericizing everything there
(i.e. no FAT attributes).
5) unicode.c needed some redoing so that the file code does not try
try to load codepages during a scan, which is actually a problem with
the current code. The default codepage, if any is required, is now
kept in RAM separarately (bufalloced) from codepages specified to
iso_decode() (which must not be bufalloced because the conversion
may be done by playback threads).
Brings with it some additional reusable core code:
1) Revised file functions: Reusable code that does things such as
safe path concatenation and parsing without buffer limitations or
data duplication. Variants that copy or alter the input path may be
based off these.
To do:
1) Put dircache functionality back in the sim. Treating it internally
as a different kind of file system seems the best approach at this
time.
2) Restore use of dircache indexes in the playlist and database or
something effectively the same. Since the cache doesn't have to be
complete in order to be used, not getting a hit on the cache doesn't
unambiguously say if the path exists or not.
Change-Id: Ia30f3082a136253e3a0eae0784e3091d138915c8
Reviewed-on: http://gerrit.rockbox.org/566
Reviewed-by: Michael Sevakis <jethead71@rockbox.org>
Tested: Michael Sevakis <jethead71@rockbox.org>
2013-08-06 02:02:45 +00:00
|
|
|
NULL, 15,
|
2012-04-06 18:21:29 +00:00
|
|
|
ID2P(LANG_CODEPAGE_LATIN1),
|
|
|
|
ID2P(LANG_CODEPAGE_GREEK),
|
2008-05-11 23:13:59 +00:00
|
|
|
ID2P(LANG_CODEPAGE_HEBREW), ID2P(LANG_CODEPAGE_CYRILLIC),
|
|
|
|
ID2P(LANG_CODEPAGE_THAI), ID2P(LANG_CODEPAGE_ARABIC),
|
|
|
|
ID2P(LANG_CODEPAGE_TURKISH),
|
|
|
|
ID2P(LANG_CODEPAGE_LATIN_EXTENDED),
|
|
|
|
ID2P(LANG_CODEPAGE_CENTRAL_EUROPEAN),
|
2012-04-06 18:21:29 +00:00
|
|
|
ID2P(LANG_CODEPAGE_WESTERN_EUROPEAN),
|
2008-05-11 23:13:59 +00:00
|
|
|
ID2P(LANG_CODEPAGE_JAPANESE),
|
|
|
|
ID2P(LANG_CODEPAGE_SIMPLIFIED), ID2P(LANG_CODEPAGE_KOREAN),
|
|
|
|
ID2P(LANG_CODEPAGE_TRADITIONAL), ID2P(LANG_CODEPAGE_UTF8)),
|
2007-04-01 13:09:22 +00:00
|
|
|
#else /* !HAVE_LCD_BITMAP */
|
2008-05-11 23:13:59 +00:00
|
|
|
/* The order must match with that in unicode.c */
|
2012-04-06 18:21:29 +00:00
|
|
|
"iso8859-1,iso8859-7,cp1251,iso8859-9,iso8859-2,cp1250,cp1252,utf-8",
|
Rewrite filesystem code (WIP)
This patch redoes the filesystem code from the FAT driver up to the
clipboard code in onplay.c.
Not every aspect of this is finished therefore it is still "WIP". I
don't wish to do too much at once (haha!). What is left to do is get
dircache back in the sim and find an implementation for the dircache
indicies in the tagcache and playlist code or do something else that
has the same benefit. Leaving these out for now does not make anything
unusable. All the basics are done.
Phone app code should probably get vetted (and app path handling
just plain rewritten as environment expansions); the SDL app and
Android run well.
Main things addressed:
1) Thread safety: There is none right now in the trunk code. Most of
what currently works is luck when multiple threads are involved or
multiple descriptors to the same file are open.
2) POSIX compliance: Many of the functions behave nothing like their
counterparts on a host system. This leads to inconsistent code or very
different behavior from native to hosted. One huge offender was
rename(). Going point by point would fill a book.
3) Actual running RAM usage: Many targets will use less RAM and less
stack space (some more RAM because I upped the number of cache buffers
for large memory). There's very little memory lying fallow in rarely-used
areas (see 'Key core changes' below). Also, all targets may open the same
number of directory streams whereas before those with less than 8MB RAM
were limited to 8, not 12 implying those targets will save slightly
less.
4) Performance: The test_disk plugin shows markedly improved performance,
particularly in the area of (uncached) directory scanning, due partly to
more optimal directory reading and to a better sector cache algorithm.
Uncached times tend to be better while there is a bit of a slowdown in
dircache due to it being a bit heavier of an implementation. It's not
noticeable by a human as far as I can say.
Key core changes:
1) Files and directories share core code and data structures.
2) The filesystem code knows which descriptors refer to same file.
This ensures that changes from one stream are appropriately reflected
in every open descriptor for that file (fileobj_mgr.c).
3) File and directory cache buffers are borrowed from the main sector
cache. This means that when they are not in use by a file, they are not
wasted, but used for the cache. Most of the time, only a few of them
are needed. It also means that adding more file and directory handles
is less expensive. All one must do in ensure a large enough cache to
borrow from.
4) Relative path components are supported and the namespace is unified.
It does not support full relative paths to an implied current directory;
what is does support is use of "." and "..". Adding the former would
not be very difficult. The namespace is unified in the sense that
volumes may be specified several times along with relative parts, e.g.:
"/<0>/foo/../../<1>/bar" :<=> "/<1>/bar".
5) Stack usage is down due to sharing of data, static allocation and
less duplication of strings on the stack. This requires more
serialization than I would like but since the number of threads is
limited to a low number, the tradoff in favor of the stack seems
reasonable.
6) Separates and heirarchicalizes (sic) the SIM and APP filesystem
code. SIM path and volume handling is just like the target. Some
aspects of the APP file code get more straightforward (e.g. no path
hashing is needed).
Dircache:
Deserves its own section. Dircache is new but pays homage to the old.
The old one was not compatible and so it, since it got redone, does
all the stuff it always should have done such as:
1) It may be update and used at any time during the build process.
No longer has one to wait for it to finish building to do basic file
management (create, remove, rename, etc.).
2) It does not need to be either fully scanned or completely disabled;
it can be incomplete (i.e. overfilled, missing paths), still be
of benefit and be correct.
3) Handles mounting and dismounting of individual volumes which means
a full rebuild is not needed just because you pop a new SD card in the
slot. Now, because it reuses its freed entry data, may rebuild only
that volume.
4) Much more fundamental to the file code. When it is built, it is
the keeper of the master file list whether enabled or not ("disabled"
is just a state of the cache). Its must always to ready to be started
and bind all streams opened prior to being enabled.
5) Maintains any short filenames in OEM format which means that it does
not need to be rebuilt when changing the default codepage.
Miscellaneous Compatibility:
1) Update any other code that would otherwise not work such as the
hotswap mounting code in various card drivers.
2) File management: Clipboard needed updating because of the behavioral
changes. Still needs a little more work on some finer points.
3) Remove now-obsolete functionality such as the mutex's "no preempt"
flag (which was only for the prior FAT driver).
4) struct dirinfo uses time_t rather than raw FAT directory entry
time fields. I plan to follow up on genericizing everything there
(i.e. no FAT attributes).
5) unicode.c needed some redoing so that the file code does not try
try to load codepages during a scan, which is actually a problem with
the current code. The default codepage, if any is required, is now
kept in RAM separarately (bufalloced) from codepages specified to
iso_decode() (which must not be bufalloced because the conversion
may be done by playback threads).
Brings with it some additional reusable core code:
1) Revised file functions: Reusable code that does things such as
safe path concatenation and parsing without buffer limitations or
data duplication. Variants that copy or alter the input path may be
based off these.
To do:
1) Put dircache functionality back in the sim. Treating it internally
as a different kind of file system seems the best approach at this
time.
2) Restore use of dircache indexes in the playlist and database or
something effectively the same. Since the cache doesn't have to be
complete in order to be used, not getting a hit on the cache doesn't
unambiguously say if the path exists or not.
Change-Id: Ia30f3082a136253e3a0eae0784e3091d138915c8
Reviewed-on: http://gerrit.rockbox.org/566
Reviewed-by: Michael Sevakis <jethead71@rockbox.org>
Tested: Michael Sevakis <jethead71@rockbox.org>
2013-08-06 02:02:45 +00:00
|
|
|
NULL, 8,
|
2008-05-11 23:13:59 +00:00
|
|
|
ID2P(LANG_CODEPAGE_LATIN1), ID2P(LANG_CODEPAGE_GREEK),
|
|
|
|
ID2P(LANG_CODEPAGE_CYRILLIC), ID2P(LANG_CODEPAGE_TURKISH),
|
|
|
|
ID2P(LANG_CODEPAGE_LATIN_EXTENDED),
|
|
|
|
ID2P(LANG_CODEPAGE_CENTRAL_EUROPEAN),
|
2012-04-06 18:21:29 +00:00
|
|
|
ID2P(LANG_CODEPAGE_WESTERN_EUROPEAN),
|
2008-05-11 23:13:59 +00:00
|
|
|
ID2P(LANG_CODEPAGE_UTF8)),
|
|
|
|
#endif
|
|
|
|
OFFON_SETTING(0, warnon_erase_dynplaylist, LANG_WARN_ERASEDYNPLAYLIST_MENU,
|
2008-12-17 13:45:00 +00:00
|
|
|
true, "warn when erasing dynamic playlist",NULL),
|
2007-01-23 13:40:44 +00:00
|
|
|
|
2007-04-12 22:12:13 +00:00
|
|
|
#ifdef HAVE_BACKLIGHT
|
2007-01-23 13:40:44 +00:00
|
|
|
#ifdef HAS_BUTTON_HOLD
|
2008-05-11 23:13:59 +00:00
|
|
|
CHOICE_SETTING(0, backlight_on_button_hold, LANG_BACKLIGHT_ON_BUTTON_HOLD,
|
2008-12-17 13:45:00 +00:00
|
|
|
1, "backlight on button hold", "normal,off,on",
|
2008-05-11 23:13:59 +00:00
|
|
|
backlight_set_on_button_hold, 3,
|
|
|
|
ID2P(LANG_NORMAL), ID2P(LANG_OFF), ID2P(LANG_ON)),
|
2007-01-23 13:40:44 +00:00
|
|
|
#endif
|
2007-03-21 07:26:07 +00:00
|
|
|
|
2008-05-14 19:29:25 +00:00
|
|
|
#ifdef HAVE_LCD_SLEEP_SETTING
|
Auto-Ranging Time Formatting For Menus (hh:mm:ss:mss)
Unifies time formatting in settings_list.c allows time format to
display as HH:MM:SS.MSS or any consecutive combination thereof
(hh:mm:ss, mm:ss, mm:ss.mss, ss.mss, hh, mm, ss ,mss)
works in INT and TABLE settings with the addition of flag 'F_TIME_SETTING'
Time is auto-ranged dependent on value
Adds talk_time_intervals to allow time values to be spoken similar to
display format: x Hours, x Minutes, x Seconds, x Milliseconds
Table lookups merged or removed from recording, clip meter and lcd timeout
-String_Choice replaced with TABLE_SETTING or INT_SETTING for these
functions as well, cleaned-up cfg_vals that get saved to cfgfile
RTL Languages ARE supported
Negative values ARE supported
Backlight on/off are now Always and Never to share formatter with LCD
Timeout
Added flag to allow ranged units to be locked to a minimum index
Added flag to allow leading zero to be supressed from the largest unit
merged talk_time_unit() and talk_time_intervals()
optimized time_split()
optimized format_time_auto()
Backlight time-out list same as original
Change-Id: I59027c62d3f2956bd16fdcc1a48b2ac32c084abd
2018-12-18 04:27:55 +00:00
|
|
|
TABLE_SETTING_LIST(F_TIME_SETTING | F_ALLOW_ARBITRARY_VALS,
|
|
|
|
lcd_sleep_after_backlight_off, LANG_LCD_SLEEP_AFTER_BACKLIGHT_OFF,
|
|
|
|
5, "lcd sleep after backlight off",
|
|
|
|
off_on, UNIT_SEC, formatter_time_unit_0_is_always,
|
|
|
|
getlang_time_unit_0_is_always, lcd_set_sleep_after_backlight_off,
|
|
|
|
23, timeout_sec_common),
|
2008-05-14 19:29:25 +00:00
|
|
|
#endif /* HAVE_LCD_SLEEP_SETTING */
|
2007-04-12 22:12:13 +00:00
|
|
|
#endif /* HAVE_BACKLIGHT */
|
2007-01-23 13:40:44 +00:00
|
|
|
|
2008-05-11 23:13:59 +00:00
|
|
|
OFFON_SETTING(0, hold_lr_for_scroll_in_list, -1, true,
|
|
|
|
"hold_lr_for_scroll_in_list",NULL),
|
2008-01-13 09:29:45 +00:00
|
|
|
#ifdef HAVE_LCD_BITMAP
|
2008-12-17 13:45:00 +00:00
|
|
|
CHOICE_SETTING(0, show_path_in_browser, LANG_SHOW_PATH, SHOW_PATH_CURRENT,
|
2008-05-11 23:13:59 +00:00
|
|
|
"show path in browser", "off,current directory,full path",
|
|
|
|
NULL, 3, ID2P(LANG_OFF), ID2P(LANG_SHOW_PATH_CURRENT),
|
|
|
|
ID2P(LANG_DISPLAY_FULL_PATH)),
|
2008-01-13 09:29:45 +00:00
|
|
|
#endif
|
2007-01-23 13:40:44 +00:00
|
|
|
|
|
|
|
#ifdef HAVE_AGC
|
2008-08-06 20:12:44 +00:00
|
|
|
{F_T_INT,&global_settings.rec_agc_preset_mic,LANG_RECORDING_AGC_PRESET,
|
|
|
|
INT(1),"agc mic preset",NULL,UNUSED},
|
|
|
|
{F_T_INT,&global_settings.rec_agc_preset_line,LANG_RECORDING_AGC_PRESET,
|
|
|
|
INT(1),"agc line preset",NULL,UNUSED},
|
2007-02-11 10:09:38 +00:00
|
|
|
{F_T_INT,&global_settings.rec_agc_maxgain_mic,-1,INT(104),
|
2007-01-23 13:40:44 +00:00
|
|
|
"agc maximum mic gain",NULL,UNUSED},
|
2007-02-11 10:09:38 +00:00
|
|
|
{F_T_INT,&global_settings.rec_agc_maxgain_line,-1,INT(96),
|
2007-01-23 13:40:44 +00:00
|
|
|
"agc maximum line gain",NULL,UNUSED},
|
2008-08-06 20:12:44 +00:00
|
|
|
{F_T_INT,&global_settings.rec_agc_cliptime,LANG_RECORDING_AGC_CLIPTIME,
|
Auto-Ranging Time Formatting For Menus (hh:mm:ss:mss)
Unifies time formatting in settings_list.c allows time format to
display as HH:MM:SS.MSS or any consecutive combination thereof
(hh:mm:ss, mm:ss, mm:ss.mss, ss.mss, hh, mm, ss ,mss)
works in INT and TABLE settings with the addition of flag 'F_TIME_SETTING'
Time is auto-ranged dependent on value
Adds talk_time_intervals to allow time values to be spoken similar to
display format: x Hours, x Minutes, x Seconds, x Milliseconds
Table lookups merged or removed from recording, clip meter and lcd timeout
-String_Choice replaced with TABLE_SETTING or INT_SETTING for these
functions as well, cleaned-up cfg_vals that get saved to cfgfile
RTL Languages ARE supported
Negative values ARE supported
Backlight on/off are now Always and Never to share formatter with LCD
Timeout
Added flag to allow ranged units to be locked to a minimum index
Added flag to allow leading zero to be supressed from the largest unit
merged talk_time_unit() and talk_time_intervals()
optimized time_split()
optimized format_time_auto()
Backlight time-out list same as original
Change-Id: I59027c62d3f2956bd16fdcc1a48b2ac32c084abd
2018-12-18 04:27:55 +00:00
|
|
|
INT(1),"agc cliptime","0.2 s,0.4 s,0.6 s,0.8 s,1 s",UNUSED},
|
2007-01-23 13:40:44 +00:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef HAVE_REMOTE_LCD
|
|
|
|
#ifdef HAS_REMOTE_BUTTON_HOLD
|
2007-02-17 14:02:48 +00:00
|
|
|
CHOICE_SETTING(0, remote_backlight_on_button_hold,
|
2008-05-11 23:13:59 +00:00
|
|
|
LANG_BACKLIGHT_ON_BUTTON_HOLD, 0,
|
|
|
|
"remote backlight on button hold",
|
|
|
|
"normal,off,on", remote_backlight_set_on_button_hold, 3,
|
|
|
|
ID2P(LANG_NORMAL), ID2P(LANG_OFF), ID2P(LANG_ON)),
|
2007-01-23 13:40:44 +00:00
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
#ifdef HAVE_HEADPHONE_DETECTION
|
2007-08-05 19:19:39 +00:00
|
|
|
CHOICE_SETTING(0, unplug_mode, LANG_HEADPHONE_UNPLUG, 0,
|
2008-05-11 23:13:59 +00:00
|
|
|
"pause on headphone unplug", "off,pause,pause and resume",
|
|
|
|
NULL, 3, ID2P(LANG_OFF), ID2P(LANG_PAUSE),
|
|
|
|
ID2P(LANG_HEADPHONE_UNPLUG_RESUME)),
|
|
|
|
OFFON_SETTING(0, unplug_autoresume,
|
|
|
|
LANG_HEADPHONE_UNPLUG_DISABLE_AUTORESUME, false,
|
|
|
|
"disable autoresume if phones not present",NULL),
|
2007-01-23 13:40:44 +00:00
|
|
|
#endif
|
Auto-Ranging Time Formatting For Menus (hh:mm:ss:mss)
Unifies time formatting in settings_list.c allows time format to
display as HH:MM:SS.MSS or any consecutive combination thereof
(hh:mm:ss, mm:ss, mm:ss.mss, ss.mss, hh, mm, ss ,mss)
works in INT and TABLE settings with the addition of flag 'F_TIME_SETTING'
Time is auto-ranged dependent on value
Adds talk_time_intervals to allow time values to be spoken similar to
display format: x Hours, x Minutes, x Seconds, x Milliseconds
Table lookups merged or removed from recording, clip meter and lcd timeout
-String_Choice replaced with TABLE_SETTING or INT_SETTING for these
functions as well, cleaned-up cfg_vals that get saved to cfgfile
RTL Languages ARE supported
Negative values ARE supported
Backlight on/off are now Always and Never to share formatter with LCD
Timeout
Added flag to allow ranged units to be locked to a minimum index
Added flag to allow leading zero to be supressed from the largest unit
merged talk_time_unit() and talk_time_intervals()
optimized time_split()
optimized format_time_auto()
Backlight time-out list same as original
Change-Id: I59027c62d3f2956bd16fdcc1a48b2ac32c084abd
2018-12-18 04:27:55 +00:00
|
|
|
INT_SETTING(F_TIME_SETTING, pause_rewind, LANG_PAUSE_REWIND, 0,
|
|
|
|
"rewind duration on pause", UNIT_SEC, 0, 15, 1,
|
|
|
|
formatter_time_unit_0_is_off, getlang_time_unit_0_is_off, NULL),
|
2007-02-18 08:46:12 +00:00
|
|
|
#if CONFIG_TUNER
|
2008-05-11 23:13:59 +00:00
|
|
|
CHOICE_SETTING(0, fm_region, LANG_FM_REGION, 0,
|
2009-09-24 22:05:07 +00:00
|
|
|
"fm_region", "eu,us,jp,kr,it,wo", set_radio_region, 6,
|
2008-05-11 23:13:59 +00:00
|
|
|
ID2P(LANG_FM_EUROPE), ID2P(LANG_FM_US),
|
2009-09-24 22:05:07 +00:00
|
|
|
ID2P(LANG_FM_JAPAN), ID2P(LANG_FM_KOREA),
|
|
|
|
ID2P(LANG_FM_ITALY), ID2P(LANG_FM_OTHER)),
|
2007-01-23 13:40:44 +00:00
|
|
|
#endif
|
|
|
|
|
2008-11-05 09:30:20 +00:00
|
|
|
OFFON_SETTING(F_BANFROMQS, audioscrobbler, LANG_AUDIOSCROBBLER, false,
|
2008-05-11 23:13:59 +00:00
|
|
|
"Last.fm Logging", NULL),
|
2007-02-18 08:46:12 +00:00
|
|
|
#if CONFIG_TUNER
|
2010-02-21 20:34:27 +00:00
|
|
|
TEXT_SETTING(0, fmr_file, "fmr", "-",
|
2008-10-23 00:29:17 +00:00
|
|
|
FMPRESET_PATH "/", ".fmr"),
|
2010-05-12 10:38:00 +00:00
|
|
|
TEXT_SETTING(F_THEMESETTING,fms_file, "fms",
|
|
|
|
DEFAULT_FMS_NAME, SBS_DIR "/", ".fms"),
|
|
|
|
#ifdef HAVE_REMOTE_LCD
|
|
|
|
TEXT_SETTING(F_THEMESETTING,rfms_file, "rfms",
|
|
|
|
DEFAULT_FMS_NAME, SBS_DIR "/", ".rfms"),
|
2007-01-23 13:40:44 +00:00
|
|
|
#endif
|
2010-05-12 10:38:00 +00:00
|
|
|
#endif /* CONFIG_TUNER */
|
2008-02-23 00:17:13 +00:00
|
|
|
#ifdef HAVE_LCD_BITMAP
|
2008-10-23 00:29:17 +00:00
|
|
|
TEXT_SETTING(F_THEMESETTING, font_file, "font",
|
|
|
|
DEFAULT_FONTNAME, FONT_DIR "/", ".fnt"),
|
2011-11-20 15:41:17 +00:00
|
|
|
INT_SETTING(0, glyphs_to_cache, LANG_GLYPHS, DEFAULT_GLYPHS,
|
2011-11-19 23:34:26 +00:00
|
|
|
"glyphs", UNIT_INT, MIN_GLYPHS, MAX_GLYPHS, 10,
|
|
|
|
NULL, NULL, NULL),
|
2010-02-14 06:26:16 +00:00
|
|
|
#endif
|
|
|
|
#ifdef HAVE_REMOTE_LCD
|
|
|
|
TEXT_SETTING(F_THEMESETTING, remote_font_file, "remote font",
|
2010-06-03 07:30:01 +00:00
|
|
|
DEFAULT_REMOTE_FONTNAME, FONT_DIR "/", ".fnt"),
|
2008-02-23 00:17:13 +00:00
|
|
|
#endif
|
2008-10-23 00:29:17 +00:00
|
|
|
TEXT_SETTING(F_THEMESETTING,wps_file, "wps",
|
|
|
|
DEFAULT_WPSNAME, WPS_DIR "/", ".wps"),
|
2009-10-19 15:28:15 +00:00
|
|
|
#ifdef HAVE_LCD_BITMAP
|
|
|
|
TEXT_SETTING(F_THEMESETTING,sbs_file, "sbs",
|
2010-02-22 05:16:11 +00:00
|
|
|
DEFAULT_SBSNAME, SBS_DIR "/", ".sbs"),
|
2009-10-19 15:28:15 +00:00
|
|
|
#endif
|
2007-01-23 13:40:44 +00:00
|
|
|
#ifdef HAVE_REMOTE_LCD
|
2008-10-23 00:29:17 +00:00
|
|
|
TEXT_SETTING(F_THEMESETTING,rwps_file,"rwps",
|
2010-02-22 05:16:11 +00:00
|
|
|
DEFAULT_WPSNAME, WPS_DIR "/", ".rwps"),
|
2009-10-19 15:28:15 +00:00
|
|
|
TEXT_SETTING(F_THEMESETTING,rsbs_file, "rsbs",
|
2010-02-22 05:16:11 +00:00
|
|
|
DEFAULT_SBSNAME, SBS_DIR "/", ".rsbs"),
|
2007-01-23 13:40:44 +00:00
|
|
|
#endif
|
2010-02-23 21:58:04 +00:00
|
|
|
TEXT_SETTING(0,lang_file,"lang","",LANG_DIR "/",".lng"),
|
2007-01-23 13:40:44 +00:00
|
|
|
#if LCD_DEPTH > 1
|
2008-10-23 00:29:17 +00:00
|
|
|
TEXT_SETTING(F_THEMESETTING,backdrop_file,"backdrop",
|
2011-04-10 13:25:47 +00:00
|
|
|
DEFAULT_BACKDROP, NULL, NULL),
|
2007-01-23 13:40:44 +00:00
|
|
|
#endif
|
|
|
|
#ifdef HAVE_LCD_BITMAP
|
2010-02-21 20:34:27 +00:00
|
|
|
TEXT_SETTING(0,kbd_file,"kbd","-",ROCKBOX_DIR "/",".kbd"),
|
2007-01-23 13:40:44 +00:00
|
|
|
#endif
|
2012-12-26 17:01:19 +00:00
|
|
|
#ifdef HAVE_USB_CHARGING_ENABLE
|
2010-06-05 21:00:18 +00:00
|
|
|
CHOICE_SETTING(0, usb_charging, LANG_USB_CHARGING, 1, "usb charging",
|
2010-06-05 10:05:27 +00:00
|
|
|
"off,on,force", NULL, 3, ID2P(LANG_SET_BOOL_NO),
|
|
|
|
ID2P(LANG_SET_BOOL_YES), ID2P(LANG_FORCE)),
|
2007-02-01 10:47:22 +00:00
|
|
|
#endif
|
2008-11-05 09:30:20 +00:00
|
|
|
OFFON_SETTING(F_BANFROMQS,cuesheet,LANG_CUESHEET_ENABLE,false,"cuesheet support",
|
2008-05-11 23:13:59 +00:00
|
|
|
NULL),
|
Auto-Ranging Time Formatting For Menus (hh:mm:ss:mss)
Unifies time formatting in settings_list.c allows time format to
display as HH:MM:SS.MSS or any consecutive combination thereof
(hh:mm:ss, mm:ss, mm:ss.mss, ss.mss, hh, mm, ss ,mss)
works in INT and TABLE settings with the addition of flag 'F_TIME_SETTING'
Time is auto-ranged dependent on value
Adds talk_time_intervals to allow time values to be spoken similar to
display format: x Hours, x Minutes, x Seconds, x Milliseconds
Table lookups merged or removed from recording, clip meter and lcd timeout
-String_Choice replaced with TABLE_SETTING or INT_SETTING for these
functions as well, cleaned-up cfg_vals that get saved to cfgfile
RTL Languages ARE supported
Negative values ARE supported
Backlight on/off are now Always and Never to share formatter with LCD
Timeout
Added flag to allow ranged units to be locked to a minimum index
Added flag to allow leading zero to be supressed from the largest unit
merged talk_time_unit() and talk_time_intervals()
optimized time_split()
optimized format_time_auto()
Backlight time-out list same as original
Change-Id: I59027c62d3f2956bd16fdcc1a48b2ac32c084abd
2018-12-18 04:27:55 +00:00
|
|
|
TABLE_SETTING_LIST(F_TIME_SETTING | F_ALLOW_ARBITRARY_VALS, skip_length,
|
2008-08-18 01:03:07 +00:00
|
|
|
LANG_SKIP_LENGTH, 0, "skip length",
|
Auto-Ranging Time Formatting For Menus (hh:mm:ss:mss)
Unifies time formatting in settings_list.c allows time format to
display as HH:MM:SS.MSS or any consecutive combination thereof
(hh:mm:ss, mm:ss, mm:ss.mss, ss.mss, hh, mm, ss ,mss)
works in INT and TABLE settings with the addition of flag 'F_TIME_SETTING'
Time is auto-ranged dependent on value
Adds talk_time_intervals to allow time values to be spoken similar to
display format: x Hours, x Minutes, x Seconds, x Milliseconds
Table lookups merged or removed from recording, clip meter and lcd timeout
-String_Choice replaced with TABLE_SETTING or INT_SETTING for these
functions as well, cleaned-up cfg_vals that get saved to cfgfile
RTL Languages ARE supported
Negative values ARE supported
Backlight on/off are now Always and Never to share formatter with LCD
Timeout
Added flag to allow ranged units to be locked to a minimum index
Added flag to allow leading zero to be supressed from the largest unit
merged talk_time_unit() and talk_time_intervals()
optimized time_split()
optimized format_time_auto()
Backlight time-out list same as original
Change-Id: I59027c62d3f2956bd16fdcc1a48b2ac32c084abd
2018-12-18 04:27:55 +00:00
|
|
|
"outro,track",
|
|
|
|
UNIT_SEC, formatter_time_unit_0_is_skip_track,
|
|
|
|
getlang_time_unit_0_is_skip_track, NULL,
|
|
|
|
25, timeout_sec_common),
|
Selective Backlight/Advanced Softlock - Selective actions based on context
Selective backlight allows the user to choose actions that will not
enable the backlight when pressed.
Advanced softlock allows user to choose actions that will not be
blocked by screenlock on devices without a hold button.
Both only occur in FM and WPS Contexts.
Update:
Back from the dead
-Cleaned up code, removed unnecessary calls, re-arranged last filter action
timeout conditional to work in case last_filtered_action_tick was never set
-Added entries to the manual
-Fixed back button on some menus not activating backlight
-Made menus more intuitive, no actions selected now changes menu item to off.
-Added talk fuctionality.
-Added option to disable selective backlight while on external power.
-Rewrote backlight and softlock handling code to fix issue with scrollwheels
-Menu changed to have toggle(yes/no) and settings
-Optimized selective actions lookup
-Added option to disable notification of 'buttons locked' while softlocked
-Removed uneeded code, consolidated action lookup to single function
-Fixed incorrect name on selective softlock menu
-Added option to disable touch on touchscreen devices
-Fixed backlight on original screenlock without selective screenlock active
-Added text selection in mask_select for when show_icons is off
-Fixed voice in mask_select to speak if voice is defined instead of spelling
-Added more lang defines (play skip seek)
-Added option to disable unknown keys turning on backlight
-Fixed Conditional argument In wrong place causing players without
backlight to fail to build
-Fixed Disable Unknown blocking detection of context change
-Fixed canceling menu didn't update new settings
-Added Autolock on backlight off
-Removed backlight_on_force from backlight.c, Now sets ignore next to false
and uses backlight_on
-Cleaned up autolock code added strings to lang file
-Fixed issue where rapid presses would bypass softlock
-Removed old softlock code, Cleaned selective actions code
-Changed menu to match existing RB menus
-Fixed Backlight_on_Hold blocked by backlight_ignore_next
-Fixed ignore_next for ipod
-Fixed bug allowing context with softlock to bypass selective backlight
-Changed mask_select to no longer prompt for changes to be saved
-Changed menu names
-Added ignore timeout to allow ipod scroll wheel to work properly and other
players to still work properly, removed some previous code including
ignore_event
-Increased ignore timeout to prevent sd card accesses from interrupting action
code and turning on backlight
-Changed Unknown action to unmapped action in menu, changed handling code
-Removed unneeded logic and variables for handling unfiltered actions
-Reverted unmapped action code to previous functionality
-Added manual entries (thanks JohnB)
-Removed elusive unhandled unicode character from manual, changed formatting slightly
Actions:
Volume,Play,Seek,Skip
Extras:
Disable unmapped actions
Disable selective backlight on external power
Disable touch during softlock on touchscreen devices
Disable softlock notifications (power button still notifies)
Autolock on backlight off
Method:
Adds a function to ignore backlight on next call
If selected action occurs backlight is forced on,
Filter_first_keypress stays intact.
Selective softlock allows selected actions through, bypasses the normal
softlock routine.
ToDo:
DONE
previous commit (#1) has attribution for folder_select.c which mask_select
is based from.
Change-Id: I08132ddcfd64c81751ef23b720f3ec6d68695fe4
2016-11-22 05:21:31 +00:00
|
|
|
CHOICE_SETTING(0, start_in_screen, LANG_START_SCREEN, 1,
|
2008-12-10 09:17:49 +00:00
|
|
|
"start in screen", "previous,root,files,"
|
Selective Backlight/Advanced Softlock - Selective actions based on context
Selective backlight allows the user to choose actions that will not
enable the backlight when pressed.
Advanced softlock allows user to choose actions that will not be
blocked by screenlock on devices without a hold button.
Both only occur in FM and WPS Contexts.
Update:
Back from the dead
-Cleaned up code, removed unnecessary calls, re-arranged last filter action
timeout conditional to work in case last_filtered_action_tick was never set
-Added entries to the manual
-Fixed back button on some menus not activating backlight
-Made menus more intuitive, no actions selected now changes menu item to off.
-Added talk fuctionality.
-Added option to disable selective backlight while on external power.
-Rewrote backlight and softlock handling code to fix issue with scrollwheels
-Menu changed to have toggle(yes/no) and settings
-Optimized selective actions lookup
-Added option to disable notification of 'buttons locked' while softlocked
-Removed uneeded code, consolidated action lookup to single function
-Fixed incorrect name on selective softlock menu
-Added option to disable touch on touchscreen devices
-Fixed backlight on original screenlock without selective screenlock active
-Added text selection in mask_select for when show_icons is off
-Fixed voice in mask_select to speak if voice is defined instead of spelling
-Added more lang defines (play skip seek)
-Added option to disable unknown keys turning on backlight
-Fixed Conditional argument In wrong place causing players without
backlight to fail to build
-Fixed Disable Unknown blocking detection of context change
-Fixed canceling menu didn't update new settings
-Added Autolock on backlight off
-Removed backlight_on_force from backlight.c, Now sets ignore next to false
and uses backlight_on
-Cleaned up autolock code added strings to lang file
-Fixed issue where rapid presses would bypass softlock
-Removed old softlock code, Cleaned selective actions code
-Changed menu to match existing RB menus
-Fixed Backlight_on_Hold blocked by backlight_ignore_next
-Fixed ignore_next for ipod
-Fixed bug allowing context with softlock to bypass selective backlight
-Changed mask_select to no longer prompt for changes to be saved
-Changed menu names
-Added ignore timeout to allow ipod scroll wheel to work properly and other
players to still work properly, removed some previous code including
ignore_event
-Increased ignore timeout to prevent sd card accesses from interrupting action
code and turning on backlight
-Changed Unknown action to unmapped action in menu, changed handling code
-Removed unneeded logic and variables for handling unfiltered actions
-Reverted unmapped action code to previous functionality
-Added manual entries (thanks JohnB)
-Removed elusive unhandled unicode character from manual, changed formatting slightly
Actions:
Volume,Play,Seek,Skip
Extras:
Disable unmapped actions
Disable selective backlight on external power
Disable touch during softlock on touchscreen devices
Disable softlock notifications (power button still notifies)
Autolock on backlight off
Method:
Adds a function to ignore backlight on next call
If selected action occurs backlight is forced on,
Filter_first_keypress stays intact.
Selective softlock allows selected actions through, bypasses the normal
softlock routine.
ToDo:
DONE
previous commit (#1) has attribution for folder_select.c which mask_select
is based from.
Change-Id: I08132ddcfd64c81751ef23b720f3ec6d68695fe4
2016-11-22 05:21:31 +00:00
|
|
|
#ifdef HAVE_TAGCACHE
|
2010-06-09 08:14:41 +00:00
|
|
|
#define START_DB_COUNT 1
|
2008-12-10 09:17:49 +00:00
|
|
|
"db,"
|
Selective Backlight/Advanced Softlock - Selective actions based on context
Selective backlight allows the user to choose actions that will not
enable the backlight when pressed.
Advanced softlock allows user to choose actions that will not be
blocked by screenlock on devices without a hold button.
Both only occur in FM and WPS Contexts.
Update:
Back from the dead
-Cleaned up code, removed unnecessary calls, re-arranged last filter action
timeout conditional to work in case last_filtered_action_tick was never set
-Added entries to the manual
-Fixed back button on some menus not activating backlight
-Made menus more intuitive, no actions selected now changes menu item to off.
-Added talk fuctionality.
-Added option to disable selective backlight while on external power.
-Rewrote backlight and softlock handling code to fix issue with scrollwheels
-Menu changed to have toggle(yes/no) and settings
-Optimized selective actions lookup
-Added option to disable notification of 'buttons locked' while softlocked
-Removed uneeded code, consolidated action lookup to single function
-Fixed incorrect name on selective softlock menu
-Added option to disable touch on touchscreen devices
-Fixed backlight on original screenlock without selective screenlock active
-Added text selection in mask_select for when show_icons is off
-Fixed voice in mask_select to speak if voice is defined instead of spelling
-Added more lang defines (play skip seek)
-Added option to disable unknown keys turning on backlight
-Fixed Conditional argument In wrong place causing players without
backlight to fail to build
-Fixed Disable Unknown blocking detection of context change
-Fixed canceling menu didn't update new settings
-Added Autolock on backlight off
-Removed backlight_on_force from backlight.c, Now sets ignore next to false
and uses backlight_on
-Cleaned up autolock code added strings to lang file
-Fixed issue where rapid presses would bypass softlock
-Removed old softlock code, Cleaned selective actions code
-Changed menu to match existing RB menus
-Fixed Backlight_on_Hold blocked by backlight_ignore_next
-Fixed ignore_next for ipod
-Fixed bug allowing context with softlock to bypass selective backlight
-Changed mask_select to no longer prompt for changes to be saved
-Changed menu names
-Added ignore timeout to allow ipod scroll wheel to work properly and other
players to still work properly, removed some previous code including
ignore_event
-Increased ignore timeout to prevent sd card accesses from interrupting action
code and turning on backlight
-Changed Unknown action to unmapped action in menu, changed handling code
-Removed unneeded logic and variables for handling unfiltered actions
-Reverted unmapped action code to previous functionality
-Added manual entries (thanks JohnB)
-Removed elusive unhandled unicode character from manual, changed formatting slightly
Actions:
Volume,Play,Seek,Skip
Extras:
Disable unmapped actions
Disable selective backlight on external power
Disable touch during softlock on touchscreen devices
Disable softlock notifications (power button still notifies)
Autolock on backlight off
Method:
Adds a function to ignore backlight on next call
If selected action occurs backlight is forced on,
Filter_first_keypress stays intact.
Selective softlock allows selected actions through, bypasses the normal
softlock routine.
ToDo:
DONE
previous commit (#1) has attribution for folder_select.c which mask_select
is based from.
Change-Id: I08132ddcfd64c81751ef23b720f3ec6d68695fe4
2016-11-22 05:21:31 +00:00
|
|
|
#else
|
2010-06-09 08:14:41 +00:00
|
|
|
#define START_DB_COUNT 0
|
2008-12-10 09:17:49 +00:00
|
|
|
#endif
|
|
|
|
"wps,menu,"
|
2007-03-01 11:14:46 +00:00
|
|
|
#ifdef HAVE_RECORDING
|
2010-06-09 08:14:41 +00:00
|
|
|
#define START_REC_COUNT 1
|
2008-05-11 23:13:59 +00:00
|
|
|
"recording,"
|
Selective Backlight/Advanced Softlock - Selective actions based on context
Selective backlight allows the user to choose actions that will not
enable the backlight when pressed.
Advanced softlock allows user to choose actions that will not be
blocked by screenlock on devices without a hold button.
Both only occur in FM and WPS Contexts.
Update:
Back from the dead
-Cleaned up code, removed unnecessary calls, re-arranged last filter action
timeout conditional to work in case last_filtered_action_tick was never set
-Added entries to the manual
-Fixed back button on some menus not activating backlight
-Made menus more intuitive, no actions selected now changes menu item to off.
-Added talk fuctionality.
-Added option to disable selective backlight while on external power.
-Rewrote backlight and softlock handling code to fix issue with scrollwheels
-Menu changed to have toggle(yes/no) and settings
-Optimized selective actions lookup
-Added option to disable notification of 'buttons locked' while softlocked
-Removed uneeded code, consolidated action lookup to single function
-Fixed incorrect name on selective softlock menu
-Added option to disable touch on touchscreen devices
-Fixed backlight on original screenlock without selective screenlock active
-Added text selection in mask_select for when show_icons is off
-Fixed voice in mask_select to speak if voice is defined instead of spelling
-Added more lang defines (play skip seek)
-Added option to disable unknown keys turning on backlight
-Fixed Conditional argument In wrong place causing players without
backlight to fail to build
-Fixed Disable Unknown blocking detection of context change
-Fixed canceling menu didn't update new settings
-Added Autolock on backlight off
-Removed backlight_on_force from backlight.c, Now sets ignore next to false
and uses backlight_on
-Cleaned up autolock code added strings to lang file
-Fixed issue where rapid presses would bypass softlock
-Removed old softlock code, Cleaned selective actions code
-Changed menu to match existing RB menus
-Fixed Backlight_on_Hold blocked by backlight_ignore_next
-Fixed ignore_next for ipod
-Fixed bug allowing context with softlock to bypass selective backlight
-Changed mask_select to no longer prompt for changes to be saved
-Changed menu names
-Added ignore timeout to allow ipod scroll wheel to work properly and other
players to still work properly, removed some previous code including
ignore_event
-Increased ignore timeout to prevent sd card accesses from interrupting action
code and turning on backlight
-Changed Unknown action to unmapped action in menu, changed handling code
-Removed unneeded logic and variables for handling unfiltered actions
-Reverted unmapped action code to previous functionality
-Added manual entries (thanks JohnB)
-Removed elusive unhandled unicode character from manual, changed formatting slightly
Actions:
Volume,Play,Seek,Skip
Extras:
Disable unmapped actions
Disable selective backlight on external power
Disable touch during softlock on touchscreen devices
Disable softlock notifications (power button still notifies)
Autolock on backlight off
Method:
Adds a function to ignore backlight on next call
If selected action occurs backlight is forced on,
Filter_first_keypress stays intact.
Selective softlock allows selected actions through, bypasses the normal
softlock routine.
ToDo:
DONE
previous commit (#1) has attribution for folder_select.c which mask_select
is based from.
Change-Id: I08132ddcfd64c81751ef23b720f3ec6d68695fe4
2016-11-22 05:21:31 +00:00
|
|
|
#else
|
2010-06-09 08:14:41 +00:00
|
|
|
#define START_REC_COUNT 0
|
2007-03-01 11:14:46 +00:00
|
|
|
#endif
|
|
|
|
#if CONFIG_TUNER
|
2010-06-09 08:14:41 +00:00
|
|
|
#define START_TUNER_COUNT 1
|
2008-05-11 23:13:59 +00:00
|
|
|
"radio,"
|
Selective Backlight/Advanced Softlock - Selective actions based on context
Selective backlight allows the user to choose actions that will not
enable the backlight when pressed.
Advanced softlock allows user to choose actions that will not be
blocked by screenlock on devices without a hold button.
Both only occur in FM and WPS Contexts.
Update:
Back from the dead
-Cleaned up code, removed unnecessary calls, re-arranged last filter action
timeout conditional to work in case last_filtered_action_tick was never set
-Added entries to the manual
-Fixed back button on some menus not activating backlight
-Made menus more intuitive, no actions selected now changes menu item to off.
-Added talk fuctionality.
-Added option to disable selective backlight while on external power.
-Rewrote backlight and softlock handling code to fix issue with scrollwheels
-Menu changed to have toggle(yes/no) and settings
-Optimized selective actions lookup
-Added option to disable notification of 'buttons locked' while softlocked
-Removed uneeded code, consolidated action lookup to single function
-Fixed incorrect name on selective softlock menu
-Added option to disable touch on touchscreen devices
-Fixed backlight on original screenlock without selective screenlock active
-Added text selection in mask_select for when show_icons is off
-Fixed voice in mask_select to speak if voice is defined instead of spelling
-Added more lang defines (play skip seek)
-Added option to disable unknown keys turning on backlight
-Fixed Conditional argument In wrong place causing players without
backlight to fail to build
-Fixed Disable Unknown blocking detection of context change
-Fixed canceling menu didn't update new settings
-Added Autolock on backlight off
-Removed backlight_on_force from backlight.c, Now sets ignore next to false
and uses backlight_on
-Cleaned up autolock code added strings to lang file
-Fixed issue where rapid presses would bypass softlock
-Removed old softlock code, Cleaned selective actions code
-Changed menu to match existing RB menus
-Fixed Backlight_on_Hold blocked by backlight_ignore_next
-Fixed ignore_next for ipod
-Fixed bug allowing context with softlock to bypass selective backlight
-Changed mask_select to no longer prompt for changes to be saved
-Changed menu names
-Added ignore timeout to allow ipod scroll wheel to work properly and other
players to still work properly, removed some previous code including
ignore_event
-Increased ignore timeout to prevent sd card accesses from interrupting action
code and turning on backlight
-Changed Unknown action to unmapped action in menu, changed handling code
-Removed unneeded logic and variables for handling unfiltered actions
-Reverted unmapped action code to previous functionality
-Added manual entries (thanks JohnB)
-Removed elusive unhandled unicode character from manual, changed formatting slightly
Actions:
Volume,Play,Seek,Skip
Extras:
Disable unmapped actions
Disable selective backlight on external power
Disable touch during softlock on touchscreen devices
Disable softlock notifications (power button still notifies)
Autolock on backlight off
Method:
Adds a function to ignore backlight on next call
If selected action occurs backlight is forced on,
Filter_first_keypress stays intact.
Selective softlock allows selected actions through, bypasses the normal
softlock routine.
ToDo:
DONE
previous commit (#1) has attribution for folder_select.c which mask_select
is based from.
Change-Id: I08132ddcfd64c81751ef23b720f3ec6d68695fe4
2016-11-22 05:21:31 +00:00
|
|
|
#else
|
2010-06-09 08:14:41 +00:00
|
|
|
#define START_TUNER_COUNT 0
|
2007-03-01 11:14:46 +00:00
|
|
|
#endif
|
2010-06-09 08:14:41 +00:00
|
|
|
"bookmarks"
|
2010-06-09 08:51:29 +00:00
|
|
|
#ifdef HAVE_PICTUREFLOW_INTEGRATION
|
2010-06-09 08:14:41 +00:00
|
|
|
#define START_PF_COUNT 1
|
|
|
|
",pictureflow"
|
Selective Backlight/Advanced Softlock - Selective actions based on context
Selective backlight allows the user to choose actions that will not
enable the backlight when pressed.
Advanced softlock allows user to choose actions that will not be
blocked by screenlock on devices without a hold button.
Both only occur in FM and WPS Contexts.
Update:
Back from the dead
-Cleaned up code, removed unnecessary calls, re-arranged last filter action
timeout conditional to work in case last_filtered_action_tick was never set
-Added entries to the manual
-Fixed back button on some menus not activating backlight
-Made menus more intuitive, no actions selected now changes menu item to off.
-Added talk fuctionality.
-Added option to disable selective backlight while on external power.
-Rewrote backlight and softlock handling code to fix issue with scrollwheels
-Menu changed to have toggle(yes/no) and settings
-Optimized selective actions lookup
-Added option to disable notification of 'buttons locked' while softlocked
-Removed uneeded code, consolidated action lookup to single function
-Fixed incorrect name on selective softlock menu
-Added option to disable touch on touchscreen devices
-Fixed backlight on original screenlock without selective screenlock active
-Added text selection in mask_select for when show_icons is off
-Fixed voice in mask_select to speak if voice is defined instead of spelling
-Added more lang defines (play skip seek)
-Added option to disable unknown keys turning on backlight
-Fixed Conditional argument In wrong place causing players without
backlight to fail to build
-Fixed Disable Unknown blocking detection of context change
-Fixed canceling menu didn't update new settings
-Added Autolock on backlight off
-Removed backlight_on_force from backlight.c, Now sets ignore next to false
and uses backlight_on
-Cleaned up autolock code added strings to lang file
-Fixed issue where rapid presses would bypass softlock
-Removed old softlock code, Cleaned selective actions code
-Changed menu to match existing RB menus
-Fixed Backlight_on_Hold blocked by backlight_ignore_next
-Fixed ignore_next for ipod
-Fixed bug allowing context with softlock to bypass selective backlight
-Changed mask_select to no longer prompt for changes to be saved
-Changed menu names
-Added ignore timeout to allow ipod scroll wheel to work properly and other
players to still work properly, removed some previous code including
ignore_event
-Increased ignore timeout to prevent sd card accesses from interrupting action
code and turning on backlight
-Changed Unknown action to unmapped action in menu, changed handling code
-Removed unneeded logic and variables for handling unfiltered actions
-Reverted unmapped action code to previous functionality
-Added manual entries (thanks JohnB)
-Removed elusive unhandled unicode character from manual, changed formatting slightly
Actions:
Volume,Play,Seek,Skip
Extras:
Disable unmapped actions
Disable selective backlight on external power
Disable touch during softlock on touchscreen devices
Disable softlock notifications (power button still notifies)
Autolock on backlight off
Method:
Adds a function to ignore backlight on next call
If selected action occurs backlight is forced on,
Filter_first_keypress stays intact.
Selective softlock allows selected actions through, bypasses the normal
softlock routine.
ToDo:
DONE
previous commit (#1) has attribution for folder_select.c which mask_select
is based from.
Change-Id: I08132ddcfd64c81751ef23b720f3ec6d68695fe4
2016-11-22 05:21:31 +00:00
|
|
|
#else
|
2010-06-09 08:14:41 +00:00
|
|
|
#define START_PF_COUNT 0
|
2007-03-01 11:14:46 +00:00
|
|
|
#endif
|
2010-06-09 08:14:41 +00:00
|
|
|
, NULL,
|
|
|
|
(6 + START_DB_COUNT + START_REC_COUNT + START_TUNER_COUNT + START_PF_COUNT),
|
2008-05-11 23:13:59 +00:00
|
|
|
ID2P(LANG_PREVIOUS_SCREEN), ID2P(LANG_MAIN_MENU),
|
Selective Backlight/Advanced Softlock - Selective actions based on context
Selective backlight allows the user to choose actions that will not
enable the backlight when pressed.
Advanced softlock allows user to choose actions that will not be
blocked by screenlock on devices without a hold button.
Both only occur in FM and WPS Contexts.
Update:
Back from the dead
-Cleaned up code, removed unnecessary calls, re-arranged last filter action
timeout conditional to work in case last_filtered_action_tick was never set
-Added entries to the manual
-Fixed back button on some menus not activating backlight
-Made menus more intuitive, no actions selected now changes menu item to off.
-Added talk fuctionality.
-Added option to disable selective backlight while on external power.
-Rewrote backlight and softlock handling code to fix issue with scrollwheels
-Menu changed to have toggle(yes/no) and settings
-Optimized selective actions lookup
-Added option to disable notification of 'buttons locked' while softlocked
-Removed uneeded code, consolidated action lookup to single function
-Fixed incorrect name on selective softlock menu
-Added option to disable touch on touchscreen devices
-Fixed backlight on original screenlock without selective screenlock active
-Added text selection in mask_select for when show_icons is off
-Fixed voice in mask_select to speak if voice is defined instead of spelling
-Added more lang defines (play skip seek)
-Added option to disable unknown keys turning on backlight
-Fixed Conditional argument In wrong place causing players without
backlight to fail to build
-Fixed Disable Unknown blocking detection of context change
-Fixed canceling menu didn't update new settings
-Added Autolock on backlight off
-Removed backlight_on_force from backlight.c, Now sets ignore next to false
and uses backlight_on
-Cleaned up autolock code added strings to lang file
-Fixed issue where rapid presses would bypass softlock
-Removed old softlock code, Cleaned selective actions code
-Changed menu to match existing RB menus
-Fixed Backlight_on_Hold blocked by backlight_ignore_next
-Fixed ignore_next for ipod
-Fixed bug allowing context with softlock to bypass selective backlight
-Changed mask_select to no longer prompt for changes to be saved
-Changed menu names
-Added ignore timeout to allow ipod scroll wheel to work properly and other
players to still work properly, removed some previous code including
ignore_event
-Increased ignore timeout to prevent sd card accesses from interrupting action
code and turning on backlight
-Changed Unknown action to unmapped action in menu, changed handling code
-Removed unneeded logic and variables for handling unfiltered actions
-Reverted unmapped action code to previous functionality
-Added manual entries (thanks JohnB)
-Removed elusive unhandled unicode character from manual, changed formatting slightly
Actions:
Volume,Play,Seek,Skip
Extras:
Disable unmapped actions
Disable selective backlight on external power
Disable touch during softlock on touchscreen devices
Disable softlock notifications (power button still notifies)
Autolock on backlight off
Method:
Adds a function to ignore backlight on next call
If selected action occurs backlight is forced on,
Filter_first_keypress stays intact.
Selective softlock allows selected actions through, bypasses the normal
softlock routine.
ToDo:
DONE
previous commit (#1) has attribution for folder_select.c which mask_select
is based from.
Change-Id: I08132ddcfd64c81751ef23b720f3ec6d68695fe4
2016-11-22 05:21:31 +00:00
|
|
|
ID2P(LANG_DIR_BROWSER),
|
2008-12-10 09:17:49 +00:00
|
|
|
#ifdef HAVE_TAGCACHE
|
|
|
|
ID2P(LANG_TAGCACHE),
|
|
|
|
#endif
|
2008-05-11 23:13:59 +00:00
|
|
|
ID2P(LANG_RESUME_PLAYBACK), ID2P(LANG_SETTINGS),
|
2007-03-01 11:14:46 +00:00
|
|
|
#ifdef HAVE_RECORDING
|
2008-05-11 23:13:59 +00:00
|
|
|
ID2P(LANG_RECORDING),
|
2007-03-01 11:14:46 +00:00
|
|
|
#endif
|
|
|
|
#if CONFIG_TUNER
|
2008-05-11 23:13:59 +00:00
|
|
|
ID2P(LANG_FM_RADIO),
|
2007-03-01 11:14:46 +00:00
|
|
|
#endif
|
2010-06-09 08:14:41 +00:00
|
|
|
ID2P(LANG_BOOKMARK_MENU_RECENT_BOOKMARKS)
|
2010-06-09 08:51:29 +00:00
|
|
|
#ifdef HAVE_PICTUREFLOW_INTEGRATION
|
2010-06-09 08:14:41 +00:00
|
|
|
,ID2P(LANG_ONPLAY_PICTUREFLOW)
|
|
|
|
#endif
|
2008-05-11 23:13:59 +00:00
|
|
|
),
|
2007-03-01 11:14:46 +00:00
|
|
|
SYSTEM_SETTING(NVRAM(1),last_screen,-1),
|
2007-03-07 01:16:25 +00:00
|
|
|
#if defined(HAVE_RTC_ALARM) && \
|
|
|
|
(defined(HAVE_RECORDING) || CONFIG_TUNER)
|
2007-03-07 07:36:04 +00:00
|
|
|
{F_T_INT, &global_settings.alarm_wake_up_screen, LANG_ALARM_WAKEUP_SCREEN,
|
2008-05-11 23:13:59 +00:00
|
|
|
INT(ALARM_START_WPS), "alarm wakeup screen", ALARM_SETTING_TEXT,UNUSED},
|
2007-03-07 01:16:25 +00:00
|
|
|
#endif /* HAVE_RTC_ALARM */
|
2008-02-23 03:56:39 +00:00
|
|
|
|
2007-04-16 09:14:36 +00:00
|
|
|
/* Customizable icons */
|
|
|
|
#ifdef HAVE_LCD_BITMAP
|
2008-10-23 00:29:17 +00:00
|
|
|
TEXT_SETTING(F_THEMESETTING, icon_file, "iconset", DEFAULT_ICONSET,
|
|
|
|
ICON_DIR "/", ".bmp"),
|
|
|
|
TEXT_SETTING(F_THEMESETTING, viewers_icon_file, "viewers iconset",
|
2008-05-11 23:13:59 +00:00
|
|
|
DEFAULT_VIEWERS_ICONSET,
|
2008-10-23 00:29:17 +00:00
|
|
|
ICON_DIR "/", ".bmp"),
|
2007-04-16 14:33:29 +00:00
|
|
|
#endif
|
2007-04-16 09:14:36 +00:00
|
|
|
#ifdef HAVE_REMOTE_LCD
|
2010-02-21 20:34:27 +00:00
|
|
|
TEXT_SETTING(F_THEMESETTING, remote_icon_file, "remote iconset", "-",
|
2008-10-23 00:29:17 +00:00
|
|
|
ICON_DIR "/", ".bmp"),
|
|
|
|
TEXT_SETTING(F_THEMESETTING, remote_viewers_icon_file,
|
2010-02-21 20:34:27 +00:00
|
|
|
"remote viewers iconset", "-",
|
2008-10-23 00:29:17 +00:00
|
|
|
ICON_DIR "/", ".bmp"),
|
2007-04-16 09:14:36 +00:00
|
|
|
#endif /* HAVE_REMOTE_LCD */
|
2007-06-17 21:16:34 +00:00
|
|
|
#ifdef HAVE_LCD_COLOR
|
2008-10-23 00:29:17 +00:00
|
|
|
TEXT_SETTING(F_THEMESETTING, colors_file, "filetype colours", "-",
|
|
|
|
THEME_DIR "/", ".colours"),
|
2007-06-17 21:16:34 +00:00
|
|
|
#endif
|
2007-04-22 13:02:24 +00:00
|
|
|
#ifdef HAVE_BUTTON_LIGHT
|
Auto-Ranging Time Formatting For Menus (hh:mm:ss:mss)
Unifies time formatting in settings_list.c allows time format to
display as HH:MM:SS.MSS or any consecutive combination thereof
(hh:mm:ss, mm:ss, mm:ss.mss, ss.mss, hh, mm, ss ,mss)
works in INT and TABLE settings with the addition of flag 'F_TIME_SETTING'
Time is auto-ranged dependent on value
Adds talk_time_intervals to allow time values to be spoken similar to
display format: x Hours, x Minutes, x Seconds, x Milliseconds
Table lookups merged or removed from recording, clip meter and lcd timeout
-String_Choice replaced with TABLE_SETTING or INT_SETTING for these
functions as well, cleaned-up cfg_vals that get saved to cfgfile
RTL Languages ARE supported
Negative values ARE supported
Backlight on/off are now Always and Never to share formatter with LCD
Timeout
Added flag to allow ranged units to be locked to a minimum index
Added flag to allow leading zero to be supressed from the largest unit
merged talk_time_unit() and talk_time_intervals()
optimized time_split()
optimized format_time_auto()
Backlight time-out list same as original
Change-Id: I59027c62d3f2956bd16fdcc1a48b2ac32c084abd
2018-12-18 04:27:55 +00:00
|
|
|
TABLE_SETTING_LIST(F_TIME_SETTING | F_ALLOW_ARBITRARY_VALS,
|
|
|
|
buttonlight_timeout, LANG_BUTTONLIGHT_TIMEOUT,
|
|
|
|
DEFAULT_BACKLIGHT_TIMEOUT, "button light timeout",
|
|
|
|
off_on, UNIT_SEC, formatter_time_unit_0_is_always,
|
|
|
|
getlang_time_unit_0_is_always, buttonlight_set_timeout,
|
|
|
|
23, timeout_sec_common),
|
2007-04-22 13:02:24 +00:00
|
|
|
#endif
|
2007-05-08 06:45:38 +00:00
|
|
|
#ifdef HAVE_BUTTONLIGHT_BRIGHTNESS
|
2008-05-11 23:13:59 +00:00
|
|
|
INT_SETTING(F_NO_WRAP, buttonlight_brightness, LANG_BUTTONLIGHT_BRIGHTNESS,
|
|
|
|
DEFAULT_BRIGHTNESS_SETTING,
|
|
|
|
"button light brightness",UNIT_INT, MIN_BRIGHTNESS_SETTING,
|
|
|
|
MAX_BRIGHTNESS_SETTING, 1, NULL, NULL,
|
|
|
|
buttonlight_set_brightness),
|
2007-05-08 06:45:38 +00:00
|
|
|
#endif
|
2009-03-02 19:25:50 +00:00
|
|
|
#ifndef HAVE_WHEEL_ACCELERATION
|
Auto-Ranging Time Formatting For Menus (hh:mm:ss:mss)
Unifies time formatting in settings_list.c allows time format to
display as HH:MM:SS.MSS or any consecutive combination thereof
(hh:mm:ss, mm:ss, mm:ss.mss, ss.mss, hh, mm, ss ,mss)
works in INT and TABLE settings with the addition of flag 'F_TIME_SETTING'
Time is auto-ranged dependent on value
Adds talk_time_intervals to allow time values to be spoken similar to
display format: x Hours, x Minutes, x Seconds, x Milliseconds
Table lookups merged or removed from recording, clip meter and lcd timeout
-String_Choice replaced with TABLE_SETTING or INT_SETTING for these
functions as well, cleaned-up cfg_vals that get saved to cfgfile
RTL Languages ARE supported
Negative values ARE supported
Backlight on/off are now Always and Never to share formatter with LCD
Timeout
Added flag to allow ranged units to be locked to a minimum index
Added flag to allow leading zero to be supressed from the largest unit
merged talk_time_unit() and talk_time_intervals()
optimized time_split()
optimized format_time_auto()
Backlight time-out list same as original
Change-Id: I59027c62d3f2956bd16fdcc1a48b2ac32c084abd
2018-12-18 04:27:55 +00:00
|
|
|
INT_SETTING(F_TIME_SETTING, list_accel_start_delay, LANG_LISTACCEL_START_DELAY,
|
2011-03-22 21:15:22 +00:00
|
|
|
2, "list_accel_start_delay", UNIT_SEC, 0, 10, 1,
|
Auto-Ranging Time Formatting For Menus (hh:mm:ss:mss)
Unifies time formatting in settings_list.c allows time format to
display as HH:MM:SS.MSS or any consecutive combination thereof
(hh:mm:ss, mm:ss, mm:ss.mss, ss.mss, hh, mm, ss ,mss)
works in INT and TABLE settings with the addition of flag 'F_TIME_SETTING'
Time is auto-ranged dependent on value
Adds talk_time_intervals to allow time values to be spoken similar to
display format: x Hours, x Minutes, x Seconds, x Milliseconds
Table lookups merged or removed from recording, clip meter and lcd timeout
-String_Choice replaced with TABLE_SETTING or INT_SETTING for these
functions as well, cleaned-up cfg_vals that get saved to cfgfile
RTL Languages ARE supported
Negative values ARE supported
Backlight on/off are now Always and Never to share formatter with LCD
Timeout
Added flag to allow ranged units to be locked to a minimum index
Added flag to allow leading zero to be supressed from the largest unit
merged talk_time_unit() and talk_time_intervals()
optimized time_split()
optimized format_time_auto()
Backlight time-out list same as original
Change-Id: I59027c62d3f2956bd16fdcc1a48b2ac32c084abd
2018-12-18 04:27:55 +00:00
|
|
|
formatter_time_unit_0_is_off, getlang_time_unit_0_is_off, NULL),
|
2007-05-27 15:08:56 +00:00
|
|
|
INT_SETTING(0, list_accel_wait, LANG_LISTACCEL_ACCEL_SPEED,
|
Selective Backlight/Advanced Softlock - Selective actions based on context
Selective backlight allows the user to choose actions that will not
enable the backlight when pressed.
Advanced softlock allows user to choose actions that will not be
blocked by screenlock on devices without a hold button.
Both only occur in FM and WPS Contexts.
Update:
Back from the dead
-Cleaned up code, removed unnecessary calls, re-arranged last filter action
timeout conditional to work in case last_filtered_action_tick was never set
-Added entries to the manual
-Fixed back button on some menus not activating backlight
-Made menus more intuitive, no actions selected now changes menu item to off.
-Added talk fuctionality.
-Added option to disable selective backlight while on external power.
-Rewrote backlight and softlock handling code to fix issue with scrollwheels
-Menu changed to have toggle(yes/no) and settings
-Optimized selective actions lookup
-Added option to disable notification of 'buttons locked' while softlocked
-Removed uneeded code, consolidated action lookup to single function
-Fixed incorrect name on selective softlock menu
-Added option to disable touch on touchscreen devices
-Fixed backlight on original screenlock without selective screenlock active
-Added text selection in mask_select for when show_icons is off
-Fixed voice in mask_select to speak if voice is defined instead of spelling
-Added more lang defines (play skip seek)
-Added option to disable unknown keys turning on backlight
-Fixed Conditional argument In wrong place causing players without
backlight to fail to build
-Fixed Disable Unknown blocking detection of context change
-Fixed canceling menu didn't update new settings
-Added Autolock on backlight off
-Removed backlight_on_force from backlight.c, Now sets ignore next to false
and uses backlight_on
-Cleaned up autolock code added strings to lang file
-Fixed issue where rapid presses would bypass softlock
-Removed old softlock code, Cleaned selective actions code
-Changed menu to match existing RB menus
-Fixed Backlight_on_Hold blocked by backlight_ignore_next
-Fixed ignore_next for ipod
-Fixed bug allowing context with softlock to bypass selective backlight
-Changed mask_select to no longer prompt for changes to be saved
-Changed menu names
-Added ignore timeout to allow ipod scroll wheel to work properly and other
players to still work properly, removed some previous code including
ignore_event
-Increased ignore timeout to prevent sd card accesses from interrupting action
code and turning on backlight
-Changed Unknown action to unmapped action in menu, changed handling code
-Removed unneeded logic and variables for handling unfiltered actions
-Reverted unmapped action code to previous functionality
-Added manual entries (thanks JohnB)
-Removed elusive unhandled unicode character from manual, changed formatting slightly
Actions:
Volume,Play,Seek,Skip
Extras:
Disable unmapped actions
Disable selective backlight on external power
Disable touch during softlock on touchscreen devices
Disable softlock notifications (power button still notifies)
Autolock on backlight off
Method:
Adds a function to ignore backlight on next call
If selected action occurs backlight is forced on,
Filter_first_keypress stays intact.
Selective softlock allows selected actions through, bypasses the normal
softlock routine.
ToDo:
DONE
previous commit (#1) has attribution for folder_select.c which mask_select
is based from.
Change-Id: I08132ddcfd64c81751ef23b720f3ec6d68695fe4
2016-11-22 05:21:31 +00:00
|
|
|
3, "list_accel_wait", UNIT_SEC, 1, 10, 1,
|
2018-12-22 19:53:00 +00:00
|
|
|
scanaccel_formatter, NULL, NULL),
|
2009-03-02 19:25:50 +00:00
|
|
|
#endif /* HAVE_WHEEL_ACCELERATION */
|
2008-01-21 09:48:44 +00:00
|
|
|
#if CONFIG_CODEC == SWCODEC
|
|
|
|
/* keyclick */
|
2011-11-16 10:25:43 +00:00
|
|
|
#ifdef HAVE_HARDWARE_CLICK
|
|
|
|
CHOICE_SETTING(0, keyclick, LANG_KEYCLICK_SOFTWARE, 0,
|
|
|
|
"keyclick", "off,weak,moderate,strong", NULL, 4,
|
|
|
|
ID2P(LANG_OFF), ID2P(LANG_WEAK), ID2P(LANG_MODERATE),
|
|
|
|
ID2P(LANG_STRONG)),
|
|
|
|
OFFON_SETTING(0, keyclick_repeats, LANG_KEYCLICK_REPEATS, false,
|
|
|
|
"keyclick repeats", NULL),
|
|
|
|
OFFON_SETTING(0, keyclick_hardware, LANG_KEYCLICK_HARDWARE, false,
|
|
|
|
"hardware keyclick", NULL),
|
|
|
|
#else
|
2008-01-21 09:48:44 +00:00
|
|
|
CHOICE_SETTING(0, keyclick, LANG_KEYCLICK, 0,
|
2008-05-11 23:13:59 +00:00
|
|
|
"keyclick", "off,weak,moderate,strong", NULL, 4,
|
|
|
|
ID2P(LANG_OFF), ID2P(LANG_WEAK), ID2P(LANG_MODERATE),
|
|
|
|
ID2P(LANG_STRONG)),
|
|
|
|
OFFON_SETTING(0, keyclick_repeats, LANG_KEYCLICK_REPEATS, false,
|
|
|
|
"keyclick repeats", NULL),
|
2011-11-16 10:25:43 +00:00
|
|
|
#endif
|
2008-01-21 09:48:44 +00:00
|
|
|
#endif /* CONFIG_CODEC == SWCODEC */
|
2008-10-23 00:29:17 +00:00
|
|
|
TEXT_SETTING(0, playlist_catalog_dir, "playlist catalog directory",
|
|
|
|
PLAYLIST_CATALOG_DEFAULT_DIR, NULL, NULL),
|
Auto-Ranging Time Formatting For Menus (hh:mm:ss:mss)
Unifies time formatting in settings_list.c allows time format to
display as HH:MM:SS.MSS or any consecutive combination thereof
(hh:mm:ss, mm:ss, mm:ss.mss, ss.mss, hh, mm, ss ,mss)
works in INT and TABLE settings with the addition of flag 'F_TIME_SETTING'
Time is auto-ranged dependent on value
Adds talk_time_intervals to allow time values to be spoken similar to
display format: x Hours, x Minutes, x Seconds, x Milliseconds
Table lookups merged or removed from recording, clip meter and lcd timeout
-String_Choice replaced with TABLE_SETTING or INT_SETTING for these
functions as well, cleaned-up cfg_vals that get saved to cfgfile
RTL Languages ARE supported
Negative values ARE supported
Backlight on/off are now Always and Never to share formatter with LCD
Timeout
Added flag to allow ranged units to be locked to a minimum index
Added flag to allow leading zero to be supressed from the largest unit
merged talk_time_unit() and talk_time_intervals()
optimized time_split()
optimized format_time_auto()
Backlight time-out list same as original
Change-Id: I59027c62d3f2956bd16fdcc1a48b2ac32c084abd
2018-12-18 04:27:55 +00:00
|
|
|
INT_SETTING(F_TIME_SETTING, sleeptimer_duration, LANG_SLEEP_TIMER_DURATION,
|
|
|
|
30, "sleeptimer duration", UNIT_MIN, 5, 300, 5,
|
|
|
|
NULL, NULL, NULL),
|
2011-10-17 18:57:38 +00:00
|
|
|
OFFON_SETTING(0, sleeptimer_on_startup, LANG_SLEEP_TIMER_ON_POWER_UP, false,
|
|
|
|
"sleeptimer on startup", NULL),
|
2011-12-26 09:30:25 +00:00
|
|
|
OFFON_SETTING(0, keypress_restarts_sleeptimer, LANG_KEYPRESS_RESTARTS_SLEEP_TIMER, false,
|
|
|
|
"keypress restarts sleeptimer", set_keypress_restarts_sleep_timer),
|
2008-05-29 21:27:44 +00:00
|
|
|
#ifdef HAVE_TOUCHPAD_SENSITIVITY_SETTING
|
2013-07-13 16:02:41 +00:00
|
|
|
/* If specific values are set for touchpad sensitivity setting we use those */
|
|
|
|
#if (defined(MAX_TOUCHPAD_SENSITIVITY_SETTING) \
|
|
|
|
&& defined(MIN_TOUCHPAD_SENSITIVITY_SETTING) \
|
|
|
|
&& defined(DEFAULT_TOUCHPAD_SENSITIVITY_SETTING))
|
|
|
|
INT_SETTING(F_NO_WRAP, touchpad_sensitivity, LANG_TOUCHPAD_SENSITIVITY,
|
|
|
|
DEFAULT_TOUCHPAD_SENSITIVITY_SETTING, "touchpad sensitivity",UNIT_INT,
|
|
|
|
MIN_TOUCHPAD_SENSITIVITY_SETTING, MAX_TOUCHPAD_SENSITIVITY_SETTING, 1,
|
|
|
|
NULL, NULL, touchpad_set_sensitivity),
|
|
|
|
#else /* we failback to boolean normal/high values */
|
2008-05-29 21:27:44 +00:00
|
|
|
CHOICE_SETTING(0, touchpad_sensitivity, LANG_TOUCHPAD_SENSITIVITY, 0,
|
|
|
|
"touchpad sensitivity", "normal,high", touchpad_set_sensitivity, 2,
|
|
|
|
ID2P(LANG_NORMAL), ID2P(LANG_HIGH)),
|
2013-07-13 16:02:41 +00:00
|
|
|
#endif /* boolean or analogig values */
|
|
|
|
#endif /* HAVE_TOUCHPAD_SENSITIVITY_SETTING */
|
2013-12-01 18:25:42 +00:00
|
|
|
|
|
|
|
#ifdef HAVE_TOUCHPAD_DEADZONE
|
|
|
|
INT_SETTING(F_NO_WRAP, touchpad_deadzone, LANG_DEADZONE,
|
|
|
|
DEFAULT_TOUCHPAD_DEADZONE_SETTING, "touchpad deadzone", UNIT_INT,
|
|
|
|
MIN_TOUCHPAD_DEADSPACE_SETTING, MAX_TOUCHPAD_DEADSPACE_SETTING, 1,
|
|
|
|
NULL, NULL, touchpad_set_deadzone),
|
|
|
|
#endif
|
|
|
|
|
2008-11-03 11:11:07 +00:00
|
|
|
#ifdef HAVE_QUICKSCREEN
|
2009-10-28 20:41:34 +00:00
|
|
|
CUSTOM_SETTING(0, qs_items[QUICKSCREEN_TOP], LANG_TOP_QS_ITEM,
|
2011-07-20 01:30:29 +00:00
|
|
|
NULL, "qs top",
|
2009-08-29 14:42:03 +00:00
|
|
|
qs_load_from_cfg, qs_write_to_cfg,
|
|
|
|
qs_is_changed, qs_set_default),
|
2009-10-28 20:41:34 +00:00
|
|
|
CUSTOM_SETTING(0, qs_items[QUICKSCREEN_LEFT], LANG_LEFT_QS_ITEM,
|
2008-11-03 11:11:07 +00:00
|
|
|
&global_settings.playlist_shuffle, "qs left",
|
|
|
|
qs_load_from_cfg, qs_write_to_cfg,
|
|
|
|
qs_is_changed, qs_set_default),
|
2009-10-28 20:41:34 +00:00
|
|
|
CUSTOM_SETTING(0, qs_items[QUICKSCREEN_RIGHT], LANG_RIGHT_QS_ITEM,
|
2008-11-03 11:11:07 +00:00
|
|
|
&global_settings.repeat_mode, "qs right",
|
|
|
|
qs_load_from_cfg, qs_write_to_cfg,
|
|
|
|
qs_is_changed, qs_set_default),
|
2009-10-28 20:41:34 +00:00
|
|
|
CUSTOM_SETTING(0, qs_items[QUICKSCREEN_BOTTOM], LANG_BOTTOM_QS_ITEM,
|
2011-07-20 01:30:29 +00:00
|
|
|
NULL, "qs bottom",
|
2008-11-03 11:11:07 +00:00
|
|
|
qs_load_from_cfg, qs_write_to_cfg,
|
|
|
|
qs_is_changed, qs_set_default),
|
2012-03-27 13:38:30 +00:00
|
|
|
OFFON_SETTING(0, shortcuts_replaces_qs, LANG_USE_SHORTCUTS_INSTEAD_OF_QS,
|
|
|
|
false, "shortcuts instead of quickscreen", NULL),
|
2008-11-03 11:11:07 +00:00
|
|
|
#endif
|
2009-03-02 18:18:24 +00:00
|
|
|
#ifdef HAVE_SPEAKER
|
2017-01-14 00:40:12 +00:00
|
|
|
CHOICE_SETTING(0, speaker_mode, LANG_ENABLE_SPEAKER, 0, "speaker mode",
|
|
|
|
# ifdef HAVE_HEADPHONE_DETECTION
|
|
|
|
"on,off,auto", audio_enable_speaker, 3, ID2P(LANG_OFF), ID2P(LANG_ON), ID2P(LANG_AUTO)),
|
|
|
|
#else /* HAVE_HEADPHONE_DETECTION */
|
|
|
|
"on,off", audio_enable_speaker, 2, ID2P(LANG_OFF), ID2P(LANG_ON)),
|
|
|
|
#endif /* HAVE_HEADPHONE_DETECTION */
|
|
|
|
#endif /* HAVE_SPEAKER */
|
2009-03-24 21:55:05 +00:00
|
|
|
#ifdef HAVE_TOUCHSCREEN
|
2010-10-31 16:22:32 +00:00
|
|
|
CHOICE_SETTING(0, touch_mode, LANG_TOUCHSCREEN_MODE, DEFAULT_TOUCHSCREEN_MODE,
|
2009-03-24 21:55:05 +00:00
|
|
|
"touchscreen mode", "point,grid", NULL, 2,
|
|
|
|
ID2P(LANG_TOUCHSCREEN_POINT), ID2P(LANG_TOUCHSCREEN_GRID)),
|
Selective Backlight/Advanced Softlock - Selective actions based on context
Selective backlight allows the user to choose actions that will not
enable the backlight when pressed.
Advanced softlock allows user to choose actions that will not be
blocked by screenlock on devices without a hold button.
Both only occur in FM and WPS Contexts.
Update:
Back from the dead
-Cleaned up code, removed unnecessary calls, re-arranged last filter action
timeout conditional to work in case last_filtered_action_tick was never set
-Added entries to the manual
-Fixed back button on some menus not activating backlight
-Made menus more intuitive, no actions selected now changes menu item to off.
-Added talk fuctionality.
-Added option to disable selective backlight while on external power.
-Rewrote backlight and softlock handling code to fix issue with scrollwheels
-Menu changed to have toggle(yes/no) and settings
-Optimized selective actions lookup
-Added option to disable notification of 'buttons locked' while softlocked
-Removed uneeded code, consolidated action lookup to single function
-Fixed incorrect name on selective softlock menu
-Added option to disable touch on touchscreen devices
-Fixed backlight on original screenlock without selective screenlock active
-Added text selection in mask_select for when show_icons is off
-Fixed voice in mask_select to speak if voice is defined instead of spelling
-Added more lang defines (play skip seek)
-Added option to disable unknown keys turning on backlight
-Fixed Conditional argument In wrong place causing players without
backlight to fail to build
-Fixed Disable Unknown blocking detection of context change
-Fixed canceling menu didn't update new settings
-Added Autolock on backlight off
-Removed backlight_on_force from backlight.c, Now sets ignore next to false
and uses backlight_on
-Cleaned up autolock code added strings to lang file
-Fixed issue where rapid presses would bypass softlock
-Removed old softlock code, Cleaned selective actions code
-Changed menu to match existing RB menus
-Fixed Backlight_on_Hold blocked by backlight_ignore_next
-Fixed ignore_next for ipod
-Fixed bug allowing context with softlock to bypass selective backlight
-Changed mask_select to no longer prompt for changes to be saved
-Changed menu names
-Added ignore timeout to allow ipod scroll wheel to work properly and other
players to still work properly, removed some previous code including
ignore_event
-Increased ignore timeout to prevent sd card accesses from interrupting action
code and turning on backlight
-Changed Unknown action to unmapped action in menu, changed handling code
-Removed unneeded logic and variables for handling unfiltered actions
-Reverted unmapped action code to previous functionality
-Added manual entries (thanks JohnB)
-Removed elusive unhandled unicode character from manual, changed formatting slightly
Actions:
Volume,Play,Seek,Skip
Extras:
Disable unmapped actions
Disable selective backlight on external power
Disable touch during softlock on touchscreen devices
Disable softlock notifications (power button still notifies)
Autolock on backlight off
Method:
Adds a function to ignore backlight on next call
If selected action occurs backlight is forced on,
Filter_first_keypress stays intact.
Selective softlock allows selected actions through, bypasses the normal
softlock routine.
ToDo:
DONE
previous commit (#1) has attribution for folder_select.c which mask_select
is based from.
Change-Id: I08132ddcfd64c81751ef23b720f3ec6d68695fe4
2016-11-22 05:21:31 +00:00
|
|
|
CUSTOM_SETTING(0, ts_calibration_data, -1,
|
2009-06-16 17:04:47 +00:00
|
|
|
&default_calibration_parameters, "touchscreen calibration",
|
|
|
|
tsc_load_from_cfg, tsc_write_to_cfg,
|
|
|
|
tsc_is_changed, tsc_set_default),
|
2009-03-24 21:55:05 +00:00
|
|
|
#endif
|
2009-03-27 15:42:52 +00:00
|
|
|
OFFON_SETTING(0, prevent_skip, LANG_PREVENT_SKIPPING, false, "prevent track skip", NULL),
|
2009-07-11 16:46:19 +00:00
|
|
|
|
2012-05-08 14:34:26 +00:00
|
|
|
#ifdef HAVE_PITCHCONTROL
|
2009-07-11 21:21:33 +00:00
|
|
|
OFFON_SETTING(0, pitch_mode_semitone, LANG_SEMITONE, false,
|
2009-07-11 16:46:19 +00:00
|
|
|
"Semitone pitch change", NULL),
|
|
|
|
#if CONFIG_CODEC == SWCODEC
|
2009-07-11 21:21:33 +00:00
|
|
|
OFFON_SETTING(0, pitch_mode_timestretch, LANG_TIMESTRETCH, false,
|
2009-07-11 16:46:19 +00:00
|
|
|
"Timestretch mode", NULL),
|
|
|
|
#endif
|
2009-07-11 21:21:33 +00:00
|
|
|
#endif
|
2009-07-11 16:46:19 +00:00
|
|
|
|
2009-09-30 10:06:04 +00:00
|
|
|
#ifdef USB_ENABLE_HID
|
2009-10-23 13:29:19 +00:00
|
|
|
OFFON_SETTING(0, usb_hid, LANG_USB_HID, true, "usb hid", usb_set_hid),
|
2009-09-30 10:06:04 +00:00
|
|
|
CHOICE_SETTING(0, usb_keypad_mode, LANG_USB_KEYPAD_MODE, 0,
|
2009-10-03 21:09:38 +00:00
|
|
|
"usb keypad mode", "multimedia,presentation,browser"
|
|
|
|
#ifdef HAVE_USB_HID_MOUSE
|
|
|
|
",mouse"
|
|
|
|
#endif
|
|
|
|
, NULL,
|
|
|
|
#ifdef HAVE_USB_HID_MOUSE
|
|
|
|
4,
|
|
|
|
#else
|
|
|
|
3,
|
|
|
|
#endif
|
2009-10-04 05:57:11 +00:00
|
|
|
ID2P(LANG_MULTIMEDIA_MODE), ID2P(LANG_PRESENTATION_MODE),
|
|
|
|
ID2P(LANG_BROWSER_MODE)
|
2009-10-03 21:09:38 +00:00
|
|
|
#ifdef HAVE_USB_HID_MOUSE
|
2009-10-04 05:57:11 +00:00
|
|
|
, ID2P(LANG_MOUSE_MODE)
|
2009-10-03 21:09:38 +00:00
|
|
|
#endif
|
|
|
|
), /* CHOICE_SETTING( usb_keypad_mode ) */
|
2009-09-30 10:06:04 +00:00
|
|
|
#endif
|
|
|
|
|
2011-09-09 16:15:35 +00:00
|
|
|
#if defined(USB_ENABLE_STORAGE) && defined(HAVE_MULTIDRIVE)
|
|
|
|
OFFON_SETTING(0, usb_skip_first_drive, LANG_USB_SKIP_FIRST_DRIVE, false, "usb skip first drive", usb_set_skip_first_drive),
|
|
|
|
#endif
|
|
|
|
|
2009-08-16 22:20:11 +00:00
|
|
|
/* Customizable list */
|
|
|
|
#ifdef HAVE_LCD_BITMAP
|
2009-08-17 00:28:47 +00:00
|
|
|
VIEWPORT_SETTING(ui_vp_config, "ui viewport"),
|
2009-08-16 22:20:11 +00:00
|
|
|
#ifdef HAVE_REMOTE_LCD
|
2009-08-17 00:28:47 +00:00
|
|
|
VIEWPORT_SETTING(remote_ui_vp_config, "remote ui viewport"),
|
2009-08-16 22:20:11 +00:00
|
|
|
#endif
|
|
|
|
#endif
|
2009-11-08 13:14:50 +00:00
|
|
|
|
|
|
|
#ifdef HAVE_MORSE_INPUT
|
|
|
|
OFFON_SETTING(0, morse_input, LANG_MORSE_INPUT, false, "morse input", NULL),
|
|
|
|
#endif
|
2010-04-01 03:14:44 +00:00
|
|
|
|
|
|
|
#ifdef HAVE_HOTKEY
|
2010-05-09 02:02:51 +00:00
|
|
|
TABLE_SETTING(F_ALLOW_ARBITRARY_VALS, hotkey_wps,
|
|
|
|
LANG_HOTKEY_WPS, HOTKEY_VIEW_PLAYLIST, "hotkey wps",
|
2019-01-02 00:37:13 +00:00
|
|
|
"off,view playlist,show track info,pitchscreen,open with,delete,bookmark"
|
Selective Backlight/Advanced Softlock - Selective actions based on context
Selective backlight allows the user to choose actions that will not
enable the backlight when pressed.
Advanced softlock allows user to choose actions that will not be
blocked by screenlock on devices without a hold button.
Both only occur in FM and WPS Contexts.
Update:
Back from the dead
-Cleaned up code, removed unnecessary calls, re-arranged last filter action
timeout conditional to work in case last_filtered_action_tick was never set
-Added entries to the manual
-Fixed back button on some menus not activating backlight
-Made menus more intuitive, no actions selected now changes menu item to off.
-Added talk fuctionality.
-Added option to disable selective backlight while on external power.
-Rewrote backlight and softlock handling code to fix issue with scrollwheels
-Menu changed to have toggle(yes/no) and settings
-Optimized selective actions lookup
-Added option to disable notification of 'buttons locked' while softlocked
-Removed uneeded code, consolidated action lookup to single function
-Fixed incorrect name on selective softlock menu
-Added option to disable touch on touchscreen devices
-Fixed backlight on original screenlock without selective screenlock active
-Added text selection in mask_select for when show_icons is off
-Fixed voice in mask_select to speak if voice is defined instead of spelling
-Added more lang defines (play skip seek)
-Added option to disable unknown keys turning on backlight
-Fixed Conditional argument In wrong place causing players without
backlight to fail to build
-Fixed Disable Unknown blocking detection of context change
-Fixed canceling menu didn't update new settings
-Added Autolock on backlight off
-Removed backlight_on_force from backlight.c, Now sets ignore next to false
and uses backlight_on
-Cleaned up autolock code added strings to lang file
-Fixed issue where rapid presses would bypass softlock
-Removed old softlock code, Cleaned selective actions code
-Changed menu to match existing RB menus
-Fixed Backlight_on_Hold blocked by backlight_ignore_next
-Fixed ignore_next for ipod
-Fixed bug allowing context with softlock to bypass selective backlight
-Changed mask_select to no longer prompt for changes to be saved
-Changed menu names
-Added ignore timeout to allow ipod scroll wheel to work properly and other
players to still work properly, removed some previous code including
ignore_event
-Increased ignore timeout to prevent sd card accesses from interrupting action
code and turning on backlight
-Changed Unknown action to unmapped action in menu, changed handling code
-Removed unneeded logic and variables for handling unfiltered actions
-Reverted unmapped action code to previous functionality
-Added manual entries (thanks JohnB)
-Removed elusive unhandled unicode character from manual, changed formatting slightly
Actions:
Volume,Play,Seek,Skip
Extras:
Disable unmapped actions
Disable selective backlight on external power
Disable touch during softlock on touchscreen devices
Disable softlock notifications (power button still notifies)
Autolock on backlight off
Method:
Adds a function to ignore backlight on next call
If selected action occurs backlight is forced on,
Filter_first_keypress stays intact.
Selective softlock allows selected actions through, bypasses the normal
softlock routine.
ToDo:
DONE
previous commit (#1) has attribution for folder_select.c which mask_select
is based from.
Change-Id: I08132ddcfd64c81751ef23b720f3ec6d68695fe4
2016-11-22 05:21:31 +00:00
|
|
|
#ifdef HAVE_PICTUREFLOW_INTEGRATION
|
2010-06-09 09:00:42 +00:00
|
|
|
",pictureflow"
|
|
|
|
#endif
|
Selective Backlight/Advanced Softlock - Selective actions based on context
Selective backlight allows the user to choose actions that will not
enable the backlight when pressed.
Advanced softlock allows user to choose actions that will not be
blocked by screenlock on devices without a hold button.
Both only occur in FM and WPS Contexts.
Update:
Back from the dead
-Cleaned up code, removed unnecessary calls, re-arranged last filter action
timeout conditional to work in case last_filtered_action_tick was never set
-Added entries to the manual
-Fixed back button on some menus not activating backlight
-Made menus more intuitive, no actions selected now changes menu item to off.
-Added talk fuctionality.
-Added option to disable selective backlight while on external power.
-Rewrote backlight and softlock handling code to fix issue with scrollwheels
-Menu changed to have toggle(yes/no) and settings
-Optimized selective actions lookup
-Added option to disable notification of 'buttons locked' while softlocked
-Removed uneeded code, consolidated action lookup to single function
-Fixed incorrect name on selective softlock menu
-Added option to disable touch on touchscreen devices
-Fixed backlight on original screenlock without selective screenlock active
-Added text selection in mask_select for when show_icons is off
-Fixed voice in mask_select to speak if voice is defined instead of spelling
-Added more lang defines (play skip seek)
-Added option to disable unknown keys turning on backlight
-Fixed Conditional argument In wrong place causing players without
backlight to fail to build
-Fixed Disable Unknown blocking detection of context change
-Fixed canceling menu didn't update new settings
-Added Autolock on backlight off
-Removed backlight_on_force from backlight.c, Now sets ignore next to false
and uses backlight_on
-Cleaned up autolock code added strings to lang file
-Fixed issue where rapid presses would bypass softlock
-Removed old softlock code, Cleaned selective actions code
-Changed menu to match existing RB menus
-Fixed Backlight_on_Hold blocked by backlight_ignore_next
-Fixed ignore_next for ipod
-Fixed bug allowing context with softlock to bypass selective backlight
-Changed mask_select to no longer prompt for changes to be saved
-Changed menu names
-Added ignore timeout to allow ipod scroll wheel to work properly and other
players to still work properly, removed some previous code including
ignore_event
-Increased ignore timeout to prevent sd card accesses from interrupting action
code and turning on backlight
-Changed Unknown action to unmapped action in menu, changed handling code
-Removed unneeded logic and variables for handling unfiltered actions
-Reverted unmapped action code to previous functionality
-Added manual entries (thanks JohnB)
-Removed elusive unhandled unicode character from manual, changed formatting slightly
Actions:
Volume,Play,Seek,Skip
Extras:
Disable unmapped actions
Disable selective backlight on external power
Disable touch during softlock on touchscreen devices
Disable softlock notifications (power button still notifies)
Autolock on backlight off
Method:
Adds a function to ignore backlight on next call
If selected action occurs backlight is forced on,
Filter_first_keypress stays intact.
Selective softlock allows selected actions through, bypasses the normal
softlock routine.
ToDo:
DONE
previous commit (#1) has attribution for folder_select.c which mask_select
is based from.
Change-Id: I08132ddcfd64c81751ef23b720f3ec6d68695fe4
2016-11-22 05:21:31 +00:00
|
|
|
,UNIT_INT, hotkey_formatter, hotkey_getlang, NULL,
|
|
|
|
#ifdef HAVE_PICTUREFLOW_INTEGRATION
|
2019-01-02 00:37:13 +00:00
|
|
|
8,
|
2010-06-09 09:00:42 +00:00
|
|
|
#else
|
2019-01-02 00:37:13 +00:00
|
|
|
7,
|
2010-06-09 09:00:42 +00:00
|
|
|
#endif
|
|
|
|
HOTKEY_OFF,
|
2010-05-09 02:02:51 +00:00
|
|
|
HOTKEY_VIEW_PLAYLIST, HOTKEY_SHOW_TRACK_INFO, HOTKEY_PITCHSCREEN,
|
2019-01-02 00:37:13 +00:00
|
|
|
HOTKEY_OPEN_WITH, HOTKEY_DELETE, HOTKEY_BOOKMARK
|
Selective Backlight/Advanced Softlock - Selective actions based on context
Selective backlight allows the user to choose actions that will not
enable the backlight when pressed.
Advanced softlock allows user to choose actions that will not be
blocked by screenlock on devices without a hold button.
Both only occur in FM and WPS Contexts.
Update:
Back from the dead
-Cleaned up code, removed unnecessary calls, re-arranged last filter action
timeout conditional to work in case last_filtered_action_tick was never set
-Added entries to the manual
-Fixed back button on some menus not activating backlight
-Made menus more intuitive, no actions selected now changes menu item to off.
-Added talk fuctionality.
-Added option to disable selective backlight while on external power.
-Rewrote backlight and softlock handling code to fix issue with scrollwheels
-Menu changed to have toggle(yes/no) and settings
-Optimized selective actions lookup
-Added option to disable notification of 'buttons locked' while softlocked
-Removed uneeded code, consolidated action lookup to single function
-Fixed incorrect name on selective softlock menu
-Added option to disable touch on touchscreen devices
-Fixed backlight on original screenlock without selective screenlock active
-Added text selection in mask_select for when show_icons is off
-Fixed voice in mask_select to speak if voice is defined instead of spelling
-Added more lang defines (play skip seek)
-Added option to disable unknown keys turning on backlight
-Fixed Conditional argument In wrong place causing players without
backlight to fail to build
-Fixed Disable Unknown blocking detection of context change
-Fixed canceling menu didn't update new settings
-Added Autolock on backlight off
-Removed backlight_on_force from backlight.c, Now sets ignore next to false
and uses backlight_on
-Cleaned up autolock code added strings to lang file
-Fixed issue where rapid presses would bypass softlock
-Removed old softlock code, Cleaned selective actions code
-Changed menu to match existing RB menus
-Fixed Backlight_on_Hold blocked by backlight_ignore_next
-Fixed ignore_next for ipod
-Fixed bug allowing context with softlock to bypass selective backlight
-Changed mask_select to no longer prompt for changes to be saved
-Changed menu names
-Added ignore timeout to allow ipod scroll wheel to work properly and other
players to still work properly, removed some previous code including
ignore_event
-Increased ignore timeout to prevent sd card accesses from interrupting action
code and turning on backlight
-Changed Unknown action to unmapped action in menu, changed handling code
-Removed unneeded logic and variables for handling unfiltered actions
-Reverted unmapped action code to previous functionality
-Added manual entries (thanks JohnB)
-Removed elusive unhandled unicode character from manual, changed formatting slightly
Actions:
Volume,Play,Seek,Skip
Extras:
Disable unmapped actions
Disable selective backlight on external power
Disable touch during softlock on touchscreen devices
Disable softlock notifications (power button still notifies)
Autolock on backlight off
Method:
Adds a function to ignore backlight on next call
If selected action occurs backlight is forced on,
Filter_first_keypress stays intact.
Selective softlock allows selected actions through, bypasses the normal
softlock routine.
ToDo:
DONE
previous commit (#1) has attribution for folder_select.c which mask_select
is based from.
Change-Id: I08132ddcfd64c81751ef23b720f3ec6d68695fe4
2016-11-22 05:21:31 +00:00
|
|
|
#ifdef HAVE_PICTUREFLOW_INTEGRATION
|
2010-06-09 09:00:42 +00:00
|
|
|
, HOTKEY_PICTUREFLOW
|
Selective Backlight/Advanced Softlock - Selective actions based on context
Selective backlight allows the user to choose actions that will not
enable the backlight when pressed.
Advanced softlock allows user to choose actions that will not be
blocked by screenlock on devices without a hold button.
Both only occur in FM and WPS Contexts.
Update:
Back from the dead
-Cleaned up code, removed unnecessary calls, re-arranged last filter action
timeout conditional to work in case last_filtered_action_tick was never set
-Added entries to the manual
-Fixed back button on some menus not activating backlight
-Made menus more intuitive, no actions selected now changes menu item to off.
-Added talk fuctionality.
-Added option to disable selective backlight while on external power.
-Rewrote backlight and softlock handling code to fix issue with scrollwheels
-Menu changed to have toggle(yes/no) and settings
-Optimized selective actions lookup
-Added option to disable notification of 'buttons locked' while softlocked
-Removed uneeded code, consolidated action lookup to single function
-Fixed incorrect name on selective softlock menu
-Added option to disable touch on touchscreen devices
-Fixed backlight on original screenlock without selective screenlock active
-Added text selection in mask_select for when show_icons is off
-Fixed voice in mask_select to speak if voice is defined instead of spelling
-Added more lang defines (play skip seek)
-Added option to disable unknown keys turning on backlight
-Fixed Conditional argument In wrong place causing players without
backlight to fail to build
-Fixed Disable Unknown blocking detection of context change
-Fixed canceling menu didn't update new settings
-Added Autolock on backlight off
-Removed backlight_on_force from backlight.c, Now sets ignore next to false
and uses backlight_on
-Cleaned up autolock code added strings to lang file
-Fixed issue where rapid presses would bypass softlock
-Removed old softlock code, Cleaned selective actions code
-Changed menu to match existing RB menus
-Fixed Backlight_on_Hold blocked by backlight_ignore_next
-Fixed ignore_next for ipod
-Fixed bug allowing context with softlock to bypass selective backlight
-Changed mask_select to no longer prompt for changes to be saved
-Changed menu names
-Added ignore timeout to allow ipod scroll wheel to work properly and other
players to still work properly, removed some previous code including
ignore_event
-Increased ignore timeout to prevent sd card accesses from interrupting action
code and turning on backlight
-Changed Unknown action to unmapped action in menu, changed handling code
-Removed unneeded logic and variables for handling unfiltered actions
-Reverted unmapped action code to previous functionality
-Added manual entries (thanks JohnB)
-Removed elusive unhandled unicode character from manual, changed formatting slightly
Actions:
Volume,Play,Seek,Skip
Extras:
Disable unmapped actions
Disable selective backlight on external power
Disable touch during softlock on touchscreen devices
Disable softlock notifications (power button still notifies)
Autolock on backlight off
Method:
Adds a function to ignore backlight on next call
If selected action occurs backlight is forced on,
Filter_first_keypress stays intact.
Selective softlock allows selected actions through, bypasses the normal
softlock routine.
ToDo:
DONE
previous commit (#1) has attribution for folder_select.c which mask_select
is based from.
Change-Id: I08132ddcfd64c81751ef23b720f3ec6d68695fe4
2016-11-22 05:21:31 +00:00
|
|
|
#endif
|
2010-06-09 09:00:42 +00:00
|
|
|
),
|
2010-05-09 02:02:51 +00:00
|
|
|
TABLE_SETTING(F_ALLOW_ARBITRARY_VALS, hotkey_tree,
|
|
|
|
LANG_HOTKEY_FILE_BROWSER, HOTKEY_OFF, "hotkey tree",
|
2010-05-11 13:40:25 +00:00
|
|
|
"off,open with,delete,insert,insert shuffled",
|
|
|
|
UNIT_INT, hotkey_formatter, hotkey_getlang, NULL, 5, HOTKEY_OFF,
|
|
|
|
HOTKEY_OPEN_WITH, HOTKEY_DELETE, HOTKEY_INSERT, HOTKEY_INSERT_SHUFFLED),
|
2010-04-01 03:14:44 +00:00
|
|
|
#endif
|
2010-04-24 14:10:28 +00:00
|
|
|
|
|
|
|
#if CONFIG_CODEC == SWCODEC
|
Auto-Ranging Time Formatting For Menus (hh:mm:ss:mss)
Unifies time formatting in settings_list.c allows time format to
display as HH:MM:SS.MSS or any consecutive combination thereof
(hh:mm:ss, mm:ss, mm:ss.mss, ss.mss, hh, mm, ss ,mss)
works in INT and TABLE settings with the addition of flag 'F_TIME_SETTING'
Time is auto-ranged dependent on value
Adds talk_time_intervals to allow time values to be spoken similar to
display format: x Hours, x Minutes, x Seconds, x Milliseconds
Table lookups merged or removed from recording, clip meter and lcd timeout
-String_Choice replaced with TABLE_SETTING or INT_SETTING for these
functions as well, cleaned-up cfg_vals that get saved to cfgfile
RTL Languages ARE supported
Negative values ARE supported
Backlight on/off are now Always and Never to share formatter with LCD
Timeout
Added flag to allow ranged units to be locked to a minimum index
Added flag to allow leading zero to be supressed from the largest unit
merged talk_time_unit() and talk_time_intervals()
optimized time_split()
optimized format_time_auto()
Backlight time-out list same as original
Change-Id: I59027c62d3f2956bd16fdcc1a48b2ac32c084abd
2018-12-18 04:27:55 +00:00
|
|
|
INT_SETTING(F_TIME_SETTING, resume_rewind, LANG_RESUME_REWIND, 0,
|
2010-04-24 14:10:28 +00:00
|
|
|
"resume rewind", UNIT_SEC, 0, 60, 5,
|
Auto-Ranging Time Formatting For Menus (hh:mm:ss:mss)
Unifies time formatting in settings_list.c allows time format to
display as HH:MM:SS.MSS or any consecutive combination thereof
(hh:mm:ss, mm:ss, mm:ss.mss, ss.mss, hh, mm, ss ,mss)
works in INT and TABLE settings with the addition of flag 'F_TIME_SETTING'
Time is auto-ranged dependent on value
Adds talk_time_intervals to allow time values to be spoken similar to
display format: x Hours, x Minutes, x Seconds, x Milliseconds
Table lookups merged or removed from recording, clip meter and lcd timeout
-String_Choice replaced with TABLE_SETTING or INT_SETTING for these
functions as well, cleaned-up cfg_vals that get saved to cfgfile
RTL Languages ARE supported
Negative values ARE supported
Backlight on/off are now Always and Never to share formatter with LCD
Timeout
Added flag to allow ranged units to be locked to a minimum index
Added flag to allow leading zero to be supressed from the largest unit
merged talk_time_unit() and talk_time_intervals()
optimized time_split()
optimized format_time_auto()
Backlight time-out list same as original
Change-Id: I59027c62d3f2956bd16fdcc1a48b2ac32c084abd
2018-12-18 04:27:55 +00:00
|
|
|
formatter_time_unit_0_is_off, getlang_time_unit_0_is_off, NULL),
|
2010-04-24 14:10:28 +00:00
|
|
|
#endif
|
2012-03-02 19:33:13 +00:00
|
|
|
CUSTOM_SETTING(0, root_menu_customized,
|
main menu: Add the ability to hide and reorder the main menu items.
To change the shown menu items add the line "root_menu_order:<items>" into your config.cfg
<items> can be any of:
bookmarks, files, database, wps, settings, recording, radio, playlists, plugins, system_menu, shortcuts
Manual entry by Alexander Levin
Change-Id: Ie7f4bfb0f795184de094d05fc341a6cedd1c0cde
Reviewed-on: http://gerrit.rockbox.org/104
Reviewed-by: Jonathan Gordon <rockbox@jdgordon.info>
2012-02-09 10:21:40 +00:00
|
|
|
LANG_ROCKBOX_TITLE, /* lang string here is never actually used */
|
2012-02-28 23:03:05 +00:00
|
|
|
NULL, "root menu order",
|
main menu: Add the ability to hide and reorder the main menu items.
To change the shown menu items add the line "root_menu_order:<items>" into your config.cfg
<items> can be any of:
bookmarks, files, database, wps, settings, recording, radio, playlists, plugins, system_menu, shortcuts
Manual entry by Alexander Levin
Change-Id: Ie7f4bfb0f795184de094d05fc341a6cedd1c0cde
Reviewed-on: http://gerrit.rockbox.org/104
Reviewed-by: Jonathan Gordon <rockbox@jdgordon.info>
2012-02-09 10:21:40 +00:00
|
|
|
root_menu_load_from_cfg, root_menu_write_to_cfg,
|
|
|
|
root_menu_is_changed, root_menu_set_default),
|
2015-01-30 21:47:30 +00:00
|
|
|
|
|
|
|
#if defined(DX50) || defined(DX90)
|
|
|
|
CHOICE_SETTING(0,
|
|
|
|
governor,
|
|
|
|
LANG_IBASSO_FREQ_SCALING_GOVERNOR,
|
|
|
|
GOVERNOR_POWERSAVE,
|
|
|
|
"freq scaling governor",
|
|
|
|
"conservative,ondemand,interactive,powersave,performance",
|
|
|
|
ibasso_set_governor,
|
|
|
|
5,
|
|
|
|
"Conservative",
|
|
|
|
"Ondemand",
|
|
|
|
"Interactive",
|
|
|
|
"Powersave",
|
|
|
|
"Performance"),
|
2015-01-21 19:51:36 +00:00
|
|
|
CHOICE_SETTING(0,
|
|
|
|
usb_mode,
|
|
|
|
LANG_IBASSO_USB_MODE,
|
|
|
|
USB_MODE_MASS_STORAGE,
|
|
|
|
"usb mode",
|
|
|
|
"mass storage,charge,adb",
|
|
|
|
ibasso_set_usb_mode,
|
|
|
|
3,
|
|
|
|
ID2P(LANG_IBASSO_USB_MODE_MASS_STORAGE),
|
|
|
|
ID2P(LANG_IBASSO_USB_MODE_CHARGE),
|
|
|
|
ID2P(LANG_IBASSO_USB_MODE_ADB)),
|
2015-01-30 21:47:30 +00:00
|
|
|
#endif
|
2018-07-28 15:35:01 +00:00
|
|
|
};
|
2007-01-23 13:40:44 +00:00
|
|
|
|
|
|
|
const int nb_settings = sizeof(settings)/sizeof(*settings);
|
2008-10-26 11:44:21 +00:00
|
|
|
|
|
|
|
const struct settings_list* get_settings_list(int*count)
|
|
|
|
{
|
|
|
|
*count = nb_settings;
|
|
|
|
return settings;
|
|
|
|
}
|