diff options
| author | Mirela Rabulea <[email protected]> | 2021-11-01 21:52:51 +0200 |
|---|---|---|
| committer | Sakari Ailus <[email protected]> | 2022-02-23 12:21:39 +0200 |
| commit | e738f5dd67eb8098d75345908a5e73782d0569a5 (patch) | |
| tree | b3ae1e8cbc23cad7bd3544981ff84638ab833c7c /tools/perf/scripts/python/export-to-postgresql.py | |
| parent | 2b891d3980f6c255459d0e1c29ce2152ec7cf678 (diff) | |
media: ov5640: Fix set format, v4l2_mbus_pixelcode not updated
In ov5640_set_fmt, pending_fmt_change will always be false, because the
sensor format is saved before comparing it with the previous format:
fmt = &sensor->fmt;...
*fmt = *mbus_fmt;...
if (mbus_fmt->code != sensor->fmt.code)
sensor->pending_fmt_change = true;
This causes the sensor to capture with the previous pixelcode.
Also, changes might happen even for V4L2_SUBDEV_FORMAT_TRY, so fix that.
Basically, revert back to the state before
commit 071154499193 ("media: ov5640: Fix set format regression")
as it was more clear, and then update format even when pixelcode does
not change, as resolution might change.
Fixes: 071154499193 ("media: ov5640: Fix set format regression")
Fixes: 6949d864776e ("media: ov5640: do not change mode if format or frame interval is unchanged")
Fixes: fb98e29ff1ea5 ("media: ov5640: fix mode change regression")
Signed-off-by: Mirela Rabulea <[email protected]>
Reviewed-by: Jacopo Mondi <[email protected]>
Acked-by: Hugues Fruchet <[email protected]>
Tested-by: Hugues Fruchet <[email protected]>
Signed-off-by: Sakari Ailus <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions