forked from len0rd/rockbox
Removed disk settings menu for Ondio
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5239 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
ae4d51199f
commit
dd937dcfaf
2 changed files with 17 additions and 9 deletions
|
@ -268,10 +268,12 @@ static const struct bit_entry hd_bits[] =
|
||||||
{4, S_O(ff_rewind_accel), 3, "scan accel", NULL },
|
{4, S_O(ff_rewind_accel), 3, "scan accel", NULL },
|
||||||
{3, S_O(buffer_margin), 0, "antiskip", NULL },
|
{3, S_O(buffer_margin), 0, "antiskip", NULL },
|
||||||
/* disk */
|
/* disk */
|
||||||
|
#ifndef HAVE_MMC
|
||||||
#ifdef HAVE_ATA_POWER_OFF
|
#ifdef HAVE_ATA_POWER_OFF
|
||||||
{1, S_O(disk_poweroff), false, "disk poweroff", off_on },
|
{1, S_O(disk_poweroff), false, "disk poweroff", off_on },
|
||||||
#endif
|
#endif
|
||||||
{8, S_O(disk_spindown), 5, "disk spindown", NULL },
|
{8, S_O(disk_spindown), 5, "disk spindown", NULL },
|
||||||
|
#endif
|
||||||
/* browser */
|
/* browser */
|
||||||
{2, S_O(dirfilter), SHOW_MUSIC,
|
{2, S_O(dirfilter), SHOW_MUSIC,
|
||||||
"show files", "all,supported,music,playlists" },
|
"show files", "all,supported,music,playlists" },
|
||||||
|
|
|
@ -773,6 +773,7 @@ static bool timeformat_set(void)
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifndef HAVE_MMC
|
||||||
static bool spindown(void)
|
static bool spindown(void)
|
||||||
{
|
{
|
||||||
return set_int(str(LANG_SPINDOWN), "s", UNIT_SEC,
|
return set_int(str(LANG_SPINDOWN), "s", UNIT_SEC,
|
||||||
|
@ -780,15 +781,6 @@ static bool spindown(void)
|
||||||
ata_spindown, 1, 3, 254 );
|
ata_spindown, 1, 3, 254 );
|
||||||
}
|
}
|
||||||
|
|
||||||
#if CONFIG_HWCODEC == MAS3507D
|
|
||||||
static bool line_in(void)
|
|
||||||
{
|
|
||||||
bool rc = set_bool(str(LANG_LINE_IN), &global_settings.line_in);
|
|
||||||
dac_line_in(global_settings.line_in);
|
|
||||||
return rc;
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef HAVE_ATA_POWER_OFF
|
#ifdef HAVE_ATA_POWER_OFF
|
||||||
static bool poweroff(void)
|
static bool poweroff(void)
|
||||||
{
|
{
|
||||||
|
@ -796,6 +788,16 @@ static bool poweroff(void)
|
||||||
ata_poweroff(global_settings.disk_poweroff);
|
ata_poweroff(global_settings.disk_poweroff);
|
||||||
return rc;
|
return rc;
|
||||||
}
|
}
|
||||||
|
#endif /* HAVE_ATA_POWEROFF */
|
||||||
|
#endif /* !HAVE_MMC */
|
||||||
|
|
||||||
|
#if CONFIG_HWCODEC == MAS3507D
|
||||||
|
static bool line_in(void)
|
||||||
|
{
|
||||||
|
bool rc = set_bool(str(LANG_LINE_IN), &global_settings.line_in);
|
||||||
|
dac_line_in(global_settings.line_in);
|
||||||
|
return rc;
|
||||||
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
static bool max_files_in_dir(void)
|
static bool max_files_in_dir(void)
|
||||||
|
@ -1250,6 +1252,7 @@ static bool battery_settings_menu(void)
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifndef HAVE_MMC
|
||||||
static bool disk_settings_menu(void)
|
static bool disk_settings_menu(void)
|
||||||
{
|
{
|
||||||
int m;
|
int m;
|
||||||
|
@ -1268,6 +1271,7 @@ static bool disk_settings_menu(void)
|
||||||
menu_exit(m);
|
menu_exit(m);
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
#endif /* !HAVE_MMC */
|
||||||
|
|
||||||
#ifdef HAVE_RTC
|
#ifdef HAVE_RTC
|
||||||
static bool time_settings_menu(void)
|
static bool time_settings_menu(void)
|
||||||
|
@ -1332,7 +1336,9 @@ static bool system_settings_menu(void)
|
||||||
|
|
||||||
static const struct menu_item items[] = {
|
static const struct menu_item items[] = {
|
||||||
{ ID2P(LANG_BATTERY_MENU), battery_settings_menu },
|
{ ID2P(LANG_BATTERY_MENU), battery_settings_menu },
|
||||||
|
#ifndef HAVE_MMC
|
||||||
{ ID2P(LANG_DISK_MENU), disk_settings_menu },
|
{ ID2P(LANG_DISK_MENU), disk_settings_menu },
|
||||||
|
#endif
|
||||||
#ifdef HAVE_RTC
|
#ifdef HAVE_RTC
|
||||||
{ ID2P(LANG_TIME_MENU), time_settings_menu },
|
{ ID2P(LANG_TIME_MENU), time_settings_menu },
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue