Skip to content
Commit a5d2df01 authored by John Cox's avatar John Cox Committed by Phil Elwell
Browse files

media: rpivid: Avoid returning EINVAL to a G_FMT ioctl



V4L2 spec says that G/S/TRY_FMT IOCTLs should never return errors for
anything other than wrong buffer types. Improve the capture format
function such that this is so and unsupported values get converted
to supported ones properly.

Signed-off-by: default avatarJohn Cox <jc@kynesim.co.uk>
parent 3e1698ed
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment