linux_dsm_epyc7002/drivers/media/platform/vsp1
Laurent Pinchart 3d7899c21f media: v4l: vsp1: Reset the crop and compose rectangles in the set_fmt helper
To make vsp1_subdev_set_pad_format() usable by entities that support
selection rectangles, we need to reset the crop and compose rectangles
when setting the format on the sink pad. Do so and replace the custom
set_fmt implementation of the histogram code by a call to
vsp1_subdev_set_pad_format().

Resetting the crop and compose rectangles for entities that don't
support crop and compose has no adverse effect as the rectangles are
ignored anyway.

Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Reviewed-by: Jacopo Mondi <jacopo@jmondi.org>
Reviewed-by: Kieran Bingham <kieran.bingham+renesas@ideasonboard.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
2018-05-17 06:22:08 -04:00
..
Makefile media: v4l: vsp1: Rename BRU to BRx 2018-05-04 08:06:29 -04:00
vsp1_brx.c media: v4l: vsp1: Use SPDX license headers 2018-05-17 06:22:08 -04:00
vsp1_brx.h media: v4l: vsp1: Use SPDX license headers 2018-05-17 06:22:08 -04:00
vsp1_clu.c media: v4l: vsp1: Share the CLU, LIF and LUT set_fmt pad operation code 2018-05-17 06:22:08 -04:00
vsp1_clu.h media: v4l: vsp1: Use SPDX license headers 2018-05-17 06:22:08 -04:00
vsp1_dl.c media: v4l: vsp1: Use SPDX license headers 2018-05-17 06:22:08 -04:00
vsp1_dl.h media: v4l: vsp1: Use SPDX license headers 2018-05-17 06:22:08 -04:00
vsp1_drm.c media: v4l: vsp1: Use SPDX license headers 2018-05-17 06:22:08 -04:00
vsp1_drm.h media: v4l: vsp1: Use SPDX license headers 2018-05-17 06:22:08 -04:00
vsp1_drv.c media: v4l: vsp1: Use SPDX license headers 2018-05-17 06:22:08 -04:00
vsp1_entity.c media: v4l: vsp1: Reset the crop and compose rectangles in the set_fmt helper 2018-05-17 06:22:08 -04:00
vsp1_entity.h media: v4l: vsp1: Share the CLU, LIF and LUT set_fmt pad operation code 2018-05-17 06:22:08 -04:00
vsp1_hgo.c media: v4l: vsp1: Use SPDX license headers 2018-05-17 06:22:08 -04:00
vsp1_hgo.h media: v4l: vsp1: Use SPDX license headers 2018-05-17 06:22:08 -04:00
vsp1_hgt.c media: v4l: vsp1: Use SPDX license headers 2018-05-17 06:22:08 -04:00
vsp1_hgt.h media: v4l: vsp1: Use SPDX license headers 2018-05-17 06:22:08 -04:00
vsp1_histo.c media: v4l: vsp1: Reset the crop and compose rectangles in the set_fmt helper 2018-05-17 06:22:08 -04:00
vsp1_histo.h media: v4l: vsp1: Use SPDX license headers 2018-05-17 06:22:08 -04:00
vsp1_hsit.c media: v4l: vsp1: Use SPDX license headers 2018-05-17 06:22:08 -04:00
vsp1_hsit.h media: v4l: vsp1: Use SPDX license headers 2018-05-17 06:22:08 -04:00
vsp1_lif.c media: v4l: vsp1: Share the CLU, LIF and LUT set_fmt pad operation code 2018-05-17 06:22:08 -04:00
vsp1_lif.h media: v4l: vsp1: Use SPDX license headers 2018-05-17 06:22:08 -04:00
vsp1_lut.c media: v4l: vsp1: Share the CLU, LIF and LUT set_fmt pad operation code 2018-05-17 06:22:08 -04:00
vsp1_lut.h media: v4l: vsp1: Use SPDX license headers 2018-05-17 06:22:08 -04:00
vsp1_pipe.c media: v4l: vsp1: Use SPDX license headers 2018-05-17 06:22:08 -04:00
vsp1_pipe.h media: v4l: vsp1: Use SPDX license headers 2018-05-17 06:22:08 -04:00
vsp1_regs.h media: v4l: vsp1: Use SPDX license headers 2018-05-17 06:22:08 -04:00
vsp1_rpf.c media: v4l: vsp1: Use SPDX license headers 2018-05-17 06:22:08 -04:00
vsp1_rwpf.c media: v4l: vsp1: Use SPDX license headers 2018-05-17 06:22:08 -04:00
vsp1_rwpf.h media: v4l: vsp1: Use SPDX license headers 2018-05-17 06:22:08 -04:00
vsp1_sru.c media: v4l: vsp1: Use SPDX license headers 2018-05-17 06:22:08 -04:00
vsp1_sru.h media: v4l: vsp1: Use SPDX license headers 2018-05-17 06:22:08 -04:00
vsp1_uds.c media: v4l: vsp1: Use SPDX license headers 2018-05-17 06:22:08 -04:00
vsp1_uds.h media: v4l: vsp1: Use SPDX license headers 2018-05-17 06:22:08 -04:00
vsp1_video.c media: v4l: vsp1: Use SPDX license headers 2018-05-17 06:22:08 -04:00
vsp1_video.h media: v4l: vsp1: Use SPDX license headers 2018-05-17 06:22:08 -04:00
vsp1_wpf.c media: v4l: vsp1: Use SPDX license headers 2018-05-17 06:22:08 -04:00
vsp1.h media: v4l: vsp1: Use SPDX license headers 2018-05-17 06:22:08 -04:00