当前位置:   article > 正文

Android:展锐camera调试_展锐相机角度调整

展锐相机角度调整

展锐平台camera调试,主要涉及的文件修改,以后摄gc5025为例:

  1. device/sprd/roc1/ud710_2h10/BoardConfig.mk
  2. device/sprd/roc1/ud710_2h10/camera/sensor_config.xml
  3. kernel4.14/arch/arm64/boot/dts/sprd/ud710-2h10.dts
  4. vendor/sprd/modules/libcamera/sensor/af_drv/cn3937/Android.mk
  5. vendor/sprd/modules/libcamera/sensor/af_drv/cn3937/af_cn3927.h
  6. vendor/sprd/modules/libcamera/sensor/af_drv/cn3937/af_cn3927.c
  7. vendor/sprd/modules/libcamera/sensor/af_drv/vcm_lib_cfg.mk
  8. vendor/sprd/modules/libcamera/sensor/sensor_cfg.c
  9. vendor/sprd/modules/libcamera/sensor/sensor_drv/classic/Galaxycore/gc5035/Android.mk
  10. vendor/sprd/modules/libcamera/sensor/sensor_drv/classic/Galaxycore/gc5035/sensor_gc5035_mipi_raw.h
  11. vendor/sprd/modules/libcamera/sensor/sensor_drv/classic/Galaxycore/gc5035/sensor_gc5035_mipi_raw.c
  12. vendor/sprd/modules/libcamera/sensor/sensor_drv/sensor_lib_cfg.mk
  13. vendor/sprd/modules/libcamera/sensor/tuning_param/roc1/Galaxycore/gc5035/Android.mk
  14. vendor/sprd/modules/libcamera/sensor/tuning_param/roc1/Galaxycore/gc5035/param_manager.c
  15. vendor/sprd/modules/libcamera/sensor/tuning_param/roc1/Galaxycore/gc5035/parameters/NR/common/normal/3dnr_param.h
  16. vendor/sprd/modules/libcamera/sensor/tuning_param/roc1/Galaxycore/gc5035/parameters/NR/common/normal/bayer_nr_param.h
  17. vendor/sprd/modules/libcamera/sensor/tuning_param/roc1/Galaxycore/gc5035/parameters/NR/common/normal/bpc_param.h
  18. vendor/sprd/modules/libcamera/sensor/tuning_param/roc1/Galaxycore/gc5035/parameters/NR/common/normal/cap_3dnr_param.h
  19. vendor/sprd/modules/libcamera/sensor/tuning_param/roc1/Galaxycore/gc5035/parameters/NR/common/normal/cce_uvdiv_param.h
  20. vendor/sprd/modules/libcamera/sensor/tuning_param/roc1/Galaxycore/gc5035/parameters/NR/common/normal/cfai_param.h
  21. vendor/sprd/modules/libcamera/sensor/tuning_param/roc1/Galaxycore/gc5035/parameters/NR/common/normal/cnr_param.h
  22. vendor/sprd/modules/libcamera/sensor/tuning_param/roc1/Galaxycore/gc5035/parameters/NR/common/normal/ee_param.h
  23. vendor/sprd/modules/libcamera/sensor/tuning_param/roc1/Galaxycore/gc5035/parameters/NR/common/normal/grgb_param.h
  24. vendor/sprd/modules/libcamera/sensor/tuning_param/roc1/Galaxycore/gc5035/parameters/NR/common/normal/iircnr_param.h
  25. vendor/sprd/modules/libcamera/sensor/tuning_param/roc1/Galaxycore/gc5035/parameters/NR/common/normal/imbalance_param.h
  26. vendor/sprd/modules/libcamera/sensor/tuning_param/roc1/Galaxycore/gc5035/parameters/NR/common/normal/ivst_param.h
  27. vendor/sprd/modules/libcamera/sensor/tuning_param/roc1/Galaxycore/gc5035/parameters/NR/common/normal/ltm_param.h
  28. vendor/sprd/modules/libcamera/sensor/tuning_param/roc1/Galaxycore/gc5035/parameters/NR/common/normal/ppe_param.h
  29. vendor/sprd/modules/libcamera/sensor/tuning_param/roc1/Galaxycore/gc5035/parameters/NR/common/normal/pre_3dnr_param.h
  30. vendor/sprd/modules/libcamera/sensor/tuning_param/roc1/Galaxycore/gc5035/parameters/NR/common/normal/rgb_afm_param.h
  31. vendor/sprd/modules/libcamera/sensor/tuning_param/roc1/Galaxycore/gc5035/parameters/NR/common/normal/rgb_dither_param.h
  32. vendor/sprd/modules/libcamera/sensor/tuning_param/roc1/Galaxycore/gc5035/parameters/NR/common/normal/sw3dnr_param.h
  33. vendor/sprd/modules/libcamera/sensor/tuning_param/roc1/Galaxycore/gc5035/parameters/NR/common/normal/uv_cdn_param.h
  34. vendor/sprd/modules/libcamera/sensor/tuning_param/roc1/Galaxycore/gc5035/parameters/NR/common/normal/uv_postcdn_param.h
  35. vendor/sprd/modules/libcamera/sensor/tuning_param/roc1/Galaxycore/gc5035/parameters/NR/common/normal/vst_param.h
  36. vendor/sprd/modules/libcamera/sensor/tuning_param/roc1/Galaxycore/gc5035/parameters/NR/common/normal/ynr_param.h
  37. vendor/sprd/modules/libcamera/sensor/tuning_param/roc1/Galaxycore/gc5035/parameters/NR/common/normal/ynrs_param.h
  38. vendor/sprd/modules/libcamera/sensor/tuning_param/roc1/Galaxycore/gc5035/parameters/NR/common/normal/yuv_noisefilter_param.h
  39. vendor/sprd/modules/libcamera/sensor/tuning_param/roc1/Galaxycore/gc5035/parameters/NR/common/normal/yuv_precdn_param.h
  40. vendor/sprd/modules/libcamera/sensor/tuning_param/roc1/Galaxycore/gc5035/parameters/isp_nr.h
  41. vendor/sprd/modules/libcamera/sensor/tuning_param/roc1/Galaxycore/gc5035/parameters/sensor_gc5035_raw_param_cap_0.c
  42. vendor/sprd/modules/libcamera/sensor/tuning_param/roc1/Galaxycore/gc5035/parameters/sensor_gc5035_raw_param_common.c
  43. vendor/sprd/modules/libcamera/sensor/tuning_param/roc1/Galaxycore/gc5035/parameters/sensor_gc5035_raw_param_main.c
  44. vendor/sprd/modules/libcamera/sensor/tuning_param/roc1/Galaxycore/gc5035/parameters/sensor_gc5035_raw_param_prv_0.c
  45. vendor/sprd/modules/libcamera/sensor/tuning_param/roc1/Galaxycore/gc5035/parameters/sensor_gc5035_raw_param_video_0.c
  46. vendor/sprd/modules/libcamera/sensor/tuning_param/roc1/Galaxycore/gc5035/parameters/sensor_gc5035_raw_param_video_1.c
  47. vendor/sprd/modules/libcamera/sensor/tuning_param/tunning_lib_cfg.mk

