summaryrefslogtreecommitdiff
path: root/apps/settings.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/settings.c')
-rw-r--r--apps/settings.c23
1 files changed, 23 insertions, 0 deletions
diff --git a/apps/settings.c b/apps/settings.c
index d13f56891e..ea8c562a04 100644
--- a/apps/settings.c
+++ b/apps/settings.c
@@ -511,6 +511,28 @@ static const struct bit_entry hd_bits[] =
511 {1, S_O(warnon_erase_dynplaylist), false, 511 {1, S_O(warnon_erase_dynplaylist), false,
512 "warn when erasing dynamic playlist", off_on }, 512 "warn when erasing dynamic playlist", off_on },
513 513
514#if CONFIG_CODEC == SWCODEC
515 {1, S_O(eq_enabled), false, "eq enabled", off_on },
516 /* 0..32768 Hz */
517 {15, S_O(eq_band0_cutoff), 60, "eq band 0 cutoff", NULL },
518 {15, S_O(eq_band1_cutoff), 200, "eq band 1 cutoff", NULL },
519 {15, S_O(eq_band2_cutoff), 800, "eq band 2 cutoff", NULL },
520 {15, S_O(eq_band3_cutoff), 4000, "eq band 3 cutoff", NULL },
521 {15, S_O(eq_band4_cutoff), 12000, "eq band 4 cutoff", NULL },
522 /* 0..64 (or 0.0 to 6.4) */
523 {6, S_O(eq_band0_q), 7, "eq band 0 q", NULL },
524 {6, S_O(eq_band1_q), 10, "eq band 1 q", NULL },
525 {6, S_O(eq_band2_q), 10, "eq band 2 q", NULL },
526 {6, S_O(eq_band3_q), 10, "eq band 3 q", NULL },
527 {6, S_O(eq_band4_q), 7, "eq band 4 q", NULL },
528 /* -240..240 (or -24db to +24db) */
529 {9|SIGNED, S_O(eq_band0_gain), 0, "eq band 0 gain", NULL },
530 {9|SIGNED, S_O(eq_band1_gain), 0, "eq band 1 gain", NULL },
531 {9|SIGNED, S_O(eq_band2_gain), 0, "eq band 2 gain", NULL },
532 {9|SIGNED, S_O(eq_band3_gain), 0, "eq band 3 gain", NULL },
533 {9|SIGNED, S_O(eq_band4_gain), 0, "eq band 4 gain", NULL },
534#endif
535
514 /* If values are just added to the end, no need to bump the version. */ 536 /* If values are just added to the end, no need to bump the version. */
515 /* new stuff to be added at the end */ 537 /* new stuff to be added at the end */
516 538
@@ -1023,6 +1045,7 @@ void settings_apply(void)
1023 audio_set_crossfade(global_settings.crossfade); 1045 audio_set_crossfade(global_settings.crossfade);
1024 dsp_set_replaygain(true); 1046 dsp_set_replaygain(true);
1025 dsp_set_crossfeed(global_settings.crossfeed); 1047 dsp_set_crossfeed(global_settings.crossfeed);
1048 dsp_eq_update_data(global_settings.eq_enabled);
1026#endif 1049#endif
1027 1050
1028#ifdef HAVE_SPDIF_POWER 1051#ifdef HAVE_SPDIF_POWER