mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-12-08 12:45:26 -05:00
pcm: Get rid of pcm_play_pause() and associated APIs
Nothing in the core has used it for some time. It's exported to the plugin API but the last plugins to use it were switched to the mixer API back in 2011. This allows us to get rid of pcm_play_dma_pause() from all audio drivers Change-Id: Ic3fa02592316f84963e41d792d1cabb436d1ff6b
This commit is contained in:
parent
2d85c72151
commit
fe2d52cc7d
35 changed files with 20 additions and 388 deletions
|
|
@ -114,21 +114,6 @@ void pcm_play_dma_start(const void *addr, size_t size)
|
|||
hdma_i2s_transfer(addr, size);
|
||||
}
|
||||
|
||||
/* pause DMA transfer by disabling clock to DMA module */
|
||||
void pcm_play_dma_pause(bool pause)
|
||||
{
|
||||
if(pause)
|
||||
{
|
||||
SCU_CLKCFG |= CLKCFG_HDMA;
|
||||
locked = 1;
|
||||
}
|
||||
else
|
||||
{
|
||||
SCU_CLKCFG &= ~CLKCFG_HDMA;
|
||||
locked = 0;
|
||||
}
|
||||
}
|
||||
|
||||
static void i2s_init(void)
|
||||
{
|
||||
#if defined(HAVE_RK27XX_CODEC)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue