diff options
author | Hans Verkuil | 2019-12-15 10:46:06 +0100 |
---|---|---|
committer | Mauro Carvalho Chehab | 2019-12-16 13:23:02 +0100 |
commit | 3ff4348ff5e42d66a8ab1195ccd6a21db108686c (patch) | |
tree | 09f73284d5e9461babf0cb2e36f1dec751c65463 /drivers/media/platform | |
parent | a67524c8bf7509fed179259cfe86a700b95b2324 (diff) |
media: vivid: set field to NONE for touch
The v4l2_buffer's 'field' value was never initialized in vivid for the
touch capture device, causing v4l2-compliance errors.
Set it to NONE.
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Diffstat (limited to 'drivers/media/platform')
-rw-r--r-- | drivers/media/platform/vivid/vivid-touch-cap.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/media/platform/vivid/vivid-touch-cap.c b/drivers/media/platform/vivid/vivid-touch-cap.c index fbd7bc2bde07..070df227e29b 100644 --- a/drivers/media/platform/vivid/vivid-touch-cap.c +++ b/drivers/media/platform/vivid/vivid-touch-cap.c @@ -59,6 +59,7 @@ static void touch_cap_buf_queue(struct vb2_buffer *vb) struct vivid_dev *dev = vb2_get_drv_priv(vb->vb2_queue); struct vivid_buffer *buf = container_of(vbuf, struct vivid_buffer, vb); + vbuf->field = V4L2_FIELD_NONE; spin_lock(&dev->slock); list_add_tail(&buf->list, &dev->touch_cap_active); spin_unlock(&dev->slock); |