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:
parent
44e76cfa86
commit
846e8e91f2
1 changed files with 5 additions and 2 deletions
|
|
@ -41,6 +41,9 @@ enum
|
||||||
MPEG_DECODER,
|
MPEG_DECODER,
|
||||||
MPEG_ENCODER
|
MPEG_ENCODER
|
||||||
} mpeg_mode;
|
} mpeg_mode;
|
||||||
|
|
||||||
|
unsigned long shadow_7f1;
|
||||||
|
|
||||||
#endif /* #ifdef HAVE_MAS3587F */
|
#endif /* #ifdef HAVE_MAS3587F */
|
||||||
|
|
||||||
/**** globals ****/
|
/**** globals ****/
|
||||||
|
|
@ -893,8 +896,8 @@ void mpeg_set_pitch(int pitch)
|
||||||
|
|
||||||
/* We must tell the MAS that the frequency has changed.
|
/* We must tell the MAS that the frequency has changed.
|
||||||
This will unfortunately cause a short silence. */
|
This will unfortunately cause a short silence. */
|
||||||
val = 0x25;
|
val = shadow_7f1;
|
||||||
mas_writemem(MAS_BANK_D0,0x7f1,&val,1);
|
mas_writemem(MAS_BANK_D0,0x7f1,&shadow_7f1,1);
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue