Commit 3ff4348f authored by Hans Verkuil's avatar Hans Verkuil Committed by Mauro Carvalho Chehab

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: default avatarHans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab+huawei@kernel.org>
parent a67524c8
...@@ -59,6 +59,7 @@ static void touch_cap_buf_queue(struct vb2_buffer *vb) ...@@ -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_dev *dev = vb2_get_drv_priv(vb->vb2_queue);
struct vivid_buffer *buf = container_of(vbuf, struct vivid_buffer, vb); struct vivid_buffer *buf = container_of(vbuf, struct vivid_buffer, vb);
vbuf->field = V4L2_FIELD_NONE;
spin_lock(&dev->slock); spin_lock(&dev->slock);
list_add_tail(&buf->list, &dev->touch_cap_active); list_add_tail(&buf->list, &dev->touch_cap_active);
spin_unlock(&dev->slock); spin_unlock(&dev->slock);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment