展锐 Camera 驱动流程 576 i 480i CVBS NTSC 摄像头调试

本文主要研究展讯平台Camera驱动和HAL层代码架构,熟悉展讯Camera的控制流程。 平台:Sprd-展讯平台 Hal版本:【HAL3】 知识点如下: 从HAL层到deiver层 1.Camera的打开(open)、初始化(init)和供电(power on)调用流程 2.预览(preview)调用流程

首先sprd的Camera驱动有区别于RK,Camera上电时序寄存器配置 是放在vender,可以参考

例如:tp2850

SC200L_Android10.0_R04_W21.33.6/vendor/sprd/modules/libcamera/sensor/sensor_drv/classic/sprd/tp2850/

首先我们先看:sensor_tp2850_mipi_yuv.c

帧率信息计算:(一般不用改动)

static cmr_int tp2850_drv_init_fps_info(cmr_handle handle)
{
    cmr_int rtn = SENSOR_SUCCESS;
    SENSOR_IC_CHECK_HANDLE(handle);
    struct sensor_ic_drv_cxt *sns_drv_cxt = (struct sensor_ic_drv_cxt *)handle;

    struct sensor_fps_info *fps_info = sns_drv_cxt->fps_info;
    struct sensor_trim_tag *trim_info = sns_drv_cxt->trim_tab_info;
    struct sensor_static_info *static_info = sns_drv_cxt->static_info;

    SENSOR_LOGI("E");
   

你可能感兴趣的:(Rk开发(RK3568),RK驱动开发,linux,嵌入式硬件)