summaryrefslogtreecommitdiff
path: root/apps/settings.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/settings.c')
-rw-r--r--apps/settings.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/apps/settings.c b/apps/settings.c
index 709e05e086..e15bfc8638 100644
--- a/apps/settings.c
+++ b/apps/settings.c
@@ -38,6 +38,7 @@
38#include "rtc.h" 38#include "rtc.h"
39#include "power.h" 39#include "power.h"
40#include "ata_idle_notify.h" 40#include "ata_idle_notify.h"
41#include "storage.h"
41#include "screens.h" 42#include "screens.h"
42#include "ctype.h" 43#include "ctype.h"
43#include "file.h" 44#include "file.h"
@@ -582,11 +583,11 @@ void status_save(void)
582{ 583{
583 update_runtime(); 584 update_runtime();
584#ifdef HAVE_RTC_RAM 585#ifdef HAVE_RTC_RAM
585 /* this will be done in the ata_callback if 586 /* this will be done in the storage_callback if
586 target doesnt have rtc ram */ 587 target doesnt have rtc ram */
587 write_nvram_data(nvram_buffer,NVRAM_BLOCK_SIZE); 588 write_nvram_data(nvram_buffer,NVRAM_BLOCK_SIZE);
588#else 589#else
589 register_ata_idle_func(flush_global_status_callback); 590 register_storage_idle_func(flush_global_status_callback);
590#endif 591#endif
591} 592}
592 593
@@ -594,11 +595,11 @@ int settings_save(void)
594{ 595{
595 update_runtime(); 596 update_runtime();
596#ifdef HAVE_RTC_RAM 597#ifdef HAVE_RTC_RAM
597 /* this will be done in the ata_callback if 598 /* this will be done in the storage_callback if
598 target doesnt have rtc ram */ 599 target doesnt have rtc ram */
599 write_nvram_data(nvram_buffer,NVRAM_BLOCK_SIZE); 600 write_nvram_data(nvram_buffer,NVRAM_BLOCK_SIZE);
600#endif 601#endif
601 register_ata_idle_func(flush_config_block_callback); 602 register_storage_idle_func(flush_config_block_callback);
602 return 0; 603 return 0;
603} 604}
604 605
@@ -768,7 +769,7 @@ void settings_apply(bool read_disk)
768 buttonlight_set_timeout(global_settings.buttonlight_timeout); 769 buttonlight_set_timeout(global_settings.buttonlight_timeout);
769#endif 770#endif
770#ifdef HAVE_DISK_STORAGE 771#ifdef HAVE_DISK_STORAGE
771 ata_spindown(global_settings.disk_spindown); 772 storage_spindown(global_settings.disk_spindown);
772#endif 773#endif
773#if (CONFIG_CODEC == MAS3507D) && !defined(SIMULATOR) 774#if (CONFIG_CODEC == MAS3507D) && !defined(SIMULATOR)
774 dac_line_in(global_settings.line_in); 775 dac_line_in(global_settings.line_in);