summaryrefslogtreecommitdiff
path: root/firmware/export
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 /firmware/export
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 'firmware/export')
-rw-r--r--firmware/export/audio.h6
-rw-r--r--firmware/export/sound.h4
2 files changed, 5 insertions, 5 deletions
diff --git a/firmware/export/audio.h b/firmware/export/audio.h
index 214f298a75..6867f3a268 100644
--- a/firmware/export/audio.h
+++ b/firmware/export/audio.h
@@ -33,9 +33,9 @@
33 33
34#define AUDIOERR_DISK_FULL 1 34#define AUDIOERR_DISK_FULL 1
35 35
36#define AUDIO_GAIN_LINEIN 0 36#define AUDIO_GAIN_LINEIN 0
37#define AUDIO_GAIN_MIC 1 37#define AUDIO_GAIN_MIC 1
38#define AUDIO_GAIN_ADC 2 /* for UDA1380 */ 38#define AUDIO_GAIN_DECIMATOR 2 /* for UDA1380 */
39 39
40 40
41struct audio_debug 41struct audio_debug
diff --git a/firmware/export/sound.h b/firmware/export/sound.h
index 2c002063db..dae124d8f7 100644
--- a/firmware/export/sound.h
+++ b/firmware/export/sound.h
@@ -42,8 +42,8 @@ enum {
42 SOUND_MIC_GAIN, 42 SOUND_MIC_GAIN,
43#endif 43#endif
44#if defined(HAVE_UDA1380) 44#if defined(HAVE_UDA1380)
45 SOUND_ADC_LEFT_GAIN, 45 SOUND_DECIMATOR_LEFT_GAIN,
46 SOUND_ADC_RIGHT_GAIN, 46 SOUND_DECIMATOR_RIGHT_GAIN,
47#endif 47#endif
48}; 48};
49 49