/* This function time stamp the buffer and mark it as DONE. It also wake up any process waiting on the QUEUE and set the next buffer as current  */
static void vpif_process_buffer_complete(struct common_obj *common)
/* This function time stamp the buffer and mark it as DONE. It also wake up any process waiting on the QUEUE and set the next buffer as current  */
static void vpif_process_buffer_complete(struct common_obj *common)
{
	do_gettimeofday(&common->cur_frm->ts);
	common->cur_frm->state = VIDEOBUF_DONE;
	wake_up_interruptible(&common->cur_frm->done);
	common->cur_frm = common->next_frm;
}