1
0
Fork 0
forked from len0rd/rockbox

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

@ -52,12 +52,6 @@ void pcm_play_dma_postinit(void)
// dsp_wake();
}
const void * pcm_play_dma_get_peak_buffer(int *count)
{
(void) count;
return 0;
}
void pcm_dma_apply_settings(void)
{
audiohw_set_frequency(pcm_fsel);

View file

@ -46,22 +46,6 @@ void pcm_play_dma_postinit(void)
audiohw_postinit();
}
/* Return the current location in the SDRAM to SARAM transfer along with the
* number of bytes read in the current buffer (count). There is latency with
* this method equivalent to ~ the size of the SARAM buffer since there is
* another buffer between your ears and this calculation, but this works for
* key clicks and an approximate peak meter.
*/
const void * pcm_play_dma_get_peak_buffer(int *count)
{
int cnt = DSP_(_sdem_level);
unsigned long addr = (unsigned long) start + cnt;
*count = (cnt & 0xFFFFF) >> 1;
return (void *)((addr + 2) & ~3);
}
void pcm_play_dma_init(void)
{
IO_INTC_IRQ0 = INTR_IRQ0_IMGBUF;

View file

@ -42,22 +42,6 @@ void pcm_play_dma_postinit(void)
audiohw_postinit();
}
/* Return the current location in the SDRAM to SARAM transfer along with the
* number of bytes read in the current buffer (count). There is latency with
* this method equivalent to ~ the size of the SARAM buffer since there is
* another buffer between your ears and this calculation, but this works for
* key clicks and an approximate peak meter.
*/
const void * pcm_play_dma_get_peak_buffer(int *count)
{
int cnt = DSP_(_sdem_level);
unsigned long addr = (unsigned long) start + cnt;
*count = (cnt & 0xFFFFF) >> 1;
return (void *)((addr + 2) & ~3);
}
void pcm_play_dma_init(void)
{
/* GIO16 is DSP/AIC3X CLK */