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

Commit d6aa1acd authored by Chinmay Sawarkar's avatar Chinmay Sawarkar
Browse files

msm: vidc: Convert csc custom matrix enable bool to hfi mask



HFI expects enable/disable for each individual custom matrix.
When client enables custom matrix, the boolean values must
be converted to the mask value 0x7.

CRs-Fixed: 2141230
Change-Id: Id9badd9e678586c9461cc88bb3b94f9c4fff00dd
Signed-off-by: default avatarChinmay Sawarkar <chinmays@codeaurora.org>
parent fc9ce0e0
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -1632,7 +1632,11 @@ int create_pkt_cmd_session_set_property(
			&pkt->rg_property_data[1];

		hfi->input_color_primaries = hal->input_color_primaries;
		hfi->custom_matrix_enabled = hal->custom_matrix_enabled;
		if (hal->custom_matrix_enabled)
			/* Bit Mask to enable all custom values */
			hfi->custom_matrix_enabled = 0x7;
		else
			hfi->custom_matrix_enabled = 0x0;
		memcpy(hfi->csc_matrix, hal->csc_matrix,
				sizeof(hfi->csc_matrix));
		memcpy(hfi->csc_bias, hal->csc_bias, sizeof(hfi->csc_bias));