diff --git a/drivers/media/platform/rockchip/isp/isp_rockit.c b/drivers/media/platform/rockchip/isp/isp_rockit.c index b24017fb4d31..2902bece0298 100644 --- a/drivers/media/platform/rockchip/isp/isp_rockit.c +++ b/drivers/media/platform/rockchip/isp/isp_rockit.c @@ -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; diff --git a/include/soc/rockchip/rockchip_rockit.h b/include/soc/rockchip/rockchip_rockit.h index 3a26d5ddb3b5..0a897e276843 100644 --- a/include/soc/rockchip/rockchip_rockit.h +++ b/include/soc/rockchip/rockchip_rockit.h @@ -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;