summaryrefslogtreecommitdiff
path: root/apps/settings.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/settings.c')
-rw-r--r--apps/settings.c29
1 files changed, 23 insertions, 6 deletions
diff --git a/apps/settings.c b/apps/settings.c
index 49b8f9826b..acaeedcbd9 100644
--- a/apps/settings.c
+++ b/apps/settings.c
@@ -92,7 +92,7 @@ const char rec_base_directory[] = REC_BASE_DIR;
92#include "dsp.h" 92#include "dsp.h"
93#endif 93#endif
94 94
95#define CONFIG_BLOCK_VERSION 50 95#define CONFIG_BLOCK_VERSION 51
96#define CONFIG_BLOCK_SIZE 512 96#define CONFIG_BLOCK_SIZE 512
97#define RTC_BLOCK_SIZE 44 97#define RTC_BLOCK_SIZE 44
98 98
@@ -473,11 +473,21 @@ static const struct bit_entry hd_bits[] =
473 {1, S_O(rec_split_type), 0, "rec split type", "Split, Stop" }, 473 {1, S_O(rec_split_type), 0, "rec split type", "Split, Stop" },
474 {1, S_O(rec_split_method), 0, "rec split method", "Time,Filesize" }, 474 {1, S_O(rec_split_method), 0, "rec split method", "Time,Filesize" },
475 475
476#ifdef HAVE_SPDIF_IN 476 {
477 {2, S_O(rec_source), 0 /* 0=mic */, "rec source", "mic,line,spdif" }, 477#if defined(HAVE_SPDIF_IN) || defined(HAVE_FMRADIO_IN)
478 2,
478#else 479#else
479 {1, S_O(rec_source), 0 /* 0=mic */, "rec source", "mic,line" }, 480 1,
481#endif
482 S_O(rec_source), 0 /* 0=mic */, "rec source",
483 "mic,line"
484#ifdef HAVE_SPDIF_IN
485 ",spdif"
480#endif 486#endif
487#ifdef HAVE_FMRADIO_IN
488 ",fmradio"
489#endif
490 },
481 {5, S_O(rec_prerecord_time), 0, "prerecording time", NULL }, /* 0...30 */ 491 {5, S_O(rec_prerecord_time), 0, "prerecording time", NULL }, /* 0...30 */
482 {1, S_O(rec_directory), 0, /* rec_base_directory */ 492 {1, S_O(rec_directory), 0, /* rec_base_directory */
483 "rec directory", REC_BASE_DIR ",current" }, 493 "rec directory", REC_BASE_DIR ",current" },
@@ -490,14 +500,21 @@ static const struct bit_entry hd_bits[] =
490 {4, S_O(rec_right_gain), 2 /* 0dB */, "rec right gain", NULL }, /* 0...15 */ 500 {4, S_O(rec_right_gain), 2 /* 0dB */, "rec right gain", NULL }, /* 0...15 */
491 {3, S_O(rec_frequency), 0, /* 0=44.1kHz */ 501 {3, S_O(rec_frequency), 0, /* 0=44.1kHz */
492 "rec frequency", "44,48,32,22,24,16" }, 502 "rec frequency", "44,48,32,22,24,16" },
503 {3, S_O(rec_quality), 5 /* 192 kBit/s max */, "rec quality", NULL },
493 {1, S_O(rec_editable), false, "editable recordings", off_on }, 504 {1, S_O(rec_editable), false, "editable recordings", off_on },
494 {3, S_O(rec_quality), 5, "rec quality", NULL }, 505#elif defined(HAVE_UDA1380) || defined(HAVE_TLV320)
495#elif defined(HAVE_UDA1380) 506#ifdef HAVE_UDA1380
496 {8|SIGNED, S_O(rec_mic_gain), 16 /* 8 dB */, "rec mic gain", NULL }, /* -128...+108 */ 507 {8|SIGNED, S_O(rec_mic_gain), 16 /* 8 dB */, "rec mic gain", NULL }, /* -128...+108 */
508#endif
509#ifdef HAVE_TLV320
510 /* TLV320 only has no mic boost or 20db mic boost */
511 {1, S_O(rec_mic_gain), 0 /* 0 dB */, "rec mic gain", NULL }, /* 0db or 20db */
512#endif
497 {8|SIGNED, S_O(rec_left_gain), 0, "rec left gain", NULL }, /* -128...+96 */ 513 {8|SIGNED, S_O(rec_left_gain), 0, "rec left gain", NULL }, /* -128...+96 */
498 {8|SIGNED, S_O(rec_right_gain), 0, "rec right gain", NULL }, /* -128...+96 */ 514 {8|SIGNED, S_O(rec_right_gain), 0, "rec right gain", NULL }, /* -128...+96 */
499 {3, S_O(rec_frequency), 0, /* 0=44.1kHz */ 515 {3, S_O(rec_frequency), 0, /* 0=44.1kHz */
500 "rec frequency", "44,48,32,22,24,16" }, 516 "rec frequency", "44,48,32,22,24,16" },
517 {4, S_O(rec_quality), 4 /* MP3 L3 192 kBit/s */, "rec quality", NULL },
501#endif 518#endif
502 519
503 /* values for the trigger */ 520 /* values for the trigger */