summaryrefslogtreecommitdiff
path: root/fs/cachefiles
diff options
context:
space:
mode:
authorTomi Valkeinen <tomi.valkeinen@ti.com>2011-11-01 12:50:45 +0400
committerTomi Valkeinen <tomi.valkeinen@ti.com>2011-11-18 12:09:17 +0400
commitf95cb5ebd834117ff4829a460656095a0ae63921 (patch)
tree62192c82e7c691f0732df7706027e8c7c8256c7f /fs/cachefiles
parent1c6bc899723ca8c0d58044c3661f13ac2369e55f (diff)
downloadlinux-f95cb5ebd834117ff4829a460656095a0ae63921.tar.xz
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>
Diffstat (limited to 'fs/cachefiles')
0 files changed, 0 insertions, 0 deletions