forked from len0rd/rockbox
The player also has MAS poweron reset, handle it.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5456 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
67b17e118f
commit
dbd11c9b42
2 changed files with 15 additions and 4 deletions
|
@ -266,11 +266,18 @@ static int mas_devread(unsigned long *dest, int len)
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
#if (CONFIG_HWCODEC == MAS3587F) || (CONFIG_HWCODEC == MAS3539F)
|
|
||||||
void mas_reset(void)
|
void mas_reset(void)
|
||||||
{
|
{
|
||||||
or_b(0x01, &PAIORH);
|
or_b(0x01, &PAIORH);
|
||||||
|
|
||||||
|
#if CONFIG_HWCODEC == MAS3507D
|
||||||
|
or_b(0x01, &PAIORH);
|
||||||
|
and_b(~0x01, &PADRH);
|
||||||
|
sleep(HZ/100);
|
||||||
|
or_b(0x01, &PADRH);
|
||||||
|
sleep(HZ/5);
|
||||||
|
|
||||||
|
#elif (CONFIG_HWCODEC == MAS3587F) || (CONFIG_HWCODEC == MAS3539F)
|
||||||
if(old_recorder)
|
if(old_recorder)
|
||||||
{
|
{
|
||||||
/* Older recorder models don't invert the POR signal */
|
/* Older recorder models don't invert the POR signal */
|
||||||
|
@ -285,9 +292,11 @@ void mas_reset(void)
|
||||||
sleep(HZ/100);
|
sleep(HZ/100);
|
||||||
or_b(0x01, &PADRH);
|
or_b(0x01, &PADRH);
|
||||||
sleep(HZ/5);
|
sleep(HZ/5);
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if (CONFIG_HWCODEC == MAS3587F) || (CONFIG_HWCODEC == MAS3539F)
|
||||||
int mas_direct_config_read(unsigned char reg)
|
int mas_direct_config_read(unsigned char reg)
|
||||||
{
|
{
|
||||||
int ret = 0;
|
int ret = 0;
|
||||||
|
|
|
@ -938,7 +938,9 @@ void mp3_init(int volume, int bass, int treble, int balance, int loudness,
|
||||||
or_b(0x01, &PBIORH); /* output for PB8 */
|
or_b(0x01, &PBIORH); /* output for PB8 */
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if CONFIG_HWCODEC == MAS3587F
|
#if CONFIG_HWCODEC == MAS3507D
|
||||||
|
mas_reset();
|
||||||
|
#elif CONFIG_HWCODEC == MAS3587F
|
||||||
or_b(0x08, &PAIORH); /* output for /PR */
|
or_b(0x08, &PAIORH); /* output for /PR */
|
||||||
init_playback();
|
init_playback();
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue