summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
Diffstat (limited to 'apps')
-rw-r--r--apps/codecs/aiff_enc.c2
-rw-r--r--apps/enc_config.c4
-rw-r--r--apps/keymaps/keymap-h10.c10
-rw-r--r--apps/keymaps/keymap-ipod.c8
-rw-r--r--apps/main.c3
-rw-r--r--apps/settings.c21
6 files changed, 41 insertions, 7 deletions
diff --git a/apps/codecs/aiff_enc.c b/apps/codecs/aiff_enc.c
index aca1951654..f1569d20ff 100644
--- a/apps/codecs/aiff_enc.c
+++ b/apps/codecs/aiff_enc.c
@@ -59,7 +59,7 @@ struct aiff_header aiff_header =
59 H_TO_BE32(18), /* comm_size */ 59 H_TO_BE32(18), /* comm_size */
60 0, /* num_channels (*) */ 60 0, /* num_channels (*) */
61 0, /* num_sample_frames (*) */ 61 0, /* num_sample_frames (*) */
62 H_TO_BE32(PCM_DEPTH_BITS), /* sample_size */ 62 H_TO_BE16(PCM_DEPTH_BITS), /* sample_size */
63 { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }, /* sample_rate (*) */ 63 { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }, /* sample_rate (*) */
64 { 'S', 'S', 'N', 'D' }, /* ssnd_id */ 64 { 'S', 'S', 'N', 'D' }, /* ssnd_id */
65 0, /* ssnd_size (*) */ 65 0, /* ssnd_size (*) */
diff --git a/apps/enc_config.c b/apps/enc_config.c
index 2d2abae61a..f4ea1cc4b5 100644
--- a/apps/enc_config.c
+++ b/apps/enc_config.c
@@ -159,9 +159,9 @@ static bool mp3_enc_bitrate(struct encoder_config *cfg)
159 MPEG1_BITR_CAPS | MPEG2_BITR_CAPS, mp3_enc_bitr, 159 MPEG1_BITR_CAPS | MPEG2_BITR_CAPS, mp3_enc_bitr,
160 MPEG1_BITR_CAPS 160 MPEG1_BITR_CAPS
161#ifdef HAVE_MPEG2_SAMPR 161#ifdef HAVE_MPEG2_SAMPR
162 | (MPEG2_BITR_CAPS & ~(MP3_BITR_CAP_144 | MP3_BITR_CAP_8)), 162 | (MPEG2_BITR_CAPS & ~(MP3_BITR_CAP_144 | MP3_BITR_CAP_8))
163#endif 163#endif
164 rate_list); 164 , rate_list);
165 165
166 int index = round_value_to_list32(cfg->mp3_enc.bitrate, rate_list, 166 int index = round_value_to_list32(cfg->mp3_enc.bitrate, rate_list,
167 n_rates, false); 167 n_rates, false);
diff --git a/apps/keymaps/keymap-h10.c b/apps/keymaps/keymap-h10.c
index 33bcb13269..16c8c49258 100644
--- a/apps/keymaps/keymap-h10.c
+++ b/apps/keymaps/keymap-h10.c
@@ -298,6 +298,12 @@ static const struct button_mapping button_context_bmark[] = {
298 LAST_ITEM_IN_LIST__NEXTLIST(CONTEXT_STD), 298 LAST_ITEM_IN_LIST__NEXTLIST(CONTEXT_STD),
299}; /* button_context_bmark */ 299}; /* button_context_bmark */
300 300
301const struct button_mapping button_context_recscreen[] = {
302 { ACTION_REC_PAUSE, BUTTON_PLAY, BUTTON_NONE },
303
304 LAST_ITEM_IN_LIST__NEXTLIST(CONTEXT_SETTINGS)
305}; /* button_context_recscreen */
306
301static const struct button_mapping* get_context_mapping_remote( int context ) 307static const struct button_mapping* get_context_mapping_remote( int context )
302{ 308{
303 context ^= CONTEXT_REMOTE; 309 context ^= CONTEXT_REMOTE;
@@ -325,6 +331,8 @@ static const struct button_mapping* get_context_mapping_remote( int context )
325 return remote_button_context_quickscreen; 331 return remote_button_context_quickscreen;
326 case CONTEXT_PITCHSCREEN: 332 case CONTEXT_PITCHSCREEN:
327 return remote_button_context_pitchscreen; 333 return remote_button_context_pitchscreen;
334 case CONTEXT_RECSCREEN:
335 return button_context_recscreen;
328 336
329 default: 337 default:
330 return remote_button_context_standard; 338 return remote_button_context_standard;
@@ -374,6 +382,8 @@ const struct button_mapping* get_context_mapping(int context)
374 return button_context_pitchscreen; 382 return button_context_pitchscreen;
375 case CONTEXT_KEYBOARD: 383 case CONTEXT_KEYBOARD:
376 return button_context_keyboard; 384 return button_context_keyboard;
385 case CONTEXT_RECSCREEN:
386 return button_context_recscreen;
377 387
378 default: 388 default:
379 return button_context_standard; 389 return button_context_standard;
diff --git a/apps/keymaps/keymap-ipod.c b/apps/keymaps/keymap-ipod.c
index 26189d95fe..8ca0c56831 100644
--- a/apps/keymaps/keymap-ipod.c
+++ b/apps/keymaps/keymap-ipod.c
@@ -166,6 +166,12 @@ static const struct button_mapping button_context_keyboard[] = {
166 LAST_ITEM_IN_LIST 166 LAST_ITEM_IN_LIST
167}; /* button_context_keyboard */ 167}; /* button_context_keyboard */
168 168
169const struct button_mapping button_context_recscreen[] = {
170 { ACTION_REC_PAUSE, BUTTON_PLAY, BUTTON_NONE },
171
172 LAST_ITEM_IN_LIST__NEXTLIST(CONTEXT_SETTINGS)
173}; /* button_context_recscreen */
174
169/* get_context_mapping returns a pointer to one of the above defined arrays depending on the context */ 175/* get_context_mapping returns a pointer to one of the above defined arrays depending on the context */
170const struct button_mapping* get_context_mapping(int context) 176const struct button_mapping* get_context_mapping(int context)
171{ 177{
@@ -202,6 +208,8 @@ const struct button_mapping* get_context_mapping(int context)
202 return button_context_pitchscreen; 208 return button_context_pitchscreen;
203 case CONTEXT_KEYBOARD: 209 case CONTEXT_KEYBOARD:
204 return button_context_keyboard; 210 return button_context_keyboard;
211 case CONTEXT_RECSCREEN:
212 return button_context_recscreen;
205 default: 213 default:
206 return button_context_standard; 214 return button_context_standard;
207 } 215 }
diff --git a/apps/main.c b/apps/main.c
index abc7740919..f9e6054973 100644
--- a/apps/main.c
+++ b/apps/main.c
@@ -78,6 +78,9 @@
78#endif 78#endif
79#if (CONFIG_CODEC == SWCODEC) && defined(HAVE_RECORDING) && !defined(SIMULATOR) 79#if (CONFIG_CODEC == SWCODEC) && defined(HAVE_RECORDING) && !defined(SIMULATOR)
80#include "pcm_record.h" 80#include "pcm_record.h"
81#endif
82
83#ifdef BUTTON_REC
81#define SETTINGS_RESET BUTTON_REC 84#define SETTINGS_RESET BUTTON_REC
82#endif 85#endif
83 86
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,