forked from len0rd/rockbox
Corrected MAS version checks
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4989 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
87ab7cef11
commit
536dff1a27
2 changed files with 6 additions and 5 deletions
|
|
@ -935,8 +935,9 @@ void mp3_init(int volume, int bass, int treble, int balance, int loudness,
|
|||
init_playback();
|
||||
|
||||
mas_version_code = mas_readver();
|
||||
DEBUGF("MAS3587 derivate %d, version B%d\n",
|
||||
(mas_version_code & 0xff00) >> 8, mas_version_code & 0xff);
|
||||
DEBUGF("MAS3587 derivate %d, version %c%d\n",
|
||||
(mas_version_code & 0xf000) >> 12,
|
||||
'A' + ((mas_version_code & 0x0f00) >> 8), mas_version_code & 0xff);
|
||||
#endif
|
||||
|
||||
#ifdef HAVE_DAC3550A
|
||||
|
|
|
|||
|
|
@ -2107,7 +2107,7 @@ static void init_recording(void)
|
|||
} while(val);
|
||||
|
||||
/* Perform black magic as described by the data sheet */
|
||||
if((mas_version_code & 0xff) == 2)
|
||||
if((mas_version_code & 0x0fff) == 0x0102)
|
||||
{
|
||||
DEBUGF("Performing MAS black magic for B2 version\n");
|
||||
mas_writereg(0xa3, 0x98);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue