media: rockchip: isp: rockit: support set wrap_line

Signed-off-by: Chuanhu Sun <aaron.sun@rock-chips.com>
Change-Id: I83eeb3f3a1d748f505f29136c8e8a84f0d677930
This commit is contained in:
Chuanhu Sun
2022-06-08 15:24:06 +08:00
committed by Tao Huang
parent e4e56e9677
commit 892023e114
2 changed files with 6 additions and 4 deletions

View File

@@ -290,7 +290,8 @@ int rkisp_rockit_pause_stream(struct rockit_cfg *input_rockit_cfg)
}
EXPORT_SYMBOL(rkisp_rockit_pause_stream);
int rkisp_rockit_config_stream(struct rockit_cfg *input_rockit_cfg, int width, int height)
int rkisp_rockit_config_stream(struct rockit_cfg *input_rockit_cfg,
int width, int height, int wrap_line)
{
struct rkisp_stream *stream = NULL;
struct rkisp_buffer *isp_buf;
@@ -302,7 +303,7 @@ int rkisp_rockit_config_stream(struct rockit_cfg *input_rockit_cfg, int width, i
pr_err("the stream is NULL");
return -EINVAL;
}
stream->ispdev->cap_dev.wrap_line = wrap_line;
stream->out_fmt.width = width;
stream->out_fmt.height = height;
stream->out_fmt.plane_fmt[0].bytesperline = 0;

View File

@@ -80,7 +80,8 @@ int rkisp_rockit_get_ispdev(char **name);
int rkisp_rockit_buf_queue(struct rockit_cfg *input_rockit_cfg);
int rkisp_rockit_pause_stream(struct rockit_cfg *input_rockit_cfg);
int rkisp_rockit_resume_stream(struct rockit_cfg *input_rockit_cfg);
int rkisp_rockit_config_stream(struct rockit_cfg *input_rockit_cfg, int width, int height);
int rkisp_rockit_config_stream(struct rockit_cfg *input_rockit_cfg,
int width, int height, int wrap_line);
#else
@@ -99,7 +100,7 @@ static inline int rkisp_rockit_resume_stream(struct rockit_cfg *input_rockit_cfg
return -EINVAL;
}
static inline int rkisp_rockit_config_stream(struct rockit_cfg *input_rockit_cfg,
int width, int height)
int width, int height, int wrap_line)
{
return -EINVAL;
}