diff options
| author | raghavendra ambadas <rambad@codeaurora.org> | 2019-03-19 10:56:41 +0530 |
|---|---|---|
| committer | raghavendra ambadas <rambad@codeaurora.org> | 2019-03-19 11:04:53 +0530 |
| commit | 331c1249b1305e985858efbfeed9cd11b662bf58 (patch) | |
| tree | a4a7beb300532fb2cd0ca680716bfa583d5d72f9 | |
| parent | f546088ef81307144f720636cba26ede7e66d216 (diff) | |
fbdev: msm: remove check for rgb source format
CSC bit is enabled for YUV format only, so no need to in-validate
if the source format is changed from RGB to YUV.
Change-Id: I5e0685f50cf3ce7a0d7a08b545cf35f1c303e219
Signed-off-by: Raghavendra Ambadas <rambad@codeaurora.org>
| -rw-r--r-- | drivers/video/fbdev/msm/mdss_mdp_layer.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/video/fbdev/msm/mdss_mdp_layer.c b/drivers/video/fbdev/msm/mdss_mdp_layer.c index 9e9f37ce0b23..e3b788c32679 100644 --- a/drivers/video/fbdev/msm/mdss_mdp_layer.c +++ b/drivers/video/fbdev/msm/mdss_mdp_layer.c @@ -1,4 +1,4 @@ -/* Copyright (c) 2012-2017, The Linux Foundation. All rights reserved. +/* Copyright (c) 2012-2017, 2019, The Linux Foundation. All rights reserved. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 and @@ -991,9 +991,8 @@ static int __validate_layer_reconfig(struct mdp_input_layer *layer, * Invalidate any reconfig of CSC block on staged pipe. */ if (!is_csc_db && - ((!!pipe->src_fmt->is_yuv != !!layer_src_fmt->is_yuv) || (pipe->src_fmt->is_yuv && layer_src_fmt->is_yuv && - pipe->csc_coeff_set != layer->color_space))) { + pipe->csc_coeff_set != layer->color_space)) { pr_err("CSC reconfig not allowed on staged pipe\n"); status = -EINVAL; goto err_exit; |
