summaryrefslogtreecommitdiffstats
path: root/firmware/pcm_record.c
diff options
context:
space:
mode:
authorMichael Sevakis <jethead71@rockbox.org>2007-10-06 22:27:27 +0000
committerMichael Sevakis <jethead71@rockbox.org>2007-10-06 22:27:27 +0000
commit6077e5b7c85c0d6f5963e4aadb215faf2c4d10d2 (patch)
treea6bc91ee4168e83617e942eeaea46e5523e82420 /firmware/pcm_record.c
parentf6de0d4083a4fcb6da57f271e1f8ccaf715e571d (diff)
downloadrockbox-6077e5b7c85c0d6f5963e4aadb215faf2c4d10d2.tar.gz
rockbox-6077e5b7c85c0d6f5963e4aadb215faf2c4d10d2.zip
Unify PCM interface just above the hardware driver level for all targets including the sims. Perform lockout of audio callback when changing states. Weird new playback or recording trouble? Check before and after this revision first though things seem quite sound.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15006 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/pcm_record.c')
-rw-r--r--firmware/pcm_record.c39
1 files changed, 0 insertions, 39 deletions
diff --git a/firmware/pcm_record.c b/firmware/pcm_record.c
index a5d0e51c30..ac12fe2ba0 100644
--- a/firmware/pcm_record.c
+++ b/firmware/pcm_record.c
@@ -34,25 +34,8 @@
/***************************************************************************/
-/**
- * APIs implemented in the target tree portion:
- * Public -
- * pcm_init_recording
- * pcm_close_recording
- * Semi-private -
- * pcm_rec_dma_start
- * pcm_rec_dma_stop
- */
-
-/** These items may be implemented target specifically or need to
- be shared semi-privately **/
extern struct thread_entry *codec_thread_p;
-/* the registered callback function for when more data is available */
-volatile pcm_more_callback_type2 pcm_callback_more_ready = NULL;
-/* DMA transfer in is currently active */
-volatile bool pcm_recording = false;
-
/** General recording state **/
static bool is_recording; /* We are recording */
static bool is_paused; /* We have paused */
@@ -1790,25 +1773,3 @@ size_t enc_unget_pcm_data(size_t size)
return 0;
} /* enc_unget_pcm_data */
-
-/** Low level pcm recording apis **/
-
-/****************************************************************************
- * Functions that do not require targeted implementation but only a targeted
- * interface
- */
-void pcm_record_data(pcm_more_callback_type2 more_ready,
- void *start, size_t size)
-{
- if (!(start && size))
- return;
-
- pcm_callback_more_ready = more_ready;
- pcm_rec_dma_start(start, size);
-} /* pcm_record_data */
-
-void pcm_stop_recording(void)
-{
- if (pcm_recording)
- pcm_rec_dma_stop();
-} /* pcm_stop_recording */