Coldfire: Fix alpha bitmap drawing from messing up the emac status register.

It failed to restore macsr to the expected default (FRAC/SAT) which caused DSP
functions like tone control filter calculation to fail (resulting in noise).
The FFT plugin was also affected.


git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31589 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Michael Sevakis 2012-01-05 23:00:14 +00:00
parent c6dcec4e0d
commit 302937e586
2 changed files with 16 additions and 1 deletions

View file

@ -451,7 +451,9 @@ void lcd_blit_yuv(unsigned char * const src[3],
vsrc = src[2] + (src_y * stride >> 2) + (src_x >> 1);
ysrc_max = ysrc + height * stride;
unsigned long macsr = coldfire_get_macsr();
coldfire_set_macsr(EMAC_SATURATE);
do
{
lcd_write_reg(R_HORIZ_RAM_ADDR_POS, ((y + y_offset + 1) << 8) | (y + y_offset));
@ -470,6 +472,8 @@ void lcd_blit_yuv(unsigned char * const src[3],
vsrc += stride >> 1;
}
while (ysrc < ysrc_max);
coldfire_set_macsr(macsr);
} /* lcd_yuv_blit */