]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
media: mt9m114: Add and use mt9m114_ifp_get_border() helper function
authorHans de Goede <johannes.goede@oss.qualcomm.com>
Tue, 30 Dec 2025 17:03:05 +0000 (18:03 +0100)
committerHans Verkuil <hverkuil+cisco@kernel.org>
Wed, 14 Jan 2026 22:33:04 +0000 (23:33 +0100)
commit633deb131082f41a3467f8a77abb9c95fb390008
tree32c243c5daf4c7b0cd0f1d5423620cd7c4129332
parentd6b6a23bb487958e7e1540c0cb6aaccf82f136c9
media: mt9m114: Add and use mt9m114_ifp_get_border() helper function

Normally the IFP removes a 4 pixel border all around its sink format
size for demosaicing. But in RAW10 mode it does not do this.

Add a new mt9m114_ifp_get_border() helper function to get the border size
(4 or 0) and use this where applicable instead of hardcoding a border
of 4 pixels everywhere.

Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Hans de Goede <johannes.goede@oss.qualcomm.com>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Hans Verkuil <hverkuil+cisco@kernel.org>
drivers/media/i2c/mt9m114.c