If we direct to use primary screen to init extern screen, the dsp_lut
is not NULL, this will lead to enable gamma lut.
Change-Id: I0934d57927b4b031a4484630120e3be0cfb14969
Signed-off-by: Huang Jiachai <hjc@rock-chips.com>
}
dev_drv->trsm_ops = rk_fb_trsm_ops_get(screen->type);
if (dev_drv->prop != PRMRY)
- rk_fb_get_prmry_screen(screen);
+ rk_fb_get_extern_screen(screen);
dev_drv->output_color = screen->color_mode;
return 0;
#include "../hdmi/rockchip-hdmi.h"
static struct rk_screen *rk_screen;
+
+int rk_fb_get_extern_screen(struct rk_screen *screen)
+{
+ if (unlikely(!rk_screen) || unlikely(!screen))
+ return -1;
+
+ memcpy(screen, rk_screen, sizeof(struct rk_screen));
+ screen->dsp_lut = NULL;
+ screen->cabc_lut = NULL;
+
+ return 0;
+}
+
int rk_fb_get_prmry_screen(struct rk_screen *screen)
{
if (unlikely(!rk_screen) || unlikely(!screen))
struct rk_lcdc_win *win, int id);
extern int rk_fb_unregister(struct rk_lcdc_driver *dev_drv);
extern struct rk_lcdc_driver *rk_get_lcdc_drv(char *name);
+extern int rk_fb_get_extern_screen(struct rk_screen *screen);
extern int rk_fb_get_prmry_screen( struct rk_screen *screen);
extern int rk_fb_set_prmry_screen(struct rk_screen *screen);
extern u32 rk_fb_get_prmry_screen_pixclock(void);