[mpp_device]: Add mpp_device_debug env read

Change-Id: I691cc21a1316fbbe4b2c2a0d3ff50e96d7a5bed9
Signed-off-by: Herman Chen <herman.chen@rock-chips.com>
This commit is contained in:
Herman Chen
2020-11-10 17:10:27 +08:00
parent 495c4849da
commit 855b45e041
2 changed files with 7 additions and 0 deletions

View File

@@ -18,6 +18,7 @@
#include <string.h>
#include "mpp_env.h"
#include "mpp_log.h"
#include "mpp_mem.h"
@@ -41,6 +42,8 @@ MPP_RET mpp_dev_init(MppDev *ctx, MppClientType type)
return MPP_ERR_NULL_PTR;
}
mpp_env_get_u32("mpp_device_debug", &mpp_device_debug, 0);
*ctx = NULL;
RK_U32 codec_type = mpp_get_vcodec_type();

View File

@@ -22,6 +22,7 @@
#include <string.h>
#include "mpp_log.h"
#include "mpp_env.h"
#include "mpp_common.h"
#include "mpp_device_debug.h"
@@ -133,6 +134,9 @@ void check_mpp_service_cap(RK_U32 *codec_type, RK_U32 *hw_ids, MppServiceCmdCap
RK_U32 val;
RK_U32 i;
/* for device check on startup */
mpp_env_get_u32("mpp_device_debug", &mpp_device_debug, 0);
*codec_type = 0;
memset(hw_ids, 0, sizeof(RK_U32) * 32);