mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-07 03:15:31 +09:00
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:
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user