]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitf9049866805694014ffa37f54143e7162c98b944
tree0444f4c9e9550cda4b4b28b83892b6ff0be1b09b
parent8ce1b99b1a15b155c3260bf098ed9ef526e36c35
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: e98ba5dda478 (media: vivid: add vivid_create_queue() helper)
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
drivers/media/test-drivers/vivid/vivid-core.c