summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
Diffstat (limited to 'apps')
-rw-r--r--apps/settings.c2
-rw-r--r--apps/settings_menu.c24
2 files changed, 17 insertions, 9 deletions
diff --git a/apps/settings.c b/apps/settings.c
index 09e15b3deb..3b6a048def 100644
--- a/apps/settings.c
+++ b/apps/settings.c
@@ -268,10 +268,12 @@ static const struct bit_entry hd_bits[] =
268 {4, S_O(ff_rewind_accel), 3, "scan accel", NULL }, 268 {4, S_O(ff_rewind_accel), 3, "scan accel", NULL },
269 {3, S_O(buffer_margin), 0, "antiskip", NULL }, 269 {3, S_O(buffer_margin), 0, "antiskip", NULL },
270 /* disk */ 270 /* disk */
271#ifndef HAVE_MMC
271#ifdef HAVE_ATA_POWER_OFF 272#ifdef HAVE_ATA_POWER_OFF
272 {1, S_O(disk_poweroff), false, "disk poweroff", off_on }, 273 {1, S_O(disk_poweroff), false, "disk poweroff", off_on },
273#endif 274#endif
274 {8, S_O(disk_spindown), 5, "disk spindown", NULL }, 275 {8, S_O(disk_spindown), 5, "disk spindown", NULL },
276#endif
275 /* browser */ 277 /* browser */
276 {2, S_O(dirfilter), SHOW_MUSIC, 278 {2, S_O(dirfilter), SHOW_MUSIC,
277 "show files", "all,supported,music,playlists" }, 279 "show files", "all,supported,music,playlists" },
diff --git a/apps/settings_menu.c b/apps/settings_menu.c
index 35bc932455..61d2519662 100644
--- a/apps/settings_menu.c
+++ b/apps/settings_menu.c
@@ -773,6 +773,7 @@ static bool timeformat_set(void)
773} 773}
774#endif 774#endif
775 775
776#ifndef HAVE_MMC
776static bool spindown(void) 777static bool spindown(void)
777{ 778{
778 return set_int(str(LANG_SPINDOWN), "s", UNIT_SEC, 779 return set_int(str(LANG_SPINDOWN), "s", UNIT_SEC,
@@ -780,15 +781,6 @@ static bool spindown(void)
780 ata_spindown, 1, 3, 254 ); 781 ata_spindown, 1, 3, 254 );
781} 782}
782 783
783#if CONFIG_HWCODEC == MAS3507D
784static bool line_in(void)
785{
786 bool rc = set_bool(str(LANG_LINE_IN), &global_settings.line_in);
787 dac_line_in(global_settings.line_in);
788 return rc;
789}
790#endif
791
792#ifdef HAVE_ATA_POWER_OFF 784#ifdef HAVE_ATA_POWER_OFF
793static bool poweroff(void) 785static bool poweroff(void)
794{ 786{
@@ -796,6 +788,16 @@ static bool poweroff(void)
796 ata_poweroff(global_settings.disk_poweroff); 788 ata_poweroff(global_settings.disk_poweroff);
797 return rc; 789 return rc;
798} 790}
791#endif /* HAVE_ATA_POWEROFF */
792#endif /* !HAVE_MMC */
793
794#if CONFIG_HWCODEC == MAS3507D
795static bool line_in(void)
796{
797 bool rc = set_bool(str(LANG_LINE_IN), &global_settings.line_in);
798 dac_line_in(global_settings.line_in);
799 return rc;
800}
799#endif 801#endif
800 802
801static bool max_files_in_dir(void) 803static bool max_files_in_dir(void)
@@ -1250,6 +1252,7 @@ static bool battery_settings_menu(void)
1250 return result; 1252 return result;
1251} 1253}
1252 1254
1255#ifndef HAVE_MMC
1253static bool disk_settings_menu(void) 1256static bool disk_settings_menu(void)
1254{ 1257{
1255 int m; 1258 int m;
@@ -1268,6 +1271,7 @@ static bool disk_settings_menu(void)
1268 menu_exit(m); 1271 menu_exit(m);
1269 return result; 1272 return result;
1270} 1273}
1274#endif /* !HAVE_MMC */
1271 1275
1272#ifdef HAVE_RTC 1276#ifdef HAVE_RTC
1273static bool time_settings_menu(void) 1277static bool time_settings_menu(void)
@@ -1332,7 +1336,9 @@ static bool system_settings_menu(void)
1332 1336
1333 static const struct menu_item items[] = { 1337 static const struct menu_item items[] = {
1334 { ID2P(LANG_BATTERY_MENU), battery_settings_menu }, 1338 { ID2P(LANG_BATTERY_MENU), battery_settings_menu },
1339#ifndef HAVE_MMC
1335 { ID2P(LANG_DISK_MENU), disk_settings_menu }, 1340 { ID2P(LANG_DISK_MENU), disk_settings_menu },
1341#endif
1336#ifdef HAVE_RTC 1342#ifdef HAVE_RTC
1337 { ID2P(LANG_TIME_MENU), time_settings_menu }, 1343 { ID2P(LANG_TIME_MENU), time_settings_menu },
1338#endif 1344#endif