media: count buffer size for allocate coherent memory. [2/2]
authorNanxin Qin <nanxin.qin@amlogic.com>
Mon, 2 Nov 2020 08:35:27 +0000 (16:35 +0800)
committerHui Zhang <hui.zhang@amlogic.com>
Tue, 8 Dec 2020 09:12:26 +0000 (01:12 -0800)
commit36b414c850bc572a95bc93de531c4834cc062365
tree7001719cf87c1a4bada3e98edceb248e5d1df433
parentcfd32d66b60248d151ad55d29a1066ba434faaed
media: count buffer size for allocate coherent memory. [2/2]

PD#SWPL-36112

Problem:
CtsMediaTestCases process crash when codec_mm_reserved

Solution:
count buffer size for allocate coherent memory

Verify:
ah212

Change-Id: Ic74cda41faf9d8d6fb50aa6ed4911dfce744a283
Signed-off-by: Nanxin Qin <nanxin.qin@amlogic.com>
drivers/amvdec_ports/aml_vcodec_util.c
drivers/frame_provider/decoder/utils/vdec_input.c
drivers/frame_provider/decoder/utils/vdec_input.h
drivers/frame_provider/decoder/utils/vdec_power_ctrl.c