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>
*/
static int codec_mm_extpool_pool_release(struct extpool_mgt_s *tvp_pool)
{
- struct codec_mm_mgt_s *mgt = get_mem_mgt();
int i;
int ignored = 0;
mutex_lock(&tvp_pool->pool_lock);
if (gpool) {
if (gen_pool_avail(gpool) != gen_pool_size(gpool)) {
- pr_err("ERROR: TVP pool is not free.\n");
+ pr_err("ext pool is not free.\n");
ignored++;
continue; /*ignore this free now, */
}
TVP_POOL_NAME);
}
}
- mgt->tvp_pool.total_size -= slot_mem_size;
+ tvp_pool->total_size -= slot_mem_size;
tvp_pool->gen_pool[i] = NULL;
tvp_pool->mm[i] = NULL;
}