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.tar.gz
rockbox-db734b41d5004fabd7a0cb110040d7a05bd0adb4.zip
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 ea8c562a04..2f782f46de 100644
--- a/apps/settings.c
+++ b/apps/settings.c
@@ -485,8 +485,10 @@ static const struct bit_entry hd_bits[] =
485 {5, S_O(rec_prerecord_time), 0, "prerecording time", NULL }, /* 0...30 */ 485 {5, S_O(rec_prerecord_time), 0, "prerecording time", NULL }, /* 0...30 */
486 {1, S_O(rec_directory), 0, /* rec_base_directory */ 486 {1, S_O(rec_directory), 0, /* rec_base_directory */
487 "rec directory", REC_BASE_DIR ",current" }, 487 "rec directory", REC_BASE_DIR ",current" },
488 {8|SIGNED, S_O(rec_adc_left_gain), 0, /* 0dB */ "adc left gain", NULL }, /* -128...48 */ 488 {8|SIGNED, S_O(rec_linein_decimator_left_gain), 0, /* 0dB */
489 {8|SIGNED, S_O(rec_adc_right_gain), 0, /* 0dB */ "adc right gain", NULL }, /* -128...48 */ 489 "line in decimator left gain", NULL }, /* -128...48 */
490 {8|SIGNED, S_O(rec_linein_decimator_right_gain), 0, /* 0dB */
491 "line in decimator right gain", NULL }, /* -128...48 */
490#endif 492#endif
491 493
492#ifdef HAVE_REMOTE_LCD 494#ifdef HAVE_REMOTE_LCD
@@ -507,10 +509,8 @@ static const struct bit_entry hd_bits[] =
507 {7, S_O(screen_scroll_step), 16, "screen scroll step", NULL }, /* 1...112 */ 509 {7, S_O(screen_scroll_step), 16, "screen scroll step", NULL }, /* 1...112 */
508#endif 510#endif
509#endif /* HAVE_LCD_BITMAP */ 511#endif /* HAVE_LCD_BITMAP */
510
511 {1, S_O(warnon_erase_dynplaylist), false, 512 {1, S_O(warnon_erase_dynplaylist), false,
512 "warn when erasing dynamic playlist", off_on }, 513 "warn when erasing dynamic playlist", off_on },
513
514#if CONFIG_CODEC == SWCODEC 514#if CONFIG_CODEC == SWCODEC
515 {1, S_O(eq_enabled), false, "eq enabled", off_on }, 515 {1, S_O(eq_enabled), false, "eq enabled", off_on },
516 /* 0..32768 Hz */ 516 /* 0..32768 Hz */
@@ -532,7 +532,13 @@ static const struct bit_entry hd_bits[] =
532 {9|SIGNED, S_O(eq_band3_gain), 0, "eq band 3 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 }, 533 {9|SIGNED, S_O(eq_band4_gain), 0, "eq band 4 gain", NULL },
534#endif 534#endif
535 535#if defined(HAVE_UDA1380) /* PLEASE merge this with the other UDA1380 define
536 when bumping the settings version number PLEASE */
537 {8|SIGNED, S_O(rec_mic_decimator_left_gain), 0, /* 0dB */
538 "mic decimator left gain", NULL }, /* -128...48 */
539 {8|SIGNED, S_O(rec_mic_decimator_right_gain), 0, /* 0dB */
540 "mic decimator right gain", NULL }, /* -128...48 */
541#endif
536 /* If values are just added to the end, no need to bump the version. */ 542 /* If values are just added to the end, no need to bump the version. */
537 /* new stuff to be added at the end */ 543 /* new stuff to be added at the end */
538 544