aboutsummaryrefslogtreecommitdiff
path: root/drivers/media/platform/vimc/vimc-sensor.c
diff options
context:
space:
mode:
authorSteve Longerbeam <slongerbeam@gmail.com>2019-02-07 18:42:55 -0500
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>2019-02-18 10:55:30 -0500
commit5964cbd8692252615370b77eb96764dd70c2f837 (patch)
treefc5699e3f4caa3ac5e595f1c27579b3cf2745b8c /drivers/media/platform/vimc/vimc-sensor.c
parent09714569969cfe5e5b51fa5b0d9224ce38744e76 (diff)
downloadlinux-5964cbd8692252615370b77eb96764dd70c2f837.tar.gz
linux-5964cbd8692252615370b77eb96764dd70c2f837.tar.bz2
linux-5964cbd8692252615370b77eb96764dd70c2f837.zip
media: imx: Set capture compose rectangle in capture_device_set_format
The capture compose rectangle was not getting updated when setting the source subdevice's source pad format. This causes the compose window to be zero (or not updated) at stream start unless the capture device format was set explicitly at the capture device node. Fix by moving the calculation of the capture compose rectangle to imx_media_mbus_fmt_to_pix_fmt(), and pass the rectangle to imx_media_capture_device_set_format(). Fixes: 439d8186fb23 ("media: imx: add capture compose rectangle") Signed-off-by: Steve Longerbeam <slongerbeam@gmail.com> Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl> Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
Diffstat (limited to 'drivers/media/platform/vimc/vimc-sensor.c')
0 files changed, 0 insertions, 0 deletions