mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-12-08 12:45:26 -05:00
PCM bottom layer simplification. pcm_rec_peak_addr variable no longer has to be handled there. Driver can just return current pointer for recording peaks. A new define, HAVE_PCM_REC_DMA_ADDRESS, specifies that physical addresses are being used for recording and translation is needed before starting a new block. The drivers need not worry about aligning start and size nor should care if either will be zero. All this will be checked in the logical layer first.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25970 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
f2df42ee91
commit
4d04132c76
10 changed files with 79 additions and 104 deletions
|
|
@ -367,7 +367,7 @@ void pcm_rec_unlock(void)
|
|||
{
|
||||
}
|
||||
|
||||
void pcm_record_more(void *start, size_t size)
|
||||
void pcm_rec_dma_record_more(void *start, size_t size)
|
||||
{
|
||||
(void)start;
|
||||
(void)size;
|
||||
|
|
@ -393,9 +393,9 @@ void pcm_rec_dma_init(void)
|
|||
}
|
||||
|
||||
|
||||
const void * pcm_rec_dma_get_peak_buffer(int *count)
|
||||
const void * pcm_rec_dma_get_peak_buffer(void)
|
||||
{
|
||||
(void)count;
|
||||
return NULL;
|
||||
}
|
||||
|
||||
#endif /* HAVE_RECORDING */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue