media: staging: media: zoran: fix various V4L2 compliance errors
authorHans Verkuil <hverkuil-cisco@xs4all.nl>
Tue, 14 Dec 2021 16:16:33 +0000 (17:16 +0100)
committerMauro Carvalho Chehab <mchehab@kernel.org>
Sun, 23 Jan 2022 20:18:40 +0000 (21:18 +0100)
commit914941827aad5ecddf9bf3a6dee67fbec1af1fff
tree0962d9a217680890b9ea46b7bd4b3aaaba449a81
parente3b86f4e558cea9eed71d894df2f19b10d60a207
media: staging: media: zoran: fix various V4L2 compliance errors

This fixes several issues found with 'v4l2-compliance -s':

1) read()/write() is supported, but not reported in the capabilities
2) S_STD(G_STD()) failed: setting the same standard should just return 0.
3) G_PARM failed to set readbuffers.
4) different field values in the format vs. what v4l2_buffer reported.
5) zero the sequence number when starting streaming.
6) drop VB_USERPTR: makes no sense with dma_contig streaming.

Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Corentin Labbe <clabbe@baylibre.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
drivers/staging/media/zoran/zoran_card.c
drivers/staging/media/zoran/zoran_driver.c