summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--firmware/mp3_playback.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/firmware/mp3_playback.c b/firmware/mp3_playback.c
index 5469053821..5df0560bdd 100644
--- a/firmware/mp3_playback.c
+++ b/firmware/mp3_playback.c
@@ -41,6 +41,9 @@ enum
41 MPEG_DECODER, 41 MPEG_DECODER,
42 MPEG_ENCODER 42 MPEG_ENCODER
43} mpeg_mode; 43} mpeg_mode;
44
45unsigned long shadow_7f1;
46
44#endif /* #ifdef HAVE_MAS3587F */ 47#endif /* #ifdef HAVE_MAS3587F */
45 48
46/**** globals ****/ 49/**** globals ****/
@@ -893,8 +896,8 @@ void mpeg_set_pitch(int pitch)
893 896
894 /* We must tell the MAS that the frequency has changed. 897 /* We must tell the MAS that the frequency has changed.
895 This will unfortunately cause a short silence. */ 898 This will unfortunately cause a short silence. */
896 val = 0x25; 899 val = shadow_7f1;
897 mas_writemem(MAS_BANK_D0,0x7f1,&val,1); 900 mas_writemem(MAS_BANK_D0,0x7f1,&shadow_7f1,1);
898} 901}
899#endif 902#endif
900 903