summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorSvyatoslav Ryhel <clamor95@gmail.com>2026-03-03 11:42:25 +0300
committerHans Verkuil <hverkuil+cisco@kernel.org>2026-03-19 10:18:35 +0300
commit8a50111951356d1975f63dcf3dd2f91edacfadf1 (patch)
tree7a11126784311bea0571ae5fb2afc388ac3929f5 /include
parent410ff94513353f737058bb0f5ffba8dae14f1a43 (diff)
downloadlinux-8a50111951356d1975f63dcf3dd2f91edacfadf1.tar.xz
staging: media: tegra-video: vi: adjust get_selection operation check
During __tegra_channel_try_format, the VI (Video Input) checks if the camera sensor driver provides a get_selection operation. If this operation is unavailable, the crop is set to 0. However, if the operation is available but returns an error, the VI currently fails. While this works for simple cameras with a single pad, it creates a corner case for sensors like the mt9m114. This sensor provides the same operation set for both IFP pads, but returns an error when get_selection is called on an unsupported pad (such as the source pad), causing the aforementioned behavior. To resolve this, if get_selection is implemented but returns an error, try_crop is now set to 0 — treating it as if the operation was not implemented — instead of returning a failure. Tested-by: Luca Ceresoli <luca.ceresoli@bootlin.com> # tegra20, parallel camera Signed-off-by: Svyatoslav Ryhel <clamor95@gmail.com> Signed-off-by: Hans Verkuil <hverkuil+cisco@kernel.org>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions