diff options
Diffstat (limited to 'apps/settings_menu.c')
-rw-r--r-- | apps/settings_menu.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/apps/settings_menu.c b/apps/settings_menu.c index 7af267389a..d6fe1c6316 100644 --- a/apps/settings_menu.c +++ b/apps/settings_menu.c | |||
@@ -43,6 +43,9 @@ | |||
43 | #include "peakmeter.h" | 43 | #include "peakmeter.h" |
44 | #endif | 44 | #endif |
45 | #include "lang.h" | 45 | #include "lang.h" |
46 | #ifdef HAVE_MAS3507D | ||
47 | #include "dac.h" | ||
48 | #endif | ||
46 | 49 | ||
47 | static bool car_adapter_mode(void) | 50 | static bool car_adapter_mode(void) |
48 | { | 51 | { |
@@ -630,6 +633,15 @@ static bool spindown(void) | |||
630 | ata_spindown, 1, 3, 254 ); | 633 | ata_spindown, 1, 3, 254 ); |
631 | } | 634 | } |
632 | 635 | ||
636 | #ifdef HAVE_MAS3507D | ||
637 | static bool line_in(void) | ||
638 | { | ||
639 | bool rc = set_bool(str(LANG_LINE_IN), &global_settings.line_in); | ||
640 | dac_line_in(global_settings.line_in); | ||
641 | return rc; | ||
642 | } | ||
643 | #endif | ||
644 | |||
633 | #ifdef HAVE_ATA_POWER_OFF | 645 | #ifdef HAVE_ATA_POWER_OFF |
634 | static bool poweroff(void) | 646 | static bool poweroff(void) |
635 | { | 647 | { |
@@ -893,6 +905,9 @@ static bool system_settings_menu(void) | |||
893 | 905 | ||
894 | struct menu_items items[] = { | 906 | struct menu_items items[] = { |
895 | { str(LANG_SPINDOWN), spindown }, | 907 | { str(LANG_SPINDOWN), spindown }, |
908 | #ifdef HAVE_MAS3507D | ||
909 | { str(LANG_LINE_IN), line_in }, | ||
910 | #endif | ||
896 | #ifdef HAVE_ATA_POWER_OFF | 911 | #ifdef HAVE_ATA_POWER_OFF |
897 | { str(LANG_POWEROFF), poweroff }, | 912 | { str(LANG_POWEROFF), poweroff }, |
898 | #endif | 913 | #endif |