decoder: set vp9 buffer to 12 for cpu id less than G12A

PD#166415:

Change-Id: Id5a5b4abe2753f7503796c161abd65aa09ec90d5
Signed-off-by: jintao xu <jintao.xu@amlogic.com>
This commit is contained in:
jintao xu
2018-08-24 20:07:44 +08:00
committed by Dongjin Kim
parent 558a8cd709
commit e6db8b0669

View File

@@ -2756,8 +2756,9 @@ static u32 max_decoding_time;
static u32 error_handle_policy;
/*static u32 parser_sei_enable = 1;*/
static u32 max_buf_num = 10;
#define MAX_BUF_NUM 12
#define MAX_BUF_NUM_LESS 10
static u32 max_buf_num = MAX_BUF_NUM;
static u32 run_ready_min_buf_num = 2;
@@ -9081,6 +9082,7 @@ static int ammvdec_vp9_probe(struct platform_device *pdev)
pbi->m_ins_flag = 1;
if (get_cpu_major_id() < AM_MESON_CPU_MAJOR_ID_TXLX)
pbi->stat |= VP9_TRIGGER_FRAME_ENABLE;
#if 1
if ((debug & IGNORE_PARAM_FROM_CONFIG) == 0 &&
pdata->config_len) {
@@ -9353,6 +9355,9 @@ static int __init amvdec_vp9_driver_init_module(void)
amvdec_vp9_profile.name = "vp9_unsupport";
}
if (get_cpu_major_id() >= AM_MESON_CPU_MAJOR_ID_G12A)
max_buf_num = MAX_BUF_NUM_LESS;
vcodec_profile_register(&amvdec_vp9_profile);
INIT_REG_NODE_CONFIGS("media.decoder", &vp9_node,
"vp9", vp9_configs, CONFIG_FOR_RW);