diff options
author | Linus Nielsen Feltzing <linus@haxx.se> | 2004-06-04 10:40:26 +0000 |
---|---|---|
committer | Linus Nielsen Feltzing <linus@haxx.se> | 2004-06-04 10:40:26 +0000 |
commit | ce3482cbf573261091855785d382e34cfbcce86f (patch) | |
tree | ac39fc04985ff1dc41ba9576387e90669d5e8a00 /firmware | |
parent | 6a2d3e8681c9800a1b392c4f50ee5f655b9ee376 (diff) | |
download | rockbox-ce3482cbf573261091855785d382e34cfbcce86f.tar.gz rockbox-ce3482cbf573261091855785d382e34cfbcce86f.zip |
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
Diffstat (limited to 'firmware')
-rw-r--r-- | firmware/mpeg.c | 22 |
1 files changed, 1 insertions, 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) |