Commit 64ef5941 authored by Akinobu Mita's avatar Akinobu Mita Committed by Greg Kroah-Hartman

media: mt9m111: set initial frame size other than 0x0

[ Upstream commit 29856308 ]

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 <>
Cc: Michael Grzeschik <>
Cc: Marco Felsch <>
Signed-off-by: default avatarAkinobu Mita <>
Signed-off-by: default avatarSakari Ailus <>
Signed-off-by: default avatarMauro Carvalho Chehab <>
Signed-off-by: default avatarSasha Levin <>
parent 9acd16ab
......@@ -1273,6 +1273,8 @@ static int mt9m111_probe(struct i2c_client *client,
mt9m111-> = MT9M111_MIN_DARK_ROWS;
mt9m111->rect.width = MT9M111_MAX_WIDTH;
mt9m111->rect.height = MT9M111_MAX_HEIGHT;
mt9m111->width = mt9m111->rect.width;
mt9m111->height = mt9m111->rect.height;
mt9m111->fmt = &mt9m111_colour_fmts[0];
mt9m111->lastpage = -1;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment