mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-06 19:08:57 +09:00
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:
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user