media: rockchip: isp: read the color_ctrl reg for isp32

Change-Id: I4c06d7944b0fb61bfd5f39560a7bd4afefa4f761
Signed-off-by: Lian Xu <xu.lian@rock-chips.com>
This commit is contained in:
Lian Xu
2022-05-25 19:42:38 +08:00
committed by Tao Huang
parent cd6d4b33c5
commit bd0cebb689
2 changed files with 4 additions and 0 deletions

View File

@@ -9,6 +9,7 @@
#include "dev.h"
#include "capture.h"
#include "regs.h"
static struct rockit_cfg *rockit_cfg;
@@ -243,6 +244,8 @@ int rkisp_rockit_buf_done(struct rkisp_stream *stream, int cmd)
rockit_cfg->frame.u32TimeRef = seq;
}
rockit_cfg->is_color = !rkisp_read(dev, ISP3X_IMG_EFF_CTRL, true);
rockit_cfg->frame.u32Height = stream->out_fmt.height;
rockit_cfg->frame.u32Width = stream->out_fmt.width;

View File

@@ -55,6 +55,7 @@ struct rockit_cfg {
bool is_alloc;
bool is_empty;
bool is_qbuf;
bool is_color;
char *current_name;
dma_addr_t dma_addr;
int *buff_id;