vendor/sprd/modules/libcamera/sensor/af_drv/cn3937/
vendor/sprd/modules/libcamera/sensor/sensor_drv/classic/Galaxycore/gc5035/
vendor/sprd/modules/libcamera/sensor/tuning_param/roc1/Galaxycore/gc5035/

以上driver和param新增的目录就不列举了,一般芯片厂会提供,至于param参数,AF文件也可以参考平台已有的代码添加,其他的主要修改点如下:

device/sprd/roc1/ud710_2h10/BoardConfig.mk

  1. #tuning param support list
  2. TUNING_PARAM_LIST := "gc8034,gc8034_rear,hi846_front,hi846,gc5035"

device/sprd/roc1/ud710_2h10/camera/sensor_config.xml

  1. <!-->
  2. sensor id 0
  3. <-->
  4. <CameraModuleCfg>
  5. <SlotId>0</SlotId>
  6. <SensorName>gc5035</SensorName>
  7. <Facing>BACK</Facing>
  8. <Orientation>270</Orientation>
  9. <Resource_cost>0</Resource_cost>
  10. <VCM>
  11. <AfName>cn3927</AfName>
  12. <Mode>2</Mode>
  13. </VCM>
  14. <OTP>
  15. <E2prom>
  16. <OtpName>general</OtpName>
  17. <I2cAddr>0xa0</I2cAddr>
  18. <E2promNum>0</E2promNum>
  19. <E2promSize>8192</E2promSize>
  20. </E2prom>
  21. </OTP>
  22. <TuningParameter>
  23. <TuningName>gc5035</TuningName>
  24. </TuningParameter>
  25. </CameraModuleCfg>

