Commit 3c82bf02 authored by Mauro Carvalho Chehab's avatar Mauro Carvalho Chehab

media: atomisp: add YUVPP at __atomisp_get_pipe() logic

Aligns it which the Intel Aero firmware.
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab+huawei@kernel.org>
parent 72fb16a1
...@@ -857,7 +857,8 @@ static struct atomisp_video_pipe *__atomisp_get_pipe( ...@@ -857,7 +857,8 @@ static struct atomisp_video_pipe *__atomisp_get_pipe(
} else if (asd->run_mode->val == ATOMISP_RUN_MODE_VIDEO) { } else if (asd->run_mode->val == ATOMISP_RUN_MODE_VIDEO) {
/* For online video or SDV video pipe. */ /* For online video or SDV video pipe. */
if (css_pipe_id == IA_CSS_PIPE_ID_VIDEO || if (css_pipe_id == IA_CSS_PIPE_ID_VIDEO ||
css_pipe_id == IA_CSS_PIPE_ID_COPY) { css_pipe_id == IA_CSS_PIPE_ID_COPY ||
css_pipe_id == IA_CSS_PIPE_ID_YUVPP) {
if (buf_type == IA_CSS_BUFFER_TYPE_OUTPUT_FRAME) if (buf_type == IA_CSS_BUFFER_TYPE_OUTPUT_FRAME)
return &asd->video_out_video_capture; return &asd->video_out_video_capture;
return &asd->video_out_preview; return &asd->video_out_preview;
...@@ -865,7 +866,8 @@ static struct atomisp_video_pipe *__atomisp_get_pipe( ...@@ -865,7 +866,8 @@ static struct atomisp_video_pipe *__atomisp_get_pipe(
} else if (asd->run_mode->val == ATOMISP_RUN_MODE_PREVIEW) { } else if (asd->run_mode->val == ATOMISP_RUN_MODE_PREVIEW) {
/* For online preview or ZSL preview pipe. */ /* For online preview or ZSL preview pipe. */
if (css_pipe_id == IA_CSS_PIPE_ID_PREVIEW || if (css_pipe_id == IA_CSS_PIPE_ID_PREVIEW ||
css_pipe_id == IA_CSS_PIPE_ID_COPY) css_pipe_id == IA_CSS_PIPE_ID_COPY ||
css_pipe_id == IA_CSS_PIPE_ID_YUVPP)
return &asd->video_out_preview; return &asd->video_out_preview;
} }
/* For capture pipe. */ /* For capture pipe. */
......
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