summaryrefslogtreecommitdiff
path: root/firmware/pcm_record.c
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/pcm_record.c')
-rw-r--r--firmware/pcm_record.c24
1 files changed, 12 insertions, 12 deletions
diff --git a/firmware/pcm_record.c b/firmware/pcm_record.c
index f03939bd3c..b826763370 100644
--- a/firmware/pcm_record.c
+++ b/firmware/pcm_record.c
@@ -249,7 +249,7 @@ static int pcm_rec_have_more(int status)
249 if (status == DMA_REC_ERROR_DMA) 249 if (status == DMA_REC_ERROR_DMA)
250 { 250 {
251 /* Flush recorded data to disk and stop recording */ 251 /* Flush recorded data to disk and stop recording */
252 queue_post(&pcmrec_queue, PCMREC_STOP, NULL); 252 queue_post(&pcmrec_queue, PCMREC_STOP, 0);
253 return -1; 253 return -1;
254 } 254 }
255 /* else try again next transmission */ 255 /* else try again next transmission */
@@ -388,7 +388,7 @@ void pcm_rec_init(void)
388void audio_init_recording(unsigned int buffer_offset) 388void audio_init_recording(unsigned int buffer_offset)
389{ 389{
390 logf("audio_init_recording"); 390 logf("audio_init_recording");
391 queue_send(&pcmrec_queue, PCMREC_INIT, NULL); 391 queue_send(&pcmrec_queue, PCMREC_INIT, 0);
392 logf("audio_init_recording done"); 392 logf("audio_init_recording done");
393 (void)buffer_offset; 393 (void)buffer_offset;
394} /* audio_init_recording */ 394} /* audio_init_recording */
@@ -399,7 +399,7 @@ void audio_init_recording(unsigned int buffer_offset)
399void audio_close_recording(void) 399void audio_close_recording(void)
400{ 400{
401 logf("audio_close_recording"); 401 logf("audio_close_recording");
402 queue_send(&pcmrec_queue, PCMREC_CLOSE, NULL); 402 queue_send(&pcmrec_queue, PCMREC_CLOSE, 0);
403 logf("audio_close_recording done"); 403 logf("audio_close_recording done");
404} /* audio_close_recording */ 404} /* audio_close_recording */
405 405
@@ -409,7 +409,7 @@ void audio_close_recording(void)
409void audio_set_recording_options(struct audio_recording_options *options) 409void audio_set_recording_options(struct audio_recording_options *options)
410{ 410{
411 logf("audio_set_recording_options"); 411 logf("audio_set_recording_options");
412 queue_send(&pcmrec_queue, PCMREC_OPTIONS, (void *)options); 412 queue_send(&pcmrec_queue, PCMREC_OPTIONS, (intptr_t)options);
413 logf("audio_set_recording_options done"); 413 logf("audio_set_recording_options done");
414} /* audio_set_recording_options */ 414} /* audio_set_recording_options */
415 415
@@ -419,7 +419,7 @@ void audio_set_recording_options(struct audio_recording_options *options)
419void audio_record(const char *filename) 419void audio_record(const char *filename)
420{ 420{
421 logf("audio_record: %s", filename); 421 logf("audio_record: %s", filename);
422 queue_send(&pcmrec_queue, PCMREC_RECORD, (void *)filename); 422 queue_send(&pcmrec_queue, PCMREC_RECORD, (intptr_t)filename);
423 logf("audio_record_done"); 423 logf("audio_record_done");
424} /* audio_record */ 424} /* audio_record */
425 425
@@ -429,7 +429,7 @@ void audio_record(const char *filename)
429void audio_stop_recording(void) 429void audio_stop_recording(void)
430{ 430{
431 logf("audio_stop_recording"); 431 logf("audio_stop_recording");
432 queue_send(&pcmrec_queue, PCMREC_STOP, NULL); 432 queue_send(&pcmrec_queue, PCMREC_STOP, 0);
433 logf("audio_stop_recording done"); 433 logf("audio_stop_recording done");
434} /* audio_stop_recording */ 434} /* audio_stop_recording */
435 435
@@ -439,7 +439,7 @@ void audio_stop_recording(void)
439void audio_pause_recording(void) 439void audio_pause_recording(void)
440{ 440{
441 logf("audio_pause_recording"); 441 logf("audio_pause_recording");
442 queue_send(&pcmrec_queue, PCMREC_PAUSE, NULL); 442 queue_send(&pcmrec_queue, PCMREC_PAUSE, 0);
443 logf("audio_pause_recording done"); 443 logf("audio_pause_recording done");
444} /* audio_pause_recording */ 444} /* audio_pause_recording */
445 445
@@ -449,7 +449,7 @@ void audio_pause_recording(void)
449void audio_resume_recording(void) 449void audio_resume_recording(void)
450{ 450{
451 logf("audio_resume_recording"); 451 logf("audio_resume_recording");
452 queue_send(&pcmrec_queue, PCMREC_RESUME, NULL); 452 queue_send(&pcmrec_queue, PCMREC_RESUME, 0);
453 logf("audio_resume_recording done"); 453 logf("audio_resume_recording done");
454} /* audio_resume_recording */ 454} /* audio_resume_recording */
455 455
@@ -1069,7 +1069,7 @@ static void pcmrec_new_stream(const char *filename, /* next file name */
1069 flush will hang the screen for a bit otherwise */ 1069 flush will hang the screen for a bit otherwise */
1070 strncpy(buf, filename, MAX_PATH); 1070 strncpy(buf, filename, MAX_PATH);
1071 filename = buf; 1071 filename = buf;
1072 queue_reply(&pcmrec_queue, NULL); 1072 queue_reply(&pcmrec_queue, 0);
1073 pcmrec_flush(-1); 1073 pcmrec_flush(-1);
1074 } 1074 }
1075 1075
@@ -1182,7 +1182,7 @@ static void pcmrec_set_recording_options(struct audio_recording_options *options
1182 /* apply pcm settings to hardware */ 1182 /* apply pcm settings to hardware */
1183 pcm_apply_settings(true); 1183 pcm_apply_settings(true);
1184 1184
1185 queue_reply(&pcmrec_queue, NULL); /* Release sender */ 1185 queue_reply(&pcmrec_queue, 0); /* Release sender */
1186 1186
1187 if (audio_load_encoder(enc_config.afmt)) 1187 if (audio_load_encoder(enc_config.afmt))
1188 { 1188 {
@@ -1310,7 +1310,7 @@ static void pcmrec_stop(void)
1310 } 1310 }
1311 1311
1312 dma_lock = true; /* lock dma write position */ 1312 dma_lock = true; /* lock dma write position */
1313 queue_reply(&pcmrec_queue, NULL); 1313 queue_reply(&pcmrec_queue, 0);
1314 1314
1315 /* flush all available data first to avoid overflow while waiting 1315 /* flush all available data first to avoid overflow while waiting
1316 for encoding to finish */ 1316 for encoding to finish */
@@ -1470,7 +1470,7 @@ static void pcmrec_thread(void)
1470 break; 1470 break;
1471 } /* end switch */ 1471 } /* end switch */
1472 1472
1473 queue_reply(&pcmrec_queue, NULL); 1473 queue_reply(&pcmrec_queue, 0);
1474 } /* end while */ 1474 } /* end while */
1475} /* pcmrec_thread */ 1475} /* pcmrec_thread */
1476 1476