[mpi]: add mpi unit test and rename mpp_env interface

git-svn-id: https://10.10.10.66:8443/svn/MediaProcessPlatform/trunk/mpp@116 6e48237b-75ef-9749-8fc9-41990f28c85a
This commit is contained in:
ChenHengming
2015-08-17 10:09:20 +00:00
parent fa4fbd822c
commit c2544d0f9c
12 changed files with 262 additions and 24 deletions

View File

@@ -48,7 +48,7 @@ static RK_CHIP_TYPE chip_version(void)
{
RK_CHIP_TYPE type = NONE;
char *value = NULL;
RK_S32 ret = mpp_get_env_str("ro.product.board", &value, NULL);
RK_S32 ret = mpp_env_get_str("ro.product.board", &value, NULL);
if (0 == ret) {
if (strstr(value, "rk29")) {
@@ -60,7 +60,7 @@ static RK_CHIP_TYPE chip_version(void)
}
}
if (NONE == type) {
ret = mpp_get_env_str("ro.board.platform", &value, NULL);
ret = mpp_env_get_str("ro.board.platform", &value, NULL);
if (0 == ret) {
if (strstr(value, "rk29")) {
mpp_log("rk29 board found in platform property");