mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-12-08 12:45:26 -05:00
Gigabeat S: Implement an SDMA API and use it in the PCM driver. Some other miscellaneous adjustments to recording and PCM buffer to accomodate use of physical addresses and cache coherency.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19949 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
0222d0a5eb
commit
94537f954e
21 changed files with 3002 additions and 141 deletions
|
|
@ -1148,8 +1148,8 @@ static void pcmrec_init(void)
|
|||
|
||||
buffer = audio_get_recording_buffer(&rec_buffer_size);
|
||||
|
||||
/* Line align pcm_buffer 2^4=16 bytes */
|
||||
pcm_buffer = (unsigned char *)ALIGN_UP_P2((uintptr_t)buffer, 4);
|
||||
/* Line align pcm_buffer 2^5=32 bytes */
|
||||
pcm_buffer = (unsigned char *)ALIGN_UP_P2((uintptr_t)buffer, 5);
|
||||
enc_buffer = pcm_buffer + ALIGN_UP_P2(PCM_NUM_CHUNKS*PCM_CHUNK_SIZE +
|
||||
PCM_MAX_FEED_SIZE, 2);
|
||||
/* Adjust available buffer for possible align advancement */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue