OSDN Git Service

media: atomisp: add YUVPP at __atomisp_get_pipe() logic
authorMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Wed, 17 Nov 2021 14:55:04 +0000 (14:55 +0000)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Wed, 17 Nov 2021 19:38:39 +0000 (19:38 +0000)
Aligns it which the Intel Aero firmware.

Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/staging/media/atomisp/pci/atomisp_cmd.c

index 86dad9f..5a90cc3 100644 (file)
@@ -857,7 +857,8 @@ static struct atomisp_video_pipe *__atomisp_get_pipe(
        } else if (asd->run_mode->val == ATOMISP_RUN_MODE_VIDEO) {
                /* For online video or SDV video pipe. */
                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)
                                return &asd->video_out_video_capture;
                        return &asd->video_out_preview;
@@ -865,7 +866,8 @@ static struct atomisp_video_pipe *__atomisp_get_pipe(
        } else if (asd->run_mode->val == ATOMISP_RUN_MODE_PREVIEW) {
                /* For online preview or ZSL preview pipe. */
                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;
        }
        /* For capture pipe. */