diff options
| author | Krishna Chaitanya Parimi <cparimi@codeaurora.org> | 2014-11-28 14:42:54 +0530 |
|---|---|---|
| committer | David Keitel <dkeitel@codeaurora.org> | 2016-03-23 20:39:03 -0700 |
| commit | 31a7c2e261b83399a808a80ed00c934649d8c042 (patch) | |
| tree | 5e1d2682f13b5c705068a046db207a460c158a3b | |
| parent | ecfab603f9dce38fc63d0ba54ce66c2309050b25 (diff) | |
msm: mdss: Correct RGB order for LUT programming in mdp3
MDP3 LUT programming has incorrect RGB order as per HW. The
correct order is to have color0 for green, color1 for red
and color2 for blue. Correcting color order in mdp3.
Change-Id: Ie7b6ab7f83e18495e83a05102e288fee6841e3ab
Signed-off-by: Krishna Chaitanya Parimi <cparimi@codeaurora.org>
| -rw-r--r-- | drivers/video/fbdev/msm/mdp3_ctrl.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/video/fbdev/msm/mdp3_ctrl.c b/drivers/video/fbdev/msm/mdp3_ctrl.c index c26f62f1214b..ef7d46bd363d 100644 --- a/drivers/video/fbdev/msm/mdp3_ctrl.c +++ b/drivers/video/fbdev/msm/mdp3_ctrl.c @@ -1673,8 +1673,9 @@ static int mdp3_ctrl_lut_update(struct msm_fb_data_type *mfd, lut_config.lut_sel = mdp3_session->lut_sel; lut_config.lut_position = 0; lut_config.lut_dirty = true; - lut.color0_lut = r; - lut.color1_lut = g; + /* In HW the order is color0 = g, color1 = r and color2 = b*/ + lut.color0_lut = g; + lut.color1_lut = r; lut.color2_lut = b; mutex_lock(&mdp3_session->lock); |
