diff options
Diffstat (limited to 'apps/settings_menu.c')
-rw-r--r-- | apps/settings_menu.c | 24 |
1 files changed, 15 insertions, 9 deletions
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 | ||
776 | static bool spindown(void) | 777 | static 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 | ||
784 | static 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 |
793 | static bool poweroff(void) | 785 | static 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 | ||
795 | static 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 | ||
801 | static bool max_files_in_dir(void) | 803 | static 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 | ||
1253 | static bool disk_settings_menu(void) | 1256 | static 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 |
1273 | static bool time_settings_menu(void) | 1277 | static 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 |