While we lookahead and merge the continuous reg settings to
burst, the packed setting len with uint8 data type may happen
overflow if the continuous reg setting count is larger than 255,
then some reg settings missed and lead to some sensor issues,
so modify the data type of len to avoid it.
CRs-Fixed: 3678429
Change-Id: I51a153d2340b84dd874ecd7bef6b3df1356611b0
Signed-off-by: chengxue <quic_chengxue@quicinc.com>
(cherry picked from commit aadcb5e66d37f556c570621e3b15e834601f074b)
This change limit the resolution for the single camera based on fuse.
Acquire will fail in case width is greater than the supported width.
CRs-Fixed: 3679491
Change-Id: I4f3e8dfdbe80aee994ca66f12bbbcdc7cda77676
Signed-off-by: Dharmender Sharma <quic_dharshar@quicinc.com>
Introduce Threshold IRQ and compose dynamically
allocated buffer with CCI BURST WRITE Commands
and finally write to the CCI HW register and
manage Threshold Interrupts in optimized way. So,
that SW Driver latencies will not affect the I2C
BURST WRITE functionality.
CRs-Fixed: 3562709
Change-Id: I5749ba3b61e28d8f2c1075f46f470f5a9c5bd6b5
Signed-off-by: Lokesh Kumar Aakulu <quic_lkumar@quicinc.com>
(cherry picked from commit 1e4f481db9076c766b7300bb65364a13a61247c1)
Add changes for cpas for raveline camera .
Create target specific header files for raveline.
CRs-Fixed: 3318758
Change-Id: Ib1bd54975a97bc4b09293cf8a82a1c3bbbeecb31
Signed-off-by: Pranav Sanwal <quic_psanwal@quicinc.com>
(cherry picked from commit fc03d26be204900d7e19054915b52fbd3353444f)
Updates board list of supported msm-mmrm boards to include volcono.
CRs-Fixed: 3671077
Signed-off-by: Alok Chauhan <quic_alokc@quicinc.com>
Change-Id: Ia5c26af59e029506d961052a4a4f9f8b3f0fef18
Integer pointer passed as a parameter to function
cam_irq_controller_register_dependent is used as an
array iterating over num_registers. This might corrupt
or misinterpret adjacent memory locations causing out
of bound access issues.
This change fixes this issue by passing an array of
size num_registers as a parameter to
cam_irq_controller_register_dependent. Also, initializes
struct dma_buf_map to 0.
CRs-Fixed: 3658797
Change-Id: I18260c9be4df77716f00c3f5980aeb506e35dcdc
Signed-off-by: Shivakumar Malke <quic_smalke@quicinc.com>
In case of null pointing addresses in payload at bufdone irq handling,
will lead to crash. This change will do proper sanity to avoid null
pointer access.
CRs-Fixed: 3634649
Change-Id: I4b988101001dfafdd4250eb75377d03a3a8474c2
Signed-off-by: Yash Upadhyay <quic_yupadhya@quicinc.com>
(cherry picked from commit 75ef1aef5d3b740a15eef8f5b60a453568ca5721)
In Mix SHDR use case, Camera switch to video mode is failing.
Reason is FCG configurations support not enabled for Cliffs.
So to fix this issue enabled FCG configuration for Cliffs.
CRs-Fixed: 3672728
Change-Id: I6cbc5db1d02c07bb4df422c4b07d6b7eca1df3c6
Signed-off-by: Dharmender Sharma <quic_dharshar@quicinc.com>
This change adds missing mutex unlock when the command descriptor
is not valid during configuring stream settings.
CRs-Fixed: 3663869
Change-Id: I891699141f8c1c1b6cdbafb0068d5c8117dacdf8
Signed-off-by: Haochen Yang <quic_haocyang@quicinc.com>
(cherry picked from commit 3a6161b01d7c7c5540d7019b70903dc60e9a84bc)
This change fixes possible out-of-bounds access while updating
cre_bus_rd by adding check if the port index is proper.
CRs-Fixed: 3595684
Change-Id: I10f2f7174f9df75118dbb1efed60e870ac2ac97f
Signed-off-by: Abhilash Kumar <quic_krabhi@quicinc.com>
(cherry picked from commit 410038d0ec8a80e7ed2d04ed9bd98f60a0d5de12)
Currently format defined for AI port is not proper. Correct
the format for AI port.
CRs-Fixed: 3640786
Signed-off-by: Alok Chauhan <quic_alokc@quicinc.com>
Change-Id: If7b3323a9732a6834434fe2226da841d8383b6f3
(cherry picked from commit 7c1e2d4468835b55ada86932120e9a2fea3b999e)
Remove the function call, is getting clock rates with mutex locked
in interrupt context.
CRs-Fixed: 3615675
Change-Id: I838fbd0b211e454de812b7631a1bb8072072ec75
Signed-off-by: Shadul Shaikh <quic_shaduls@quicinc.com>
(cherry picked from commit a42bed83fbfd0dff1940ce7b221ee3370f1e917e)
This change is to fix the value of min hbi in csid
path cfg1 register.
CRs-Fixed: 3184294
Change-Id: I2db440d8edf29844ee87067f79465089b81c205e
Signed-off-by: Ayush Kumar <quic_ayushkr@quicinc.com>
(cherry picked from commit 9784b390cdcd1c518fe1ce85af12bd02390149e7)
Rate limit the error log which is printed while SOF/EOF notification
to CRM fails to avoid excessive logging. Change few failure log
prints from CAM_DBG to CAM_WARN_RATE_LIMIT to identify the exact
cause of the error.
CRs-Fixed: 3467116
Change-Id: I4257ae17adc1e8a82f1ef39c2473089412193f52
Signed-off-by: Nirmal Abraham <quic_c_nabrah@quicinc.com>
(cherry picked from commit 6f7c3ec4cfd4483bdea78bb666a05fa2d61c07d7)