msm_vidc: Disable DCVS in thumbnail mode

Disable DCVS in thumbnail mode to ensure
that extra buffers are not added to capture
port.

Change-Id: I46f84301d0507c8c8bba3bcd3d93871b49a3948c
Signed-off-by: Surajit Podder <spodder@codeaurora.org>
This commit is contained in:
Surajit Podder 2017-01-16 21:54:37 +05:30 committed by Gerrit - the friendly Code Review server
parent 74e7bd58a4
commit 726f72cbe7

View file

@ -1,4 +1,4 @@
/* Copyright (c) 2014-2016, The Linux Foundation. All rights reserved. /* Copyright (c) 2014-2017, The Linux Foundation. All rights reserved.
* *
* This program is free software; you can redistribute it and/or modify * 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 * it under the terms of the GNU General Public License version 2 and
@ -570,7 +570,8 @@ static bool msm_dcvs_check_supported(struct msm_vidc_inst *inst)
inst->dcvs.extra_buffer_count = 0; inst->dcvs.extra_buffer_count = 0;
if (!IS_VALID_DCVS_SESSION(num_mbs_per_frame, if (!IS_VALID_DCVS_SESSION(num_mbs_per_frame,
res->dcvs_limit[inst->session_type].min_mbpf)) { res->dcvs_limit[inst->session_type].min_mbpf) ||
(inst->flags & VIDC_THUMBNAIL)) {
inst->dcvs.extra_buffer_count = 0; inst->dcvs.extra_buffer_count = 0;
is_dcvs_supported = false; is_dcvs_supported = false;
goto dcvs_decision_done; goto dcvs_decision_done;