#define XXX_REAL_PV_WIDTH 1600//(1600)#define XXX_REAL_PV_HEIGHT 1200//(1200)输出图像的分辨率
能读到ID,但不能preview:配置极性,拔pclk线,hv线看看极性反没反或者拔掉前摄像头,看看是不是前摄像头对总线有干扰
mt_set_gpio_out这个 是设置gpio口输出高电平还是低电平
mt_set_gpio_dir设定方向,gpio是输入还是输出
reset一般都是低有效,还没遇到芯片高有效的
有些摄像头是低有效,有些高有效
pwrdown一定都要配正确,否则无法进入摄像头.
先看电压是不是配对,然后powerdown脚极性是不是对
每条线路的电压是固定的
if(TRUE != hwPowerOn(CAMERA_POWER_VCAM_D2, VOL_1800/*VOL_2800*/,mode_name))
{
PK_DBG("[CAMERA SENSOR] Fail to enable digital power\n");
//return -EIO;
goto _kdCISModulePowerOn_exit_;
}
if(TRUE != hwPowerOn(CAMERA_POWER_VCAM_A, VOL_2800,mode_name))
{
PK_DBG("[CAMERA SENSOR] Fail to enable analog power\n");
//return -EIO;
goto _kdCISModulePowerOn_exit_;
}
if(TRUE != hwPowerOn(CAMERA_POWER_VCAM_D, VOL_1200,mode_name))
{
PK_DBG("[CAMERA SENSOR] Fail to enable digital power\n");
//return -EIO;
goto _kdCISModulePowerOn_exit_;
}
if(TRUE != hwPowerOn(CAMERA_POWER_VCAM_A2, VOL_2800,mode_name))
{
PK_DBG("[CAMERA SENSOR] Fail to enable analog power\n");
//return -EIO;
goto _kdCISModulePowerOn_exit_;
}