summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
Diffstat (limited to 'apps')
-rw-r--r--apps/recorder/resize.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/apps/recorder/resize.c b/apps/recorder/resize.c
index 49b8980..0f227f8 100644
--- a/apps/recorder/resize.c
+++ b/apps/recorder/resize.c
@@ -921,6 +921,7 @@ int resize_on_load(struct bitmap *bm, bool dither, struct dim *src,
}
#endif
#ifdef CPU_COLDFIRE
+ unsigned old_macsr = coldfire_get_macsr();
coldfire_set_macsr(EMAC_UNSIGNED);
#endif
#ifdef HAVE_UPSCALER
@@ -951,6 +952,11 @@ int resize_on_load(struct bitmap *bm, bool dither, struct dim *src,
ret = scale_v_linear(rset, &ctx);
}
#endif
+#ifdef CPU_COLDFIRE
+ /* Restore emac status; other modules like tone control filter
+ * calculation may rely on it. */
+ coldfire_set_macsr(old_macsr);
+#endif
#ifdef HAVE_ADJUSTABLE_CPU_FREQ
cpu_boost(false);
#endif