summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--firmware/mpeg.c22
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)
2242 unsigned long val; 2242 unsigned long val;
2243 2243
2244 pause_start_time = current_tick; 2244 pause_start_time = current_tick;
2245 2245
2246 /* Set the pause bit */ 2246 /* Set the pause bit */
2247 shadow_7f9 |= 2; 2247 shadow_7f9 |= 2;
2248 mas_writemem(MAS_BANK_D0, 0x7f9, &shadow_7f9, 1); 2248 mas_writemem(MAS_BANK_D0, 0x7f9, &shadow_7f9, 1);
2249
2250 /* Tell the MAS that something has changed */
2251 mas_writemem(MAS_BANK_D0, 0x7f1, &shadow_7f1, 1);
2252 DEBUGF("mas_writemem(MAS_BANK_D0, 0x7f1, %x)\n", shadow_7f1);
2253
2254 /* Wait until the DSP has accepted the settings */
2255 do
2256 {
2257 mas_readmem(MAS_BANK_D0, 0x7f1, &val,1);
2258 } while(val & 1);
2259 2249
2260 paused = true; 2250 paused = true;
2261} 2251}
@@ -2269,16 +2259,6 @@ static void resume_recording(void)
2269 /* Clear the pause bit */ 2259 /* Clear the pause bit */
2270 shadow_7f9 &= ~2; 2260 shadow_7f9 &= ~2;
2271 mas_writemem(MAS_BANK_D0, 0x7f9, &shadow_7f9, 1); 2261 mas_writemem(MAS_BANK_D0, 0x7f9, &shadow_7f9, 1);
2272
2273 /* Tell the MAS that something has changed */
2274 mas_writemem(MAS_BANK_D0, 0x7f1, &shadow_7f1, 1);
2275 DEBUGF("mas_writemem(MAS_BANK_D0, 0x7f1, %x)\n", shadow_7f1);
2276
2277 /* Wait until the DSP has accepted the settings */
2278 do
2279 {
2280 mas_readmem(MAS_BANK_D0, 0x7f1, &val,1);
2281 } while(val & 1);
2282 2262
2283 /* Compensate for the time we have been paused */ 2263 /* Compensate for the time we have been paused */
2284 if(pause_start_time) 2264 if(pause_start_time)