media: vivid: set num_in/outputs to 0 if not supported
authorHans Verkuil <hverkuil-cisco@xs4all.nl>
Mon, 17 Oct 2022 14:09:06 +0000 (15:09 +0100)
committerMauro Carvalho Chehab <mchehab@kernel.org>
Tue, 25 Oct 2022 15:43:34 +0000 (16:43 +0100)
commit69d78a80da4ef12faf2a6f9cfa2097ab4ac43983
tree0444f4c9e9550cda4b4b28b83892b6ff0be1b09b
parent957148e22870e4021082dddd12f8619a49d9bb50
media: vivid: set num_in/outputs to 0 if not supported

If node_types does not have video/vbi/meta inputs or outputs,
then set num_inputs/num_outputs to 0 instead of 1.

Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Fixes: 0c90f649d2f5 (media: vivid: add vivid_create_queue() helper)
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
drivers/media/test-drivers/vivid/vivid-core.c