1
0
Fork 0
forked from len0rd/rockbox

The MAS3587F data sheet was wrong about having to validate the pause bit setting by writing to d0:7f1. When I removed the validation, the MAS doesn't give us corrupt frames when pausing, or at the end of the recording.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4717 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Linus Nielsen Feltzing 2004-06-04 10:40:26 +00:00
parent 6a2d3e8681
commit ce3482cbf5

View file

@ -2247,16 +2247,6 @@ static void pause_recording(void)
shadow_7f9 |= 2;
mas_writemem(MAS_BANK_D0, 0x7f9, &shadow_7f9, 1);
/* Tell the MAS that something has changed */
mas_writemem(MAS_BANK_D0, 0x7f1, &shadow_7f1, 1);
DEBUGF("mas_writemem(MAS_BANK_D0, 0x7f1, %x)\n", shadow_7f1);
/* Wait until the DSP has accepted the settings */
do
{
mas_readmem(MAS_BANK_D0, 0x7f1, &val,1);
} while(val & 1);
paused = true;
}
@ -2270,16 +2260,6 @@ static void resume_recording(void)
shadow_7f9 &= ~2;
mas_writemem(MAS_BANK_D0, 0x7f9, &shadow_7f9, 1);
/* Tell the MAS that something has changed */
mas_writemem(MAS_BANK_D0, 0x7f1, &shadow_7f1, 1);
DEBUGF("mas_writemem(MAS_BANK_D0, 0x7f1, %x)\n", shadow_7f1);
/* Wait until the DSP has accepted the settings */
do
{
mas_readmem(MAS_BANK_D0, 0x7f1, &val,1);
} while(val & 1);
/* Compensate for the time we have been paused */
if(pause_start_time)
{