summaryrefslogtreecommitdiff
path: root/apps/settings.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/settings.c')
-rw-r--r--apps/settings.c21
1 files changed, 17 insertions, 4 deletions
diff --git a/apps/settings.c b/apps/settings.c
index 91ffc0d238..454ba183ee 100644
--- a/apps/settings.c
+++ b/apps/settings.c
@@ -100,7 +100,7 @@ const char rec_base_directory[] = REC_BASE_DIR;
100#include "eq_menu.h" 100#include "eq_menu.h"
101#endif 101#endif
102 102
103#define CONFIG_BLOCK_VERSION 56 103#define CONFIG_BLOCK_VERSION 57
104#define CONFIG_BLOCK_SIZE 512 104#define CONFIG_BLOCK_SIZE 512
105#define RTC_BLOCK_SIZE 44 105#define RTC_BLOCK_SIZE 44
106 106
@@ -521,13 +521,26 @@ static const struct bit_entry hd_bits[] =
521#if CONFIG_CODEC == SWCODEC 521#if CONFIG_CODEC == SWCODEC
522#ifdef HAVE_UDA1380 522#ifdef HAVE_UDA1380
523 {8|SIGNED, S_O(rec_mic_gain), 16 /* 8 dB */, "rec mic gain", NULL }, /* -128...+108 */ 523 {8|SIGNED, S_O(rec_mic_gain), 16 /* 8 dB */, "rec mic gain", NULL }, /* -128...+108 */
524#endif 524 {8|SIGNED, S_O(rec_left_gain), 0, "rec left gain", NULL }, /* -128...+96 */
525#ifdef HAVE_TLV320 525 {8|SIGNED, S_O(rec_right_gain), 0, "rec right gain", NULL }, /* -128...+96 */
526#elif defined(HAVE_TLV320)
526 /* TLV320 only has no mic boost or 20db mic boost */ 527 /* TLV320 only has no mic boost or 20db mic boost */
527 {1, S_O(rec_mic_gain), 0 /* 0 dB */, "rec mic gain", NULL }, /* 0db or 20db */ 528 {1, S_O(rec_mic_gain), 0 /* 0 dB */, "rec mic gain", NULL }, /* 0db or 20db */
528#endif
529 {8|SIGNED, S_O(rec_left_gain), 0, "rec left gain", NULL }, /* -128...+96 */ 529 {8|SIGNED, S_O(rec_left_gain), 0, "rec left gain", NULL }, /* -128...+96 */
530 {8|SIGNED, S_O(rec_right_gain), 0, "rec right gain", NULL }, /* -128...+96 */ 530 {8|SIGNED, S_O(rec_right_gain), 0, "rec right gain", NULL }, /* -128...+96 */
531#elif defined(HAVE_WM8975)
532 {8|SIGNED, S_O(rec_mic_gain), 16 /* 8 dB */, "rec mic gain", NULL }, /* -128...+108 */
533 {8|SIGNED, S_O(rec_left_gain), 0, "rec left gain", NULL }, /* -128...+96 */
534 {8|SIGNED, S_O(rec_right_gain), 0, "rec right gain", NULL }, /* -128...+96 */
535#elif defined(HAVE_WM8758)
536 {8|SIGNED, S_O(rec_mic_gain), 16 /* 8 dB */, "rec mic gain", NULL }, /* -128...+108 */
537 {8|SIGNED, S_O(rec_left_gain), 0, "rec left gain", NULL }, /* -128...+96 */
538 {8|SIGNED, S_O(rec_right_gain), 0, "rec right gain", NULL }, /* -128...+96 */
539#elif defined(HAVE_WM8731)
540 {8|SIGNED, S_O(rec_mic_gain), 16 /* 8 dB */, "rec mic gain", NULL }, /* -128...+108 */
541 {8|SIGNED, S_O(rec_left_gain), 0, "rec left gain", NULL }, /* -128...+96 */
542 {8|SIGNED, S_O(rec_right_gain), 0, "rec right gain", NULL }, /* -128...+96 */
543#endif
531 {REC_FREQ_CFG_NUM_BITS, S_O(rec_frequency), REC_FREQ_DEFAULT, 544 {REC_FREQ_CFG_NUM_BITS, S_O(rec_frequency), REC_FREQ_DEFAULT,
532 "rec frequency", REC_FREQ_CFG_VAL_LIST }, 545 "rec frequency", REC_FREQ_CFG_VAL_LIST },
533 {REC_FORMAT_CFG_NUM_BITS ,S_O(rec_format), REC_FORMAT_DEFAULT, 546 {REC_FORMAT_CFG_NUM_BITS ,S_O(rec_format), REC_FORMAT_DEFAULT,