Skip to content

Commit

Permalink
media: vivid: set field to NONE for touch
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Hans Verkuil authored and Mauro Carvalho Chehab committed Dec 16, 2019
1 parent a67524c commit 3ff4348
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/media/platform/vivid/vivid-touch-cap.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 3ff4348

Please sign in to comment.