mirror of
https://github.com/torvalds/linux.git
synced 2026-05-12 16:18:45 +02:00
media: renesas: vsp1: histo: Fix size enumeration
The histogram supports size enumeration on the sink pad only, as the source pad outputs a metadata format. The correct error code when enumeration is not supported is -ENOTTY, not -EINVAL. Fix it. Tested-by: Lad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com> # HiHope RZ/G2M Link: https://patch.msgid.link/20260318235907.831556-11-laurent.pinchart+renesas@ideasonboard.com Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com> Signed-off-by: Hans Verkuil <hverkuil+cisco@kernel.org>
This commit is contained in:
parent
a7985d28b3
commit
1b5db4e308
|
|
@ -183,7 +183,7 @@ static int histo_enum_frame_size(struct v4l2_subdev *subdev,
|
|||
struct v4l2_subdev_frame_size_enum *fse)
|
||||
{
|
||||
if (fse->pad != HISTO_PAD_SINK)
|
||||
return -EINVAL;
|
||||
return -ENOTTY;
|
||||
|
||||
return vsp1_subdev_enum_frame_size(subdev, sd_state, fse);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user