1
linux/drivers/video/omap2/dss
Tomi Valkeinen f95cb5ebd8 OMAPDSS: DISPC: skip scaling calculations when not scaling
Current code calculates scaling factors for video overlays even when the
overlays are not scaled. Change the code to skip calculations when not
scaling.

This optimizes the code a bit, but also fixes a problem when configuring
an overlay for a disabled display: if the display is disabled we don't
necessarily know the pixel clock used when the display is enabled, and
in some cases (like HDMI) the pixel clock is set to zero until a proper
video mode is set later. A wrong pixel clock will mess up the
scaling calculations, causing an error like:

omapdss DISPC error: failed to set up scaling, required fclk rate = 0
Hz, current fclk rate = 170666666 Hz

A proper fix would be to check later whether the clocks are enough for the
scaling, at the point when the overlay or display is actually enabled,
but this patch removes the problem for now.

Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
2011-11-18 10:09:17 +02:00
..
core.c OMAPDSS: HDMI: Add support to dump registers through debugfs 2011-09-30 16:17:32 +03:00
dispc.c OMAPDSS: DISPC: skip scaling calculations when not scaling 2011-11-18 10:09:17 +02:00
dispc.h OMAPDSS: DISPC: VIDEO3 pipeline support 2011-10-03 16:51:54 +03:00
display.c OMAP: DSS2: Create an enum for DSI pixel formats 2011-09-30 16:16:29 +03:00
dpi.c video: Add export.h for THIS_MODULE/EXPORT_SYMBOL to drivers/video 2011-10-31 19:31:33 -04:00
dsi.c video: Add module.h to drivers/video files who really use it. 2011-10-31 19:31:33 -04:00
dss_features.c OMAPDSS: DISPC: VIDEO3 pipeline support 2011-10-03 16:51:54 +03:00
dss_features.h OMAPDSS: DISPC: VIDEO3 pipeline support 2011-10-03 16:51:54 +03:00
dss.c video: Add export.h for THIS_MODULE/EXPORT_SYMBOL to drivers/video 2011-10-31 19:31:33 -04:00
dss.h OMAPDSS/OMAP_VOUT: Fix incorrect OMAP3-alpha compatibility setting 2011-10-03 16:51:54 +03:00
hdmi_panel.c OMAP: DSS2: HDMI: implement detect() 2011-09-30 16:16:47 +03:00
hdmi.c OMAPDSS: HDMI: fix returned HDMI pixel clock 2011-11-18 10:09:16 +02:00
Kconfig OMAP: DSS2: Remove "EXPERIMENTAL" from Kconfig 2011-09-30 16:16:19 +03:00
Makefile OMAP4: DSS2: Rename hdmi_omap4_panel.c to hdmi_panel.c 2011-09-30 16:16:35 +03:00
manager.c OMAPDSS/OMAP_VOUT: Fix incorrect OMAP3-alpha compatibility setting 2011-10-03 16:51:54 +03:00
overlay.c OMAPDSS: DISPC: zorder support for DSS overlays 2011-10-03 16:51:55 +03:00
rfbi.c video: Add export.h for THIS_MODULE/EXPORT_SYMBOL to drivers/video 2011-10-31 19:31:33 -04:00
sdi.c video: Add export.h for THIS_MODULE/EXPORT_SYMBOL to drivers/video 2011-10-31 19:31:33 -04:00
ti_hdmi_4xxx_ip.c OMAPDSS: HDMI: Add support to dump registers through debugfs 2011-09-30 16:17:32 +03:00
ti_hdmi_4xxx_ip.h OMAPDSS: HDMI: Add missing register definitions 2011-09-30 16:17:31 +03:00
ti_hdmi.h OMAPDSS: HDMI: Add support to dump registers through debugfs 2011-09-30 16:17:32 +03:00
venc.c OMAPDSS: DISPC: Get correct pixel clock for TV manager 2011-09-30 16:17:25 +03:00