mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-11-09 13:12:37 -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
|
|
@ -301,21 +301,6 @@ void DMA0(void)
|
|||
/* else inished playing */
|
||||
} /* DMA0 */
|
||||
|
||||
const void * pcm_play_dma_get_peak_buffer(int *count)
|
||||
{
|
||||
unsigned long addr, cnt;
|
||||
|
||||
/* Make sure interrupt doesn't change the second value after we read the
|
||||
* first value. */
|
||||
int level = set_irq_level(DMA_IRQ_LEVEL);
|
||||
addr = SAR0;
|
||||
cnt = BCR0;
|
||||
restore_irq(level);
|
||||
|
||||
*count = (cnt & 0xffffff) >> 2;
|
||||
return (void *)((addr + 2) & ~3);
|
||||
} /* pcm_play_dma_get_peak_buffer */
|
||||
|
||||
#ifdef HAVE_RECORDING
|
||||
/****************************************************************************
|
||||
** Recording DMA transfer
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue