Closed sjllls closed 3 years ago
Please note that the precompiled headers need to be updated after this PR.
The regulator GPIOs seem wrong, since they are already controlled by regulator-fixed
(also defined in this file). However, @kholk did the same in 9f693d2099307e1ab1f22c5e1123d7e9f63559f5 for the secondary rear camera.
What userspace failures are you observing?
Should we remove the fixed regulators to avoid possible conflicts?
Well, I do not have a full log now, but the kernel reported to us about this:
[ 10.995731] msm_cci_irq:1806 MASTER_0 error 0x10000000
[ 10.996159] msm_cci_i2c_read:965 read_words = 0, exp words = 1
[ 10.996283] msm_cci_i2c_read_bytes:1048 failed rc -22
[ 10.996344] msm_camera_cci_i2c_read: line 48 rc = -22
[ 10.996452] msm_sensor_match_id: s5k4h8: read id failed
[ 10.996512] msm_sensor_check_id:1429 match id failed rc -22
Should we remove the fixed regulators to avoid possible conflicts?
By the way, the stock kernel has a very similar configuration, I think it's just worth synchronize them to avoid conflicts.
For Ganges, fixed the wrong GPIO settings.
Seine is the latest platform uses mm-camera, which has 3 rear cameras.
3 rear cams + 1 front cams + 2 aux cams = 6
From log:
Camera hal sorted 6 cameras and camera service crashed because of out of array:
Thanks for Pavel Dubrova's found in camera hal.
So increase
MSM_MAX_CAMERA_SENSORS
to 6, all cameras worked on Seine.