]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
media: mt9m111: set initial frame size other than 0x0
authorAkinobu Mita <akinobu.mita@gmail.com>
Tue, 15 Jan 2019 14:05:41 +0000 (12:05 -0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 27 Apr 2019 07:30:24 +0000 (09:30 +0200)
commitefb2fec63a93da07789419e1edca93739906cc5f
tree986dde300b12b178c5f685522d9f36e6af2b5f2f
parentbecaaec31075659a9b7fe2e391e15f9d12c1a0ab
media: mt9m111: set initial frame size other than 0x0

[ Upstream commit 29856308137de1c21eda89411695f4fc6e9780ff ]

This driver sets initial frame width and height to 0x0, which is invalid.
So set it to selection rectangle bounds instead.

This is detected by v4l2-compliance detected.

Cc: Enrico Scholz <enrico.scholz@sigma-chemnitz.de>
Cc: Michael Grzeschik <m.grzeschik@pengutronix.de>
Cc: Marco Felsch <m.felsch@pengutronix.de>
Signed-off-by: Akinobu Mita <akinobu.mita@gmail.com>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/media/i2c/soc_camera/mt9m111.c