在QCOM SDM670/845等平台,存在一种chi-cdk类型的camera接口层
CHI功能的官方解释:
CHI allows customers to have the choice of enhancing their camera product by adding external components without changing the Qualcomm code.
Following are external components supported by CHI:
−Custom Node
−Custom Algorithm
−CHI override ->for adding custom use-cases
−Topology
CHI使得用户可以在不更改高通代码的情况下,通过添加外围元件,来增强camera
支持的外围元件:
−Custom Node
−Custom Algorithm 算法
−CHI override ->for adding custom use-cases
−Topology 拓扑
这个代码架构于普通架构完全不同,整理对应的camera bring up资料
文件修改:
The files at the following locations are modified during build compilation.
Sensor driver XML files are at
chi-cdk/vendor/sensor/default/
Module configuration files
chi-cdk/vendor/module/
Kernel dts files are at
kernel/msm-4.9/arch/arm64/boot/dts/qcom/
Submodule driver XML files are at
chi-cdk/vendor/sensor/default/
Example: chi-cdk/vendor/sensor/default/actuator/
The driver binary in the device vendor makefile to be included in the build is at
vendor/qcom/proprietary/common/config/device-vendor.mk
Example: MM_CAMERA += com.qti.sensormodule.
chi-cdk/vendor/module/
例如:
xsi:noNamespaceSchemaLocation="..\..\cdk\sensor\camxmoduleconfig.xsd">
具体的submodule目录则在
chi-cdk/vendor/
例如sensor的xml文件:
xml文件中配置各个submodule的对应信息(即驱动文件文件)。功能类似于vendor/qcom/proprietory/mm-camera/mm-camera2/media-controller/modules/sensors/sensor/libs/xxx/xxx.h
sensor xml文件中包含多个模块:
slaveinfo 包含用于probe的sensor 信息
regAddrInfo
resolutionInfo
exposureControlInfo
streamOnSettings
groupHoldOnSettings
initSettings等
具体对应配置可以参考高通官方文档 80-P9301-97 C Camera Sensor Driver Bringup Guide