From db734b41d5004fabd7a0cb110040d7a05bd0adb4 Mon Sep 17 00:00:00 2001 From: Hristo Kovachev Date: Wed, 8 Feb 2006 13:08:55 +0000 Subject: 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 --- apps/settings.c | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) (limited to 'apps/settings.c') 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[] = {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 */ -- cgit v1.2.3