1
0
Fork 0
forked from len0rd/rockbox

mpeg_set_pitch now uses the 7f1 shadow register

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4734 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Linus Nielsen Feltzing 2004-06-11 10:16:18 +00:00
parent 44e76cfa86
commit 846e8e91f2

View file

@ -41,6 +41,9 @@ enum
MPEG_DECODER,
MPEG_ENCODER
} mpeg_mode;
unsigned long shadow_7f1;
#endif /* #ifdef HAVE_MAS3587F */
/**** globals ****/
@ -893,8 +896,8 @@ void mpeg_set_pitch(int pitch)
/* We must tell the MAS that the frequency has changed.
This will unfortunately cause a short silence. */
val = 0x25;
mas_writemem(MAS_BANK_D0,0x7f1,&val,1);
val = shadow_7f1;
mas_writemem(MAS_BANK_D0,0x7f1,&shadow_7f1,1);
}
#endif