一:Camera
添加一个摄像头驱动
vi kernel/arch/arm/mach-rk30/board-rk3168-tb-camera.c
static struct rkcamera_platform_data new_camera[] = {
+ new_camera_device(RK29_CAM_SENSOR_GC0329,
+ front,
+ RK30_PIN3_PB4,
+ 0,
+ 0, //mir
+ 3,
+ 0),
+ new_camera_device_end
}
和旋转相关,如果发现camera逆时针或者顺时针旋转了90
vi hardware/rk29/camera/CameraHal_Module.cpp
int camera_get_number_of_cameras(void)
{
if (ptr != NULL) {
ptr++;
- camInfoTmp[cam_cnt&0x01].facing_info.orientation = atoi(ptr);
+ camInfoTmp[cam_cnt&0x01].facing_info.orientation = 0;//atoi(ptr);
} else {
camInfoTmp[cam_cnt&0x01].facing_info.orientation = 0;
}
}