Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 331c1249 authored by raghavendra ambadas's avatar raghavendra ambadas
Browse files

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: default avatarRaghavendra Ambadas <rambad@codeaurora.org>
parent f546088e
Loading
Loading
Loading
Loading
+2 −3
Original line number Diff line number Diff line
/* 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;