OSDN Git Service

media: atomisp: make fw ver irci_stable_candrpv_0415_20150521_0458 work
authorTsuchiya Yuto <kitakar@gmail.com>
Sun, 17 Oct 2021 16:19:52 +0000 (01:19 +0900)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Mon, 15 Nov 2021 08:11:39 +0000 (08:11 +0000)
This patch removes the unnamed struct `shading` from
`struct sh_css_sp_pipeline` as well as its usage [1].

[1] added on updating css version to irci_master_20150701_0213
    https://raw.githubusercontent.com/intel/ProductionKernelQuilts/cht-m1stable-2016_ww31/uefi/cht-m1stable/patches/cam-0439-atomisp2-css2401-and-2401_legacy-irci_master_2015070.patch
    ("atomisp2: css2401 and 2401_legacy-irci_master_20150701_0213")

This patch, together with the 4 patches applied before it revert incompatible
changes in the current css version for ISP2401 (irci_ecr-master_20150911_0724)
back to irci_stable_candrpv_0415_20150521_0458.

Some `struct`s are `sizeof()`ed in sh_css_firmware.c file. So, I guess
issues will happen if these sizes are changed. Therefore, keep them the
same as css version irci_stable_candrpv_0415_20150521_0458 to make atomisp
work for firmware made for such css version since we don't have firmware
made for the current css version.

Signed-off-by: Tsuchiya Yuto <kitakar@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/staging/media/atomisp/pci/sh_css_internal.h
drivers/staging/media/atomisp/pci/sh_css_sp.c

index 496faa7..92fb7e6 100644 (file)
@@ -551,14 +551,6 @@ struct sh_css_sp_pipeline {
                        u32     raw_bit_depth;
                } raw;
        } copy;
-
-/* ISP2401 */
-
-       /* Parameters passed to Shading Correction kernel. */
-       struct {
-               u32 internal_frame_origin_x_bqs_on_sctbl; /* Origin X (bqs) of internal frame on shading table */
-               u32 internal_frame_origin_y_bqs_on_sctbl; /* Origin Y (bqs) of internal frame on shading table */
-       } shading;
 };
 
 /*
index 13b15a5..fa74ac1 100644 (file)
@@ -1308,24 +1308,6 @@ sh_css_sp_init_pipeline(struct ia_css_pipeline *me,
        }
 #endif
 
-       if (IS_ISP2401) {
-               /* For the shading correction type 1 (the legacy shading table conversion in css is not used),
-               * the parameters are passed to the isp for the shading table centering.
-               */
-               if (internal_frame_origin_bqs_on_sctbl &&
-                   params && params->shading_settings.enable_shading_table_conversion == 0) {
-                       sh_css_sp_group.pipe[thread_id].shading.internal_frame_origin_x_bqs_on_sctbl
-                       = (uint32_t)internal_frame_origin_bqs_on_sctbl->x;
-                       sh_css_sp_group.pipe[thread_id].shading.internal_frame_origin_y_bqs_on_sctbl
-                       = (uint32_t)internal_frame_origin_bqs_on_sctbl->y;
-               } else {
-                       sh_css_sp_group.pipe[thread_id].shading.internal_frame_origin_x_bqs_on_sctbl =
-                       0;
-                       sh_css_sp_group.pipe[thread_id].shading.internal_frame_origin_y_bqs_on_sctbl =
-                       0;
-               }
-       }
-
        IA_CSS_LOG("pipe_id %d port_config %08x",
                   pipe_id, sh_css_sp_group.pipe[thread_id].inout_port_config);