codec_mm: fix fastplay can not alloc twice [2/3]
authorJian Wang <jian.wang@amlogic.com>
Tue, 24 Dec 2019 09:39:01 +0000 (17:39 +0800)
committerJian Wang <jian.wang@amlogic.com>
Thu, 26 Dec 2019 13:55:33 +0000 (21:55 +0800)
commit145a7809ea67f78ccdc9714dcc687e7276745a38
tree2b12f3b23afd683198f68c2e936a1e6786d9957d
parent4999e83c0d8bed99f86c0709f849fcddce23d630
codec_mm: fix fastplay can not alloc twice [2/3]

PD#SWPL-18391

Problem:
codec_mm_extpool_pool_release use
mgt->tvp_pool.total_size, not it
parm tvp_pool, when extpool is
cma_pool not tvp pool will duo to
total_size set error.

Solution:
use codec_mm_extpool_pool_release
parm tvp_pool total_size to set

Verify:
verify on u212

Change-Id: I83a5d988d7701cf6291250bd739c1c5b43143764
Signed-off-by: Jian Wang <jian.wang@amlogic.com>
drivers/amlogic/media/common/codec_mm/codec_mm.c