diff options
Diffstat (limited to 'apps/settings.c')
-rw-r--r-- | apps/settings.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/apps/settings.c b/apps/settings.c index bd1abc240d..a13abecfc7 100644 --- a/apps/settings.c +++ b/apps/settings.c | |||
@@ -63,7 +63,7 @@ | |||
63 | #include "keyboard.h" | 63 | #include "keyboard.h" |
64 | #include "version.h" | 64 | #include "version.h" |
65 | #include "rtc.h" | 65 | #include "rtc.h" |
66 | #ifdef HAVE_MAS3507D | 66 | #if CONFIG_HWCODEC == MAS3507D |
67 | void dac_line_in(bool enable); | 67 | void dac_line_in(bool enable); |
68 | #endif | 68 | #endif |
69 | struct user_settings global_settings; | 69 | struct user_settings global_settings; |
@@ -164,7 +164,7 @@ static const struct bit_entry rtc_bits[] = | |||
164 | {8 | SIGNED, S_O(balance), 0, "balance", NULL }, /* -100...100 */ | 164 | {8 | SIGNED, S_O(balance), 0, "balance", NULL }, /* -100...100 */ |
165 | {5 | SIGNED, S_O(bass), 0, "bass", NULL }, /* -15..+15 / -12..+12 */ | 165 | {5 | SIGNED, S_O(bass), 0, "bass", NULL }, /* -15..+15 / -12..+12 */ |
166 | {5 | SIGNED, S_O(treble), 0, "treble", NULL }, /* -15..+15 / -12..+12 */ | 166 | {5 | SIGNED, S_O(treble), 0, "treble", NULL }, /* -15..+15 / -12..+12 */ |
167 | #ifdef HAVE_MAS3587F | 167 | #if CONFIG_HWCODEC == MAS3587F |
168 | {5, S_O(loudness), 0, "loudness", NULL }, /* 0...17 */ | 168 | {5, S_O(loudness), 0, "loudness", NULL }, /* 0...17 */ |
169 | {3, S_O(avc), 0, "auto volume", "off,20ms,2,4,8" }, | 169 | {3, S_O(avc), 0, "auto volume", "off,20ms,2,4,8" }, |
170 | {1, S_O(superbass), false, "superbass", off_on }, | 170 | {1, S_O(superbass), false, "superbass", off_on }, |
@@ -221,7 +221,7 @@ static const struct bit_entry rtc_bits[] = | |||
221 | 221 | ||
222 | /* new stuff to be added here */ | 222 | /* new stuff to be added here */ |
223 | /* If values are just added to the end, no need to bump the version. */ | 223 | /* If values are just added to the end, no need to bump the version. */ |
224 | #ifdef HAVE_FMRADIO | 224 | #ifdef CONFIG_TUNER |
225 | {1, S_O(fm_force_mono), false, "force fm mono", off_on }, | 225 | {1, S_O(fm_force_mono), false, "force fm mono", off_on }, |
226 | {8, S_O(last_frequency), 0, NULL, NULL }, /* Default: MIN_FREQ */ | 226 | {8, S_O(last_frequency), 0, NULL, NULL }, /* Default: MIN_FREQ */ |
227 | #endif | 227 | #endif |
@@ -295,7 +295,7 @@ static const struct bit_entry hd_bits[] = | |||
295 | {7, S_O(peak_meter_min), 60, "peak meter min", NULL }, /* 0...100 */ | 295 | {7, S_O(peak_meter_min), 60, "peak meter min", NULL }, /* 0...100 */ |
296 | {7, S_O(peak_meter_max), 0, "peak meter max", NULL }, /* 0...100 */ | 296 | {7, S_O(peak_meter_max), 0, "peak meter max", NULL }, /* 0...100 */ |
297 | #endif | 297 | #endif |
298 | #ifdef HAVE_MAS3587F | 298 | #if CONFIG_HWCODEC == MAS3587F |
299 | /* recording */ | 299 | /* recording */ |
300 | {1, S_O(rec_editable), false, "editable recordings", off_on }, | 300 | {1, S_O(rec_editable), false, "editable recordings", off_on }, |
301 | {4, S_O(rec_timesplit), 0, "rec timesplit", /* 0...13 */ | 301 | {4, S_O(rec_timesplit), 0, "rec timesplit", /* 0...13 */ |
@@ -315,7 +315,7 @@ static const struct bit_entry hd_bits[] = | |||
315 | {1, S_O(rec_directory), 0, /* rec_base_directory */ | 315 | {1, S_O(rec_directory), 0, /* rec_base_directory */ |
316 | "rec directory", REC_BASE_DIR ",current" }, | 316 | "rec directory", REC_BASE_DIR ",current" }, |
317 | #endif | 317 | #endif |
318 | #ifdef HAVE_MAS3507D | 318 | #if CONFIG_HWCODEC == MAS3507D |
319 | {1, S_O(line_in), false, "line in", off_on }, | 319 | {1, S_O(line_in), false, "line in", off_on }, |
320 | #endif | 320 | #endif |
321 | /* voice */ | 321 | /* voice */ |
@@ -710,7 +710,7 @@ void sound_settings_apply(void) | |||
710 | mpeg_sound_set(SOUND_BALANCE, global_settings.balance); | 710 | mpeg_sound_set(SOUND_BALANCE, global_settings.balance); |
711 | mpeg_sound_set(SOUND_VOLUME, global_settings.volume); | 711 | mpeg_sound_set(SOUND_VOLUME, global_settings.volume); |
712 | mpeg_sound_set(SOUND_CHANNELS, global_settings.channel_config); | 712 | mpeg_sound_set(SOUND_CHANNELS, global_settings.channel_config); |
713 | #ifdef HAVE_MAS3587F | 713 | #if CONFIG_HWCODEC == MAS3587F |
714 | mpeg_sound_set(SOUND_LOUDNESS, global_settings.loudness); | 714 | mpeg_sound_set(SOUND_LOUDNESS, global_settings.loudness); |
715 | mpeg_sound_set(SOUND_AVC, global_settings.avc); | 715 | mpeg_sound_set(SOUND_AVC, global_settings.avc); |
716 | mpeg_sound_set(SOUND_MDB_STRENGTH, global_settings.mdb_strength); | 716 | mpeg_sound_set(SOUND_MDB_STRENGTH, global_settings.mdb_strength); |
@@ -735,7 +735,7 @@ void settings_apply(void) | |||
735 | backlight_set_timeout(global_settings.backlight_timeout); | 735 | backlight_set_timeout(global_settings.backlight_timeout); |
736 | backlight_set_on_when_charging(global_settings.backlight_on_when_charging); | 736 | backlight_set_on_when_charging(global_settings.backlight_on_when_charging); |
737 | ata_spindown(global_settings.disk_spindown); | 737 | ata_spindown(global_settings.disk_spindown); |
738 | #ifdef HAVE_MAS3507D | 738 | #if CONFIG_HWCODEC == MAS3507D |
739 | dac_line_in(global_settings.line_in); | 739 | dac_line_in(global_settings.line_in); |
740 | #endif | 740 | #endif |
741 | #ifdef HAVE_ATA_POWER_OFF | 741 | #ifdef HAVE_ATA_POWER_OFF |
@@ -1513,7 +1513,7 @@ bool set_option(const char* string, void* variable, enum optiontype type, | |||
1513 | return false; | 1513 | return false; |
1514 | } | 1514 | } |
1515 | 1515 | ||
1516 | #ifdef HAVE_MAS3587F | 1516 | #if CONFIG_HWCODEC == MAS3587F |
1517 | /* This array holds the record timer interval lengths, in seconds */ | 1517 | /* This array holds the record timer interval lengths, in seconds */ |
1518 | static const unsigned long rec_timer_seconds[] = | 1518 | static const unsigned long rec_timer_seconds[] = |
1519 | { | 1519 | { |