[18/20] media: adv7604: Always query_dv_timings in adv76xx_fill_format
Commit Message
Make sure we're always reporting the current format of the input.
Fixes start of day bugs.
Signed-off-by: Rob Taylor <rob.taylor@codethink.co.uk>
Signed-off-by: William Towle <william.towle@codethink.co.uk>
---
drivers/media/i2c/adv7604.c | 4 ++++
1 file changed, 4 insertions(+)
@@ -1787,8 +1787,12 @@ static int adv76xx_enum_mbus_code(struct v4l2_subdev *sd,
static void adv76xx_fill_format(struct adv76xx_state *state,
struct v4l2_mbus_framefmt *format)
{
+ struct v4l2_subdev *sd = &state->sd;
+
memset(format, 0, sizeof(*format));
+ v4l2_subdev_call(sd, video, query_dv_timings, &state->timings);
+
format->width = state->timings.bt.width;
format->height = state->timings.bt.height;