mirror of
https://github.com/tbsdtv/linux_media.git
synced 2025-07-23 20:51:03 +02:00
media: v4l2-pci-skeleton.c: fix outdated irq code
Fix the outdated irq example code. It is under an #ifdef TODO so it is never actually compiled and this code was never compiled. Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl> Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
This commit is contained in:
committed by
Mauro Carvalho Chehab
parent
947e3b3cf1
commit
60b6527952
@@ -139,16 +139,16 @@ static irqreturn_t skeleton_irq(int irq, void *dev_id)
|
|||||||
spin_lock(&skel->qlock);
|
spin_lock(&skel->qlock);
|
||||||
list_del(&new_buf->list);
|
list_del(&new_buf->list);
|
||||||
spin_unlock(&skel->qlock);
|
spin_unlock(&skel->qlock);
|
||||||
v4l2_get_timestamp(&new_buf->vb.v4l2_buf.timestamp);
|
new_buf->vb.vb2_buf.timestamp = ktime_get_ns();
|
||||||
new_buf->vb.v4l2_buf.sequence = skel->sequence++;
|
new_buf->vb.sequence = skel->sequence++;
|
||||||
new_buf->vb.v4l2_buf.field = skel->field;
|
new_buf->vb.field = skel->field;
|
||||||
if (skel->format.field == V4L2_FIELD_ALTERNATE) {
|
if (skel->format.field == V4L2_FIELD_ALTERNATE) {
|
||||||
if (skel->field == V4L2_FIELD_BOTTOM)
|
if (skel->field == V4L2_FIELD_BOTTOM)
|
||||||
skel->field = V4L2_FIELD_TOP;
|
skel->field = V4L2_FIELD_TOP;
|
||||||
else if (skel->field == V4L2_FIELD_TOP)
|
else if (skel->field == V4L2_FIELD_TOP)
|
||||||
skel->field = V4L2_FIELD_BOTTOM;
|
skel->field = V4L2_FIELD_BOTTOM;
|
||||||
}
|
}
|
||||||
vb2_buffer_done(&new_buf->vb, VB2_BUF_STATE_DONE);
|
vb2_buffer_done(&new_buf->vb.vb2_buf, VB2_BUF_STATE_DONE);
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
return IRQ_HANDLED;
|
return IRQ_HANDLED;
|
||||||
|
Reference in New Issue
Block a user