summaryrefslogtreecommitdiff
path: root/apps/settings.c
diff options
context:
space:
mode:
authorHristo Kovachev <bger@rockbox.org>2006-02-08 13:08:55 +0000
committerHristo Kovachev <bger@rockbox.org>2006-02-08 13:08:55 +0000
commitdb734b41d5004fabd7a0cb110040d7a05bd0adb4 (patch)
tree4da56be9128183f1d33a130435b1e1600f5eab42 /apps/settings.c
parentdcc9a8a3d8171d1f7df22a405764f7b9c194c88f (diff)
downloadrockbox-db734b41d5004fabd7a0cb110040d7a05bd0adb4.zip
rockbox-db734b41d5004fabd7a0cb110040d7a05bd0adb4.tar.gz
rockbox-db734b41d5004fabd7a0cb110040d7a05bd0adb4.tar.bz2
rockbox-db734b41d5004fabd7a0cb110040d7a05bd0adb4.tar.xz
Patch #1403437 by Peter D'Hoye & Martin Scarratt: Recording gain.
Changes: ***1. all platforms: 1.1 corrects gain display bug; 1.2 allows combined setting of stereo gain without an extra line on the display; 2. iRiver H1xx and H3xx specific: 2.1 correctly named the decimator variables, they were called 'gain'; 2.2 splitted decimator gain settings for mic and line-in so that they are saved separately; 2.3 added combined analog and decimator gain setting giving a smooth gain range with the best analog/decimator gain combination git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8627 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/settings.c')
-rw-r--r--apps/settings.c16
1 files changed, 11 insertions, 5 deletions
diff --git a/apps/settings.c b/apps/settings.c
index ea8c562..2f782f4 100644
--- a/apps/settings.c
+++ b/apps/settings.c
@@ -485,8 +485,10 @@ static const struct bit_entry hd_bits[] =
{5, S_O(rec_prerecord_time), 0, "prerecording time", NULL }, /* 0...30 */
{1, S_O(rec_directory), 0, /* rec_base_directory */
"rec directory", REC_BASE_DIR ",current" },
- {8|SIGNED, S_O(rec_adc_left_gain), 0, /* 0dB */ "adc left gain", NULL }, /* -128...48 */
- {8|SIGNED, S_O(rec_adc_right_gain), 0, /* 0dB */ "adc right gain", NULL }, /* -128...48 */
+ {8|SIGNED, S_O(rec_linein_decimator_left_gain), 0, /* 0dB */
+ "line in decimator left gain", NULL }, /* -128...48 */
+ {8|SIGNED, S_O(rec_linein_decimator_right_gain), 0, /* 0dB */
+ "line in decimator right gain", NULL }, /* -128...48 */
#endif
#ifdef HAVE_REMOTE_LCD
@@ -507,10 +509,8 @@ static const struct bit_entry hd_bits[] =
{7, S_O(screen_scroll_step), 16, "screen scroll step", NULL }, /* 1...112 */
#endif
#endif /* HAVE_LCD_BITMAP */
-
{1, S_O(warnon_erase_dynplaylist), false,
"warn when erasing dynamic playlist", off_on },
-
#if CONFIG_CODEC == SWCODEC
{1, S_O(eq_enabled), false, "eq enabled", off_on },
/* 0..32768 Hz */
@@ -532,7 +532,13 @@ static const struct bit_entry hd_bits[] =
{9|SIGNED, S_O(eq_band3_gain), 0, "eq band 3 gain", NULL },
{9|SIGNED, S_O(eq_band4_gain), 0, "eq band 4 gain", NULL },
#endif
-
+#if defined(HAVE_UDA1380) /* PLEASE merge this with the other UDA1380 define
+ when bumping the settings version number PLEASE */
+ {8|SIGNED, S_O(rec_mic_decimator_left_gain), 0, /* 0dB */
+ "mic decimator left gain", NULL }, /* -128...48 */
+ {8|SIGNED, S_O(rec_mic_decimator_right_gain), 0, /* 0dB */
+ "mic decimator right gain", NULL }, /* -128...48 */
+#endif
/* If values are just added to the end, no need to bump the version. */
/* new stuff to be added at the end */