mirror of
https://github.com/nyanmisaka/mpp.git
synced 2025-10-06 01:26:49 +08:00
[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:
@@ -18,6 +18,7 @@
|
|||||||
|
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
|
#include "mpp_env.h"
|
||||||
#include "mpp_log.h"
|
#include "mpp_log.h"
|
||||||
#include "mpp_mem.h"
|
#include "mpp_mem.h"
|
||||||
|
|
||||||
@@ -41,6 +42,8 @@ MPP_RET mpp_dev_init(MppDev *ctx, MppClientType type)
|
|||||||
return MPP_ERR_NULL_PTR;
|
return MPP_ERR_NULL_PTR;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
mpp_env_get_u32("mpp_device_debug", &mpp_device_debug, 0);
|
||||||
|
|
||||||
*ctx = NULL;
|
*ctx = NULL;
|
||||||
|
|
||||||
RK_U32 codec_type = mpp_get_vcodec_type();
|
RK_U32 codec_type = mpp_get_vcodec_type();
|
||||||
|
@@ -22,6 +22,7 @@
|
|||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
#include "mpp_log.h"
|
#include "mpp_log.h"
|
||||||
|
#include "mpp_env.h"
|
||||||
#include "mpp_common.h"
|
#include "mpp_common.h"
|
||||||
|
|
||||||
#include "mpp_device_debug.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 val;
|
||||||
RK_U32 i;
|
RK_U32 i;
|
||||||
|
|
||||||
|
/* for device check on startup */
|
||||||
|
mpp_env_get_u32("mpp_device_debug", &mpp_device_debug, 0);
|
||||||
|
|
||||||
*codec_type = 0;
|
*codec_type = 0;
|
||||||
memset(hw_ids, 0, sizeof(RK_U32) * 32);
|
memset(hw_ids, 0, sizeof(RK_U32) * 32);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user