diff options
Diffstat (limited to 'drivers/gpu/drm/imx/ipuv3-plane.c')
-rw-r--r-- | drivers/gpu/drm/imx/ipuv3-plane.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/drivers/gpu/drm/imx/ipuv3-plane.c b/drivers/gpu/drm/imx/ipuv3-plane.c index 6987e16fe99b..878a643d72e4 100644 --- a/drivers/gpu/drm/imx/ipuv3-plane.c +++ b/drivers/gpu/drm/imx/ipuv3-plane.c | |||
@@ -99,7 +99,7 @@ int ipu_plane_mode_set(struct ipu_plane *ipu_plane, struct drm_crtc *crtc, | |||
99 | struct drm_framebuffer *fb, int crtc_x, int crtc_y, | 99 | struct drm_framebuffer *fb, int crtc_x, int crtc_y, |
100 | unsigned int crtc_w, unsigned int crtc_h, | 100 | unsigned int crtc_w, unsigned int crtc_h, |
101 | uint32_t src_x, uint32_t src_y, | 101 | uint32_t src_x, uint32_t src_y, |
102 | uint32_t src_w, uint32_t src_h) | 102 | uint32_t src_w, uint32_t src_h, bool interlaced) |
103 | { | 103 | { |
104 | struct device *dev = ipu_plane->base.dev->dev; | 104 | struct device *dev = ipu_plane->base.dev->dev; |
105 | int ret; | 105 | int ret; |
@@ -213,6 +213,8 @@ int ipu_plane_mode_set(struct ipu_plane *ipu_plane, struct drm_crtc *crtc, | |||
213 | ret = ipu_plane_set_base(ipu_plane, fb, src_x, src_y); | 213 | ret = ipu_plane_set_base(ipu_plane, fb, src_x, src_y); |
214 | if (ret < 0) | 214 | if (ret < 0) |
215 | return ret; | 215 | return ret; |
216 | if (interlaced) | ||
217 | ipu_cpmem_interlaced_scan(ipu_plane->ipu_ch, fb->pitches[0]); | ||
216 | 218 | ||
217 | ipu_plane->w = src_w; | 219 | ipu_plane->w = src_w; |
218 | ipu_plane->h = src_h; | 220 | ipu_plane->h = src_h; |
@@ -312,7 +314,8 @@ static int ipu_update_plane(struct drm_plane *plane, struct drm_crtc *crtc, | |||
312 | 314 | ||
313 | ret = ipu_plane_mode_set(ipu_plane, crtc, &crtc->hwmode, fb, | 315 | ret = ipu_plane_mode_set(ipu_plane, crtc, &crtc->hwmode, fb, |
314 | crtc_x, crtc_y, crtc_w, crtc_h, | 316 | crtc_x, crtc_y, crtc_w, crtc_h, |
315 | src_x >> 16, src_y >> 16, src_w >> 16, src_h >> 16); | 317 | src_x >> 16, src_y >> 16, src_w >> 16, src_h >> 16, |
318 | false); | ||
316 | if (ret < 0) { | 319 | if (ret < 0) { |
317 | ipu_plane_put_resources(ipu_plane); | 320 | ipu_plane_put_resources(ipu_plane); |
318 | return ret; | 321 | return ret; |