summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSurajit Podder <spodder@codeaurora.org>2016-07-18 14:46:59 +0530
committerGerrit - the friendly Code Review server <code-review@localhost>2017-01-24 06:10:41 -0800
commit4fbe920008263ac58dbcadeb82e9c256dffcc435 (patch)
treee7c00c379bcafc495354f1ba5926fb77bddd0407
parent314869eb56763d34f91d5483b0d510267894fadd (diff)
msm: vidc: Fix issue in split mode for UBWC output
Change in split mode is needed only where there is change in scan type in linear output case. Add change to enable this only for linear output. Change-Id: I57e60329fa7ad0d3f4fc88fa16b996d620b78cbe Signed-off-by: Surajit Podder <spodder@codeaurora.org>
-rw-r--r--drivers/media/platform/msm/vidc/msm_vidc_common.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/media/platform/msm/vidc/msm_vidc_common.c b/drivers/media/platform/msm/vidc/msm_vidc_common.c
index c5b4872b8e23..be8300701661 100644
--- a/drivers/media/platform/msm/vidc/msm_vidc_common.c
+++ b/drivers/media/platform/msm/vidc/msm_vidc_common.c
@@ -1216,7 +1216,8 @@ static void handle_event_change(enum hal_command_response cmd, void *data)
"V4L2_EVENT_SEQ_CHANGED_INSUFFICIENT due to bit-depth change\n");
}
- if (inst->pic_struct != event_notify->pic_struct) {
+ if (inst->fmts[CAPTURE_PORT].fourcc == V4L2_PIX_FMT_NV12 &&
+ inst->pic_struct != event_notify->pic_struct) {
inst->pic_struct = event_notify->pic_struct;
event = V4L2_EVENT_SEQ_CHANGED_INSUFFICIENT;
ptr[2] |= V4L2_EVENT_PICSTRUCT_FLAG;