PD#SWPL-15282
Problem:
buf is not updated because of absent receiver
Solution:
force buf recycle after screen cap stopped
Verify:
verified by t962x3_ab301
Change-Id: Idc5c354a6d744b11a892ffb3f015a5928706d438
Signed-off-by: zhiwei.yuan <zhiwei.yuan@amlogic.com>
if ((devp->parm.reserved & PARAM_STATE_SCREENCAP) &&
(devp->parm.reserved & PARAM_STATE_HISTGRAM) &&
(devp->index == 1)) {
+ /*always update buf to avoid older data be captured*/
+ devp->flags |= VDIN_FLAG_FORCE_RECYCLE;
mutex_unlock(&devp->fe_lock);
return 0;
} else {