Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

OMAPDSS: DISPC: scaler debug print

Improve the DISPC debug print for scaling.

Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>

+16 -2
+16 -2
drivers/video/fbdev/omap2/dss/dispc.c
··· 2418 2418 return 0; 2419 2419 } 2420 2420 2421 + #define DIV_FRAC(dividend, divisor) \ 2422 + ((dividend) * 100 / (divisor) - ((dividend) / (divisor) * 100)) 2423 + 2421 2424 static int dispc_ovl_calc_scaling(unsigned long pclk, unsigned long lclk, 2422 2425 enum omap_overlay_caps caps, 2423 2426 const struct omap_video_timings *mgr_timings, ··· 2480 2477 if (ret) 2481 2478 return ret; 2482 2479 2483 - DSSDBG("required core clk rate = %lu Hz\n", core_clk); 2484 - DSSDBG("current core clk rate = %lu Hz\n", dispc_core_clk_rate()); 2480 + DSSDBG("%dx%d -> %dx%d (%d.%02d x %d.%02d), decim %dx%d %dx%d (%d.%02d x %d.%02d), taps %d, req clk %lu, cur clk %lu\n", 2481 + width, height, 2482 + out_width, out_height, 2483 + out_width / width, DIV_FRAC(out_width, width), 2484 + out_height / height, DIV_FRAC(out_height, height), 2485 + 2486 + decim_x, decim_y, 2487 + width / decim_x, height / decim_y, 2488 + out_width / (width / decim_x), DIV_FRAC(out_width, width / decim_x), 2489 + out_height / (height / decim_y), DIV_FRAC(out_height, height / decim_y), 2490 + 2491 + *five_taps ? 5 : 3, 2492 + core_clk, dispc_core_clk_rate()); 2485 2493 2486 2494 if (!core_clk || core_clk > dispc_core_clk_rate()) { 2487 2495 DSSERR("failed to set up scaling, "