forked from len0rd/rockbox
Fix high power consumption at powerup.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17445 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
1ec35841d6
commit
66010b9f30
1 changed files with 10 additions and 7 deletions
|
|
@ -89,12 +89,19 @@ void pcm_play_dma_init(void)
|
||||||
{
|
{
|
||||||
pcm_set_frequency(SAMPR_44);
|
pcm_set_frequency(SAMPR_44);
|
||||||
|
|
||||||
/* slave */
|
/* There seem to be problems when changing the IIS interface configuration
|
||||||
IISMOD |= (1<<8);
|
* when a clock is not present.
|
||||||
|
*/
|
||||||
|
s3c_regset(&CLKCON, 1<<17);
|
||||||
|
/* slave, transmit mode, 16 bit samples - MCLK 384fs - use 16.9344Mhz -
|
||||||
|
BCLK 32fs */
|
||||||
|
IISMOD = (1<<9) | (1<<8) | (2<<6) | (1<<3) | (1<<2) | (1<<0);
|
||||||
|
|
||||||
/* RX,TX off,idle */
|
/* RX,TX off,on */
|
||||||
IISCON |= (1<<3) | (1<<2);
|
IISCON |= (1<<3) | (1<<2);
|
||||||
|
|
||||||
|
s3c_regclr(&CLKCON, 1<<17);
|
||||||
|
|
||||||
audiohw_init();
|
audiohw_init();
|
||||||
|
|
||||||
/* init GPIO */
|
/* init GPIO */
|
||||||
|
|
@ -183,10 +190,6 @@ void pcm_play_dma_start(const void *addr, size_t size)
|
||||||
/* stop any DMA in progress - idle IIS */
|
/* stop any DMA in progress - idle IIS */
|
||||||
play_stop_pcm();
|
play_stop_pcm();
|
||||||
|
|
||||||
/* slave, transmit mode, 16 bit samples - MCLK 384fs - use 16.9344Mhz -
|
|
||||||
BCLK 32fs */
|
|
||||||
IISMOD = (1<<9) | (1<<8) | (2<<6) | (1<<3) | (1<<2) | (1<<0);
|
|
||||||
|
|
||||||
/* connect DMA to the FIFO and enable the FIFO */
|
/* connect DMA to the FIFO and enable the FIFO */
|
||||||
IISFCON = (1<<15) | (1<<13);
|
IISFCON = (1<<15) | (1<<13);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue