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

Commit 6d003901 authored by Maheshwar Ajja's avatar Maheshwar Ajja
Browse files

msm: vidc: Invalidate output buffer before sending to client



Invalidate output buffer in driver before sending to userspace
to avoid output corruption due to cache.

CRs-Fixed: 2147414
Change-Id: I2f4123c09cd892ad1266d74c757deb57e92c6ad1
Signed-off-by: default avatarMaheshwar Ajja <majja@codeaurora.org>
parent 93982edb
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -5761,8 +5761,9 @@ int msm_comm_dqbuf_cache_operations(struct msm_vidc_inst *inst,
					skip = true;
			} else if (b->type ==
					V4L2_BUF_TYPE_VIDEO_CAPTURE_MPLANE) {
				if (!i) /* yuv */
					skip = true;
				if (!i) { /* yuv */
					/* all values are correct */
				}
			}
		} else if (inst->session_type == MSM_VIDC_ENCODER) {
			if (b->type == V4L2_BUF_TYPE_VIDEO_OUTPUT_MPLANE) {