MLK-22401: mxc-jpeg: No image shown on the screen if set resolution to 333x333
Negotiate the resolution during try_fmt/s_fmt ioctls by aligning down,
according to the format restrictions. For the height, loosen up the
restriction to multiple of 8, in order to support NV12 1080p, even if
normally the restriction for NV12 is multiple of 16.
Use v4l_bound_align_image instead of mxc_jpeg_bound_align_image, and
remove mxc_jpeg_bound_align_image, as not needed any more.
Signed-off-by: Mirela Rabulea <mirela.rabulea@nxp.com>
Reviewed-by: Robert Chiras <robert.chiras@nxp.com>