mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-11-14 23:52:26 -05:00
pcm: Further cleanup of unused bits of the PCM ACPI:
* pcm_get_bytes_remaining() * pcm_calculate_peaks() * pcm_get_peak_buffer() Nothing in-tree uses these at all (except for the lua plugin wrapper) Change-Id: I971b7beed6760250c8b1ce58f401a601e1e2d585
This commit is contained in:
parent
1a68856f52
commit
388adff3cc
29 changed files with 5 additions and 231 deletions
|
|
@ -203,20 +203,6 @@ static int get_dma_count(void)
|
|||
return count;
|
||||
}
|
||||
|
||||
size_t pcm_get_bytes_waiting(void)
|
||||
{
|
||||
int bytes, flags = disable_irq_save();
|
||||
|
||||
if(REG_DMAC_DCCSR(DMA_AIC_TX_CHANNEL) & DMAC_DCCSR_EN)
|
||||
bytes = get_dma_count() & ~3;
|
||||
else
|
||||
bytes = 0;
|
||||
|
||||
restore_irq(flags);
|
||||
|
||||
return bytes;
|
||||
}
|
||||
|
||||
const void * pcm_play_dma_get_peak_buffer(int *count)
|
||||
{
|
||||
int flags = disable_irq_save();
|
||||
|
|
|
|||
|
|
@ -192,20 +192,6 @@ static int get_dma_count(void)
|
|||
return count;
|
||||
}
|
||||
|
||||
size_t pcm_get_bytes_waiting(void)
|
||||
{
|
||||
int bytes, flags = disable_irq_save();
|
||||
|
||||
if(REG_DMAC_DCCSR(DMA_AIC_TX_CHANNEL) & DMAC_DCCSR_EN)
|
||||
bytes = get_dma_count() & ~3;
|
||||
else
|
||||
bytes = 0;
|
||||
|
||||
restore_irq(flags);
|
||||
|
||||
return bytes;
|
||||
}
|
||||
|
||||
const void * pcm_play_dma_get_peak_buffer(int *count)
|
||||
{
|
||||
int flags = disable_irq_save();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue