diff options
Diffstat (limited to 'apps/settings.c')
-rw-r--r-- | apps/settings.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/apps/settings.c b/apps/settings.c index dcb59d08b6..5495ca7098 100644 --- a/apps/settings.c +++ b/apps/settings.c | |||
@@ -77,9 +77,10 @@ const char rec_base_directory[] = REC_BASE_DIR; | |||
77 | #if CONFIG_CODEC == SWCODEC | 77 | #if CONFIG_CODEC == SWCODEC |
78 | #include "pcmbuf.h" | 78 | #include "pcmbuf.h" |
79 | #include "pcm_playback.h" | 79 | #include "pcm_playback.h" |
80 | #include "dsp.h" | ||
80 | #endif | 81 | #endif |
81 | 82 | ||
82 | #define CONFIG_BLOCK_VERSION 27 | 83 | #define CONFIG_BLOCK_VERSION 28 |
83 | #define CONFIG_BLOCK_SIZE 512 | 84 | #define CONFIG_BLOCK_SIZE 512 |
84 | #define RTC_BLOCK_SIZE 44 | 85 | #define RTC_BLOCK_SIZE 44 |
85 | 86 | ||
@@ -432,7 +433,8 @@ static const struct bit_entry hd_bits[] = | |||
432 | #if CONFIG_CODEC == SWCODEC | 433 | #if CONFIG_CODEC == SWCODEC |
433 | {2, S_O(crossfade), 0, "crossfade type", "off,crossfade,mix"}, | 434 | {2, S_O(crossfade), 0, "crossfade type", "off,crossfade,mix"}, |
434 | {1, S_O(replaygain), false, "replaygain", off_on }, | 435 | {1, S_O(replaygain), false, "replaygain", off_on }, |
435 | {1, S_O(replaygain_track), false, "replaygain type", "track,album" }, | 436 | {2, S_O(replaygain_type), REPLAYGAIN_ALBUM, "replaygain type", |
437 | "track,album,track shuffle" }, | ||
436 | {1, S_O(replaygain_noclip), false, "replaygain noclip", off_on }, | 438 | {1, S_O(replaygain_noclip), false, "replaygain noclip", off_on }, |
437 | {8 | SIGNED, S_O(replaygain_preamp), 0, "replaygain preamp", NULL }, | 439 | {8 | SIGNED, S_O(replaygain_preamp), 0, "replaygain preamp", NULL }, |
438 | {2, S_O(beep), 0, "off,weak,moderate,strong", NULL }, | 440 | {2, S_O(beep), 0, "off,weak,moderate,strong", NULL }, |
@@ -879,6 +881,7 @@ void settings_apply(void) | |||
879 | 881 | ||
880 | #if CONFIG_CODEC == SWCODEC | 882 | #if CONFIG_CODEC == SWCODEC |
881 | audio_set_crossfade(global_settings.crossfade); | 883 | audio_set_crossfade(global_settings.crossfade); |
884 | dsp_set_replaygain(true); | ||
882 | #endif | 885 | #endif |
883 | 886 | ||
884 | #ifdef HAVE_SPDIF_POWER | 887 | #ifdef HAVE_SPDIF_POWER |