微波EDA网,见证研发工程师的成长!
首页 > 研发问答 > 手机设计讨论 > MTK手机平台交流 > mt6735 M版本,android.hardware.camera2.cts.FlashlightTe st testCameraDeviceO...

mt6735 M版本,android.hardware.camera2.cts.FlashlightTe st testCameraDeviceO...

时间:10-02 整理:3721RD 点击:
M版本,android.hardware.CAMERA2.cts.Flashlight Test test Camera Device Open After TorchOn failed
[DESCRIPTION]
在M版本上,新增了FlashlightTest的测试,如果前置摄像头有闪光灯,此项测试failed,请参考此条FAQ。
[SOLUTION]
1.如果有config_static_metadata.project.flashlight.sensorname.h文件,并且文件中有:
CONFIG_METADATA_BEGIN(mtk_FLASH_INFO_AVAILABLE)
CONFIG_ENTRY_VALUE(MTK_FLASH_INFO_AVAILABLE_FALSE, MUINT8)
CONFIG_METADATA_END()
请先修改为:
CONFIG_METADATA_BEGIN(MTK_FLASH_INFO_AVAILABLE)
CONFIG_ENTRY_VALUE(MTK_FLASH_INFO_AVAILABLE_TRUE, MUINT8)
CONFIG_METADATA_END()

2.如果没有config_static_metadata.project.flashlight.sensorname.h,请将config_static_metadata_common.h文件中,case 0跟case 1中MTK_FLASH_INFO_AVAILABLE对应的值都修改为MTK_FLASH_INFO_AVAILABLE_TRUE,
也即:
CONFIG_METADATA_BEGIN(MTK_FLASH_INFO_AVAILABLE)
CONFIG_ENTRY_VALUE(MTK_FLASH_INFO_AVAILABLE_TRUE, MUINT8)
CONFIG_METADATA_END()
3.checkvendor/mediatek/proprietary/hardware/mtkcam/legacy/platform/<PLATFORM>/core/feat
ureio/drv/strobe/flashlight_drv.cpp 文件中,uninit方法中,是否有如下红色标示的code,如
果没有,请申请patch ALPS02488982
{
//logI("uninit line=%d",__LINE__);
//MHAL_LOG("[halSTROBEUninit] \n");
logI("[uninit] mUsers = %d\n", mUsers);
Mutex::Autolock lock(mLock);
android_atoMIC_dec(&mUsers);
if (mUsers == 0){
StrobeGlobalDriver* pKDrv;
pKDrv = StrobeGlobalDriver::getInstance();
int err;
err = pKDrv->uninit(mSensorDev, mStrobeId);
} else {
logI("[uninit] still %d users\n", mUsers);
}
m_bTempInit=0;
return StrobeDrv::STROBE_NO_ERROR;
}

Copyright © 2017-2020 微波EDA网 版权所有

网站地图

Top