Commit 072927d1 authored by Mauro Carvalho Chehab's avatar Mauro Carvalho Chehab

media: atomisp: sh_css_sp: better support the current firmware

As we're using Intel Aero firmware, make the code closer to the
driver for such device.
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab+huawei@kernel.org>
parent 3b941c5a
...@@ -1032,16 +1032,14 @@ sh_css_sp_init_stage(struct ia_css_binary *binary, ...@@ -1032,16 +1032,14 @@ sh_css_sp_init_stage(struct ia_css_binary *binary,
return err; return err;
#ifdef ISP2401 #ifdef ISP2401
if (stage == 0) { pipe = find_pipe_by_num(sh_css_sp_group.pipe[thread_id].pipe_num);
pipe = find_pipe_by_num(sh_css_sp_group.pipe[thread_id].pipe_num); if (!pipe)
if (!pipe) return -EINVAL;
return -EINVAL;
if (args->in_frame)
if (args->in_frame) ia_css_get_crop_offsets(pipe, &args->in_frame->info);
ia_css_get_crop_offsets(pipe, &args->in_frame->info); else
else ia_css_get_crop_offsets(pipe, &binary->in_frame_info);
ia_css_get_crop_offsets(pipe, &binary->in_frame_info);
}
#else #else
(void)pipe; /*avoid build warning*/ (void)pipe; /*avoid build warning*/
#endif #endif
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment