Commit graph

2 commits

Author SHA1 Message Date
Adithya R
b9046bddf1 dubai: Disable only N78 5G SA band for front camera
We don't need to disable 5G entirely during front camera usage, because
apparently only N78 band in SA 5G (Jio) is affected. Lower bands, such
as N28, does not break front camera so let's just disable the offending
band via RIL OEM commands when front camera is active.

Reversed the band editing mechanism from stock qcom-moto-telephony-ext.
Inspired by 70eebccf64

Change-Id: I6ccb247a5d1b1521e1828304f5570269d9e3f221
2024-03-08 04:46:26 -07:00
Adithya R
8808e9b818 dubai: Disable 5G when front camera is in use
On some network(s) (confirmed on Jio), the usage of 5G kills front
camera and crashes the camera app. Logs reveal hardware or firmware
issues related to interference or bandwidth, which is out of my
expertise:

[   63.301897] CAM_ERR: CAM-ISP: cam_ife_csid_irq: 5016 CSID:2 RX_ERROR_LANE0_FIFO_OVERFLOW: Skew/Less Data on lanes/ Slow csid clock:300000000Hz

Until this can be actually fixed (if ever), a temporary workaround.

Inspired by a860cc8189

Change-Id: Ifefb36cf113a5f25feda771ea7729418553e74ed
2024-03-08 04:44:51 -07:00