diff options
Diffstat (limited to 'firmware/pcm_record.c')
-rw-r--r-- | firmware/pcm_record.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/firmware/pcm_record.c b/firmware/pcm_record.c index 1437b438ba..49da257c08 100644 --- a/firmware/pcm_record.c +++ b/firmware/pcm_record.c | |||
@@ -361,11 +361,12 @@ unsigned long pcm_rec_sample_rate(void) | |||
361 | void pcm_rec_init(void) | 361 | void pcm_rec_init(void) |
362 | { | 362 | { |
363 | queue_init(&pcmrec_queue, true); | 363 | queue_init(&pcmrec_queue, true); |
364 | queue_enable_queue_send(&pcmrec_queue, &pcmrec_queue_send); | ||
365 | pcmrec_thread_p = | 364 | pcmrec_thread_p = |
366 | create_thread(pcmrec_thread, pcmrec_stack, sizeof(pcmrec_stack), | 365 | create_thread(pcmrec_thread, pcmrec_stack, sizeof(pcmrec_stack), |
367 | 0, pcmrec_thread_name IF_PRIO(, PRIORITY_RECORDING) | 366 | 0, pcmrec_thread_name IF_PRIO(, PRIORITY_RECORDING) |
368 | IF_COP(, CPU)); | 367 | IF_COP(, CPU)); |
368 | queue_enable_queue_send(&pcmrec_queue, &pcmrec_queue_send, | ||
369 | pcmrec_thread_p); | ||
369 | } /* pcm_rec_init */ | 370 | } /* pcm_rec_init */ |
370 | 371 | ||
371 | /** audio_* group **/ | 372 | /** audio_* group **/ |
@@ -874,9 +875,9 @@ static void pcmrec_flush(unsigned flush_num) | |||
874 | logf("pcmrec: boost (%s)", | 875 | logf("pcmrec: boost (%s)", |
875 | num >= flood_watermark ? "num" : "time"); | 876 | num >= flood_watermark ? "num" : "time"); |
876 | prio_pcmrec = thread_set_priority(NULL, | 877 | prio_pcmrec = thread_set_priority(NULL, |
877 | thread_get_priority(NULL) - 1); | 878 | thread_get_priority(NULL) - 4); |
878 | prio_codec = thread_set_priority(codec_thread_p, | 879 | prio_codec = thread_set_priority(codec_thread_p, |
879 | thread_get_priority(codec_thread_p) - 1); | 880 | thread_get_priority(codec_thread_p) - 4); |
880 | } | 881 | } |
881 | #endif | 882 | #endif |
882 | 883 | ||