summaryrefslogtreecommitdiff
path: root/apps/settings.c
diff options
context:
space:
mode:
authorThom Johansen <thomj@rockbox.org>2006-05-11 22:55:24 +0000
committerThom Johansen <thomj@rockbox.org>2006-05-11 22:55:24 +0000
commita4bfe37c6cdcc2e70b2b6d5d486531fa2986370b (patch)
tree24f01ed56d3197d66e2f66cabbd4a9814ce14b72 /apps/settings.c
parent5725b8cbcbe11c006fe92874dcc5d834e006daa6 (diff)
downloadrockbox-a4bfe37c6cdcc2e70b2b6d5d486531fa2986370b.zip
rockbox-a4bfe37c6cdcc2e70b2b6d5d486531fa2986370b.tar.gz
rockbox-a4bfe37c6cdcc2e70b2b6d5d486531fa2986370b.tar.bz2
rockbox-a4bfe37c6cdcc2e70b2b6d5d486531fa2986370b.tar.xz
Optical S/PDIF recording and monitoring for Iriver H1x0. Removed unsupported recording options on Iriver. Sample rate displayed in recording screen reflects the real S/PDIF sample rate when doing S/PDIF recording. Testing would be appreciated. Thanks to Jens Arnold for fixing the DMA hang issue. Will reset settings!
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9916 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/settings.c')
-rw-r--r--apps/settings.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/apps/settings.c b/apps/settings.c
index ad1ec70..ccf0acd 100644
--- a/apps/settings.c
+++ b/apps/settings.c
@@ -94,7 +94,7 @@ const char rec_base_directory[] = REC_BASE_DIR;
#include "dsp.h"
#endif
-#define CONFIG_BLOCK_VERSION 41
+#define CONFIG_BLOCK_VERSION 42
#define CONFIG_BLOCK_SIZE 512
#define RTC_BLOCK_SIZE 44
@@ -504,7 +504,11 @@ static const struct bit_entry hd_bits[] =
"off,00:05,00:10,00:15,00:30,01:00,01:14,01:20,02:00,04:00,06:00,08:00,10:00,12:00,18:00,24:00" },
{1, S_O(rec_channels), 0, "rec channels", "stereo,mono" },
{4, S_O(rec_mic_gain), 4, "rec mic gain", NULL },
+#ifdef HAVE_SPDIF_IN
+ {2, S_O(rec_source), 0 /* 0=mic */, "rec source", "mic,line,spdif" },
+#else
{1, S_O(rec_source), 0 /* 0=mic */, "rec source", "mic,line" },
+#endif
{3, S_O(rec_frequency), 0, /* 0=44.1kHz */
"rec frequency", "44,48,32,22,24,16" },
{4, S_O(rec_left_gain), 2, /* 0dB */