/* This function will get next buffer from the dma queue and set the buffer address in the vpif register for capture. the buffer is marked active  */
static void vpif_schedule_next_buffer(struct common_obj *common)
/* This function will get next buffer from the dma queue and set the buffer address in the vpif register for capture. the buffer is marked active  */
static void vpif_schedule_next_buffer(struct common_obj *common)
{
	unsigned long addr = 0;
	common->next_frm = list_entry(common->dma_queue.next,
				     struct videobuf_buffer, queue);
	list_del(&common->next_frm->queue);
	common->next_frm->state = VIDEOBUF_ACTIVE;
	if (V4L2_MEMORY_USERPTR == common->memory)
		addr = common->next_frm->boff;
	else
		addr = videobuf_to_dma_contig(common->next_frm);
	common->set_addr(addr + common->ytop_off,
			 addr + common->ybtm_off,
			 addr + common->ctop_off,
			 addr + common->cbtm_off);
}