A measurably significant amount of CPU time is spent in these routines
while the camera is open. These are also responsible for a grotesque
amount of dmesg spam, so let's nuke them.
Signed-off-by: Sultan Alsawaf <sultan@kerneltoast.com>
Change-Id: I1711e1e815e7c5abebdf888b752823bded926ebd
Signed-off-by: starlight5234 <starlight5234@protonmail.ch>
* CAF never deattaches the DMA buffer, creating a memory leak
every time this function is run. This issue becomes increasingly
problematic as it's run a metric ton every time camera is open,
which on Coral is pretty much every time you unlock the phone
and often while you run it too. Fix it by unmaping and detaching
the dma buffer.
Reported-by: celtare21 <celtare21@gmail.com>
Change-Id: Id21b7d8c77b24ad3c198f46a68f1408c5bd9f104
Signed-off-by: starlight5234 <starlight5234@protonmail.ch>
error return type defaults to 'int'
Signed-off-by: Carlos Jimenez(JavaShin-X)<javashin1986@gmail.com>
Change-Id: I134153e945af4d70ab679af062a35e2b6e0f75ea
Signed-off-by: starlight5234 <starlight5234@protonmail.ch>