static int fimc_is_vdo_video_qbuf(struct file *file, void *priv, struct v4l2_buffer *buf) { int ret = 0; struct fimc_is_video_ctx *vctx = file->private_data; struct fimc_is_queue *queue; #ifdef DBG_STREAMING dbg_vdiso("%s\n", __func__); #endif queue = GET_SRC_QUEUE(vctx); if (!test_bit(FIMC_IS_QUEUE_STREAM_ON, &queue->state)) { merr("stream off state, can NOT qbuf", vctx); ret = -EINVAL; goto p_err; } ret = fimc_is_video_qbuf(file, vctx, buf); if (ret) merr("fimc_is_video_qbuf is fail(%d)", vctx, ret); p_err: return ret; }
static int fimc_is_bayer_video_qbuf(struct file *file, void *priv, struct v4l2_buffer *buf) { int ret = 0; struct fimc_is_video_sensor *video = file->private_data; #ifdef DBG_STREAMING /*dbg_sensor("%s\n", __func__);*/ #endif ret = fimc_is_video_qbuf(&video->common, buf); return ret; }
static int fimc_is_sen_video_qbuf(struct file *file, void *priv, struct v4l2_buffer *buf) { int ret = 0; struct fimc_is_video_ctx *vctx = file->private_data; #ifdef DBG_STREAMING /*dbg_sensor("%s\n", __func__);*/ #endif ret = fimc_is_video_qbuf(file, vctx, buf); if (ret) merr("fimc_is_video_qbuf is fail(%d)", vctx, ret); return ret; }
static int fimc_is_scp_video_qbuf(struct file *file, void *priv, struct v4l2_buffer *buf) { int ret = 0; struct fimc_is_video_ctx *vctx = file->private_data; #ifdef DBG_STREAMING mdbgv_scp("%s(index : %d)\n", vctx, __func__, buf->index); #endif ret = fimc_is_video_qbuf(file, vctx, buf); if (ret) merr("fimc_is_video_qbuf is fail(%d)", vctx, ret); return ret; }
static int fimc_is_3a1_video_qbuf(struct file *file, void *priv, struct v4l2_buffer *buf) { int ret = 0; struct fimc_is_video_ctx *vctx = file->private_data; BUG_ON(!vctx); #ifdef DBG_STREAMING mdbgv_3a1("%s(%02d:%d)\n", vctx, __func__, buf->type, buf->index); #endif ret = fimc_is_video_qbuf(file, vctx, buf); if (ret) merr("fimc_is_video_qbuf(type %d) is fail(%d)", vctx, buf->type, ret); return ret; }
static int fimc_is_scc_video_qbuf(struct file *file, void *priv, struct v4l2_buffer *buf) { int ret = 0; struct fimc_is_video_ctx *video_ctx = file->private_data; struct fimc_is_device_ischain *ischain = video_ctx->device; #ifdef DBG_STREAMING /*dbg_scc("%s(index : %d)\n", __func__, buf->index);*/ #endif ret = fimc_is_video_qbuf(video_ctx, buf); if (ret) { merr("fimc_is_video_qbuf is fail", ischain); goto exit; } exit: return ret; }