kernel4.14/arch/arm64/boot/dts/sprd/ud710-2h10.dts

  1. &i2c0 {
  2. status = "okay";
  3. sensor_main2: sensor-main2@6c {
  4. compatible = "sprd,sensor-main2";
  5. reg = <0x6c>;
  6. clock-names = "clk_src","sensor_eb",
  7. "clk_96m","clk_76m8",
  8. "clk_48m","clk_26m";
  9. clocks = <&mm_clk CLK_SENSOR2>,<&mm_gate CLK_MM_SENSOR2_EB>,
  10. <&g12_pll CLK_TWPLL_96M>,<&g12_pll CLK_TWPLL_76M8>,
  11. <&g12_pll CLK_TWPLL_48M>,<&ext_26m>;
  12. vddio-supply = <&vddcamio>;
  13. vddcama-supply = <&vddcama0>;
  14. vddcamd-supply = <&vddcamd0>;
  15. vddcammot-supply = <&vddcammot>;
  16. sprd,phyid = <5>;
  17. csi = <&csi1>;
  18. reset-gpios = <&ap_gpio 41 0>;
  19. power-down-gpios = <&ap_gpio 40 0>;
  20. status = "okay";
  21. };
  22. };
  23. &i2c1 {
  24. status = "okay";
  25. sensor_sub: sensor-sub@20 {
  26. compatible = "sprd,sensor-sub";
  27. reg = <0x20>;
  28. clock-names = "clk_src","sensor_eb",
  29. "clk_96m","clk_76m8",
  30. "clk_48m","clk_26m";
  31. clocks = <&mm_clk CLK_SENSOR1>,<&mm_gate CLK_MM_SENSOR1_EB>,
  32. <&g12_pll CLK_TWPLL_96M>,<&g12_pll CLK_TWPLL_76M8>,
  33. <&g12_pll CLK_TWPLL_48M>,<&ext_26m>;
  34. vddio-supply = <&vddcamio>;
  35. vddcama-supply = <&vddcama1>;
  36. vddcamd-supply = <&vddcamd1>;
  37. vddcammot-supply = <&vddcammot>;
  38. sprd,phyid = <0>;
  39. csi = <&csi0>;
  40. reset-gpios = <&ap_gpio 45 0>;
  41. power-down-gpios = <&ap_gpio 47 0>;
  42. status = "okay";
  43. };
  44. sensor_main: sensor-main@6c {
  45. compatible = "sprd,sensor-main";
  46. reg = <0x6c>;
  47. clock-names = "clk_src","sensor_eb",
  48. "clk_96m","clk_76m8",
  49. "clk_48m","clk_26m";
  50. clocks = <&mm_clk CLK_SENSOR0>,<&mm_gate CLK_MM_SENSOR0_EB>,
  51. <&g12_pll CLK_TWPLL_96M>,<&g12_pll CLK_TWPLL_76M8>,
  52. <&g12_pll CLK_TWPLL_48M>,<&ext_26m>;
  53. vddio-supply = <&vddcamio>;
  54. vddcama-supply = <&vddcama1>;
  55. vddcamd-supply = <&vddcamd1>;
  56. vddcammot-supply = <&vddcammot>;
  57. sprd,phyid = <3>;
  58. csi = <&csi0>;
  59. reset-gpios = <&ap_gpio 44 0>;
  60. power-down-gpios = <&ap_gpio 46 0>;
  61. status = "okay";
  62. };
  63. };

vendor/sprd/modules/libcamera/sensor/af_drv/vcm_lib_cfg.mk

  1. PRODUCT_PACKAGES += libvcm_dw9714p \
  2. libvcm_lc898213 \
  3. libvcm_dw9768v \
  4. libvcm_dw9800 \
  5. libvcm_dw9714 \
  6. libvcm_dw9718s \
  7. libvcm_zc524 \
  8. libvcm_cn3927

vendor/sprd/modules/libcamera/sensor/sensor_cfg.c

  1. /*---------------------------------------------------------------------------*
  2. * Constant Variables *
  3. *---------------------------------------------------------------------------*/
  4. const SENSOR_MATCH_T back_sensor_infor_tab[] = {
  5. ... ...
  6. // gc area
  7. #ifdef GC5035
  8. {MODULE_SUNNY, "gc5035", &g_gc5035_mipi_raw_info, {&cn3927v_drv_entry, 0}, {&general_otp_entry, 0x6e, SINGLE_CAM_ONE_EEPROM, 8192}},
  9. #endif
  10. };

vendor/sprd/modules/libcamera/sensor/sensor_drv/sensor_lib_cfg.mk

  1. PRODUCT_PACKAGES += libsensor_imx351 \
  2. ... ...
  3. libsensor_gc8034 \
  4. libsensor_gc5035

vendor/sprd/modules/libcamera/sensor/tuning_param/tunning_lib_cfg.mk

  1. #roc1
  2. PRODUCT_PACKAGES += libparam_gc5035

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/繁依Fanyi0/article/detail/1005143
推荐阅读
相关标签
  

闽ICP备14008679号