pcm: Remove unused function pcm_play_dma_get_peak_buffer()

Change-Id: Ifd20fb14a22489cdb99154c01f69809a1e70d0c5
This commit is contained in:
Aidan MacDonald 2021-07-25 14:03:44 +01:00
parent 77ec752248
commit e532714d1f
23 changed files with 0 additions and 269 deletions

View file

@ -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