Пример #1
0
int v4l2_m2m_ioctl_streamoff(struct file *file, void *priv,
                             enum v4l2_buf_type type)
{
    struct v4l2_fh *fh = file->private_data;

    return v4l2_m2m_streamoff(file, fh->m2m_ctx, type);
}
Пример #2
0
static int fimc_m2m_streamoff(struct file *file, void *fh,
			    enum v4l2_buf_type type)
{
	struct fimc_ctx *ctx = fh_to_ctx(fh);

	return v4l2_m2m_streamoff(file, ctx->m2m_ctx, type);
}
Пример #3
0
static int gsc_m2m_streamoff(struct file *file, void *fh,
			    enum v4l2_buf_type type)
{
	struct gsc_ctx *ctx = fh_to_ctx(fh);
	struct gsc_dev *gsc = ctx->gsc_dev;

	gsc_pm_qos_ctrl(gsc, GSC_QOS_OFF, 0, 0);

	return v4l2_m2m_streamoff(file, ctx->m2m_ctx, type);
}
Пример #4
0
/*
 * msm_jpegdma_streamoff - V4l2 ioctl stream off handler.
 * @file: Pointer to file struct.
 * @fh: V4l2 File handle.
 * @buf_type: V4l2 buffer type.
 */
static int msm_jpegdma_streamoff(struct file *file,
	void *fh, enum v4l2_buf_type buf_type)
{
	struct jpegdma_ctx *ctx = msm_jpegdma_ctx_from_fh(fh);
	int ret;

	ret = v4l2_m2m_streamoff(file, ctx->m2m_ctx, buf_type);
	if (ret < 0)
		dev_err(ctx->jdma_device->dev, "Stream off fails\n");

	return ret;
}
Пример #5
0
static int gsc_m2m_streamoff(struct file *file, void *fh,
			    enum v4l2_buf_type type)
{
	struct gsc_ctx *ctx = fh_to_ctx(fh);
	struct gsc_dev *gsc = ctx->gsc_dev;

	gsc_pm_qos_ctrl(gsc, GSC_QOS_OFF, 0, 0);

	if (gsc->protected_content) {
		int id = gsc->id + 3;
		exynos_smc(SMC_PROTECTION_SET, 0, id, 0);
		gsc_dbg("DRM disable");
	}

	return v4l2_m2m_streamoff(file, ctx->m2m_ctx, type);
}
Пример #6
0
static int jpeg_dec_m2m_streamoff(struct file *file, void *priv,
			    enum v4l2_buf_type type)
{
	struct jpeg_ctx *ctx = priv;
	return v4l2_m2m_streamoff(file, ctx->m2m_ctx, type);
}
Пример #7
0
static int vidioc_streamoff(struct file *file, void *priv,
                            enum v4l2_buf_type type)
{
    struct g2d_ctx *ctx = priv;
    return v4l2_m2m_streamoff(file, ctx->m2m_ctx, type);
}