mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-12-09 05:05:20 -05:00
pcm: Remove unused function pcm_play_dma_get_peak_buffer()
Change-Id: Ifd20fb14a22489cdb99154c01f69809a1e70d0c5
This commit is contained in:
parent
77ec752248
commit
e532714d1f
23 changed files with 0 additions and 269 deletions
|
|
@ -191,25 +191,3 @@ static int get_dma_count(void)
|
|||
|
||||
return count;
|
||||
}
|
||||
|
||||
const void * pcm_play_dma_get_peak_buffer(int *count)
|
||||
{
|
||||
int flags = disable_irq_save();
|
||||
|
||||
const void* addr;
|
||||
if(REG_DMAC_DCCSR(DMA_AIC_TX_CHANNEL) & DMAC_DCCSR_EN)
|
||||
{
|
||||
int bytes = get_dma_count();
|
||||
*count = bytes >> 2;
|
||||
addr = (const void*)((int)(playback_address + bytes + 2) & ~3);
|
||||
}
|
||||
else
|
||||
{
|
||||
*count = 0;
|
||||
addr = NULL;
|
||||
}
|
||||
|
||||
restore_irq(flags);
|
||||
|
||||
return addr;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue