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

Commit 194031bb authored by Chinmay Sawarkar's avatar Chinmay Sawarkar
Browse files

msm: vidc: Set 0xff to disable hybrid hp



HFI api requires that the driver set layers=0xFF to disable
Hybrid HP, whereas the V4l2 equivalent value is 0x0. Hence we
need to convert to 0xFF before sending to firmware.

CRs-Fixed: 2211180
Change-Id: Iea7f64ecc9ca0ec9546a66ef92e7365714655924
Signed-off-by: default avatarChinmay Sawarkar <chinmays@codeaurora.org>
parent 90e4b68f
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1686,7 +1686,7 @@ int create_pkt_cmd_session_set_property(
		pkt->rg_property_data[0] =
			HFI_PROPERTY_PARAM_VENC_HIER_P_HYBRID_MODE;
		pkt->rg_property_data[1] =
			((struct hfi_hybrid_hierp *)pdata)->layers;
			((struct hfi_hybrid_hierp *)pdata)->layers ?: 0xFF;
		pkt->size += sizeof(u32) +
			sizeof(struct hfi_hybrid_hierp);
		break;