From ce3482cbf573261091855785d382e34cfbcce86f Mon Sep 17 00:00:00 2001 From: Linus Nielsen Feltzing Date: Fri, 4 Jun 2004 10:40:26 +0000 Subject: 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 --- firmware/mpeg.c | 22 +--------------------- 1 file changed, 1 insertion(+), 21 deletions(-) diff --git a/firmware/mpeg.c b/firmware/mpeg.c index 4a959b7c82..8b82ba044f 100644 --- a/firmware/mpeg.c +++ b/firmware/mpeg.c @@ -2242,20 +2242,10 @@ static void pause_recording(void) unsigned long val; pause_start_time = current_tick; - + /* Set the pause bit */ 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; } @@ -2269,16 +2259,6 @@ static void resume_recording(void) /* Clear the pause bit */ 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) -- cgit v1.2.3