do_gettimeofday(&vb->ts);
vb->field_count = atomic_add_return(2, &fh->field_count);
if (csr & csr_error) {
- vb->state = STATE_ERROR;
+ vb->state = VIDEOBUF_ERROR;
if (!atomic_read(&fh->cam->in_reset)) {
dev_dbg(cam->dev, "resetting camera, csr 0x%x\n", csr);
omap24xxcam_reset(cam);
}
} else
- vb->state = STATE_DONE;
+ vb->state = VIDEOBUF_DONE;
wake_up(&vb->done);
}
videobuf_dma_free(videobuf_to_dma(vb));
}
- vb->state = STATE_NEEDS_INIT;
+ vb->state = VIDEOBUF_NEEDS_INIT;
}
/*
} else
vb->size = fh->pix.sizeimage;
} else {
- if (vb->state != STATE_NEEDS_INIT) {
+ if (vb->state != VIDEOBUF_NEEDS_INIT) {
/*
* We have a kernel bounce buffer that has
* already been allocated.
vb->height = fh->pix.height;
vb->field = field;
- if (vb->state == STATE_NEEDS_INIT) {
+ if (vb->state == VIDEOBUF_NEEDS_INIT) {
if (vb->memory == V4L2_MEMORY_MMAP)
/*
* we have built the scatter-gather list by ourself so
}
if (!err)
- vb->state = STATE_PREPARED;
+ vb->state = VIDEOBUF_PREPARED;
else
omap24xxcam_vbq_release(vbq, vb);
* pretty way of marking it active exactly when the
* scatter-gather transfer starts.
*/
- vb->state = STATE_ACTIVE;
+ vb->state = VIDEOBUF_ACTIVE;
err = omap24xxcam_sgdma_queue(&fh->cam->sgdma,
videobuf_to_dma(vb)->sglist,
poll_wait(file, &vb->done, wait);
- if (vb->state == STATE_DONE || vb->state == STATE_ERROR)
+ if (vb->state == VIDEOBUF_DONE || vb->state == VIDEOBUF_ERROR)
return POLLIN | POLLRDNORM;
return 0;