Skip to content
Commit 81f57258 authored by Josuah Demangeon's avatar Josuah Demangeon Committed by Mahesh Mahadevan
Browse files

drivers: video: gc2145: check format compatibility before applying



While applying the format, the pixel format and drv_data->fmt were set
immediately, and the resolution was set only if it had a matching
entry on the "caps".

This commit makes sure the requested format matches the caps before
applying the format as well as drv_data->fmt. This does not guards
against partial failure (i.e. only pixelformat set and not
resolution).

Signed-off-by: default avatarJosuah Demangeon <me@josuah.net>
parent 61c53460
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment