{
u32 bcsh_ctrl;
if (dev_drv->overlay_mode == VOP_YUV_DOMAIN) {
- if (dev_drv->output_color == COLOR_YCBCR)/* bypass */
+ if (IS_YUV_COLOR(dev_drv->output_color))/* bypass */
lcdc_msk_reg(lcdc_dev, BCSH_CTRL,
m_BCSH_Y2R_EN | m_BCSH_R2Y_EN,
v_BCSH_Y2R_EN(0) | v_BCSH_R2Y_EN(0));
vop_msk_reg(vop_dev, SYS_CTRL, V_OVERLAY_MODE(dev_drv->overlay_mode));
if (dev_drv->overlay_mode == VOP_YUV_DOMAIN) {
- if (dev_drv->output_color == COLOR_YCBCR) /* bypass */
+ if (IS_YUV_COLOR(dev_drv->output_color)) /* bypass */
vop_msk_reg(vop_dev, BCSH_CTRL,
V_BCSH_Y2R_EN(0) | V_BCSH_R2Y_EN(0));
else /* YUV2RGB */
lcdc_msk_reg(lcdc_dev, SYS_CTRL, m_OVERLAY_MODE,
v_OVERLAY_MODE(dev_drv->overlay_mode));
if (dev_drv->overlay_mode == VOP_YUV_DOMAIN) {
- if (dev_drv->output_color == COLOR_YCBCR) /* bypass */
+ if (IS_YUV_COLOR(dev_drv->output_color)) /* bypass */
lcdc_msk_reg(lcdc_dev, BCSH_CTRL,
m_BCSH_Y2R_EN | m_BCSH_R2Y_EN,
v_BCSH_Y2R_EN(0) | v_BCSH_R2Y_EN(0));
struct vop_device *vop_dev = to_vop_dev(dev_drv);
if (dev_drv->overlay_mode == VOP_YUV_DOMAIN) {
- if (dev_drv->output_color == COLOR_YCBCR) /* bypass */
+ if (IS_YUV_COLOR(dev_drv->output_color)) /* bypass */
vop_msk_reg(vop_dev, BCSH_CTRL,
V_SW_BCSH_Y2R_EN(0) | V_SW_BCSH_R2Y_EN(0));
else /* YUV2RGB */