Camera system from stock 2.6.35 kernel
Camera changes for 3.0 kernel
msm: camera: unnecessary kernel log cleanup.

Cleanup the incorrect usage of pr_info, pr_err and printk.

Change-Id: Iee3008d53243ce2152fb7f202ab062a4bf04f88e
Signed-off-by: Ninad Patgaonkar <ninadp@codeaurora.org>
msm: camera: Fix the broken MCE functionality

Corrected the offset values for MCE registers

Change-Id: I41c5baaf90b294506234c1e69b919c5283abef59
CRs-Fixed: 278920
Signed-off-by: Lakshmi Narayana Kalavala <lkalaval@codeaurora.org>
msm: jpeg: Reset buffer status when output buffer queue is empty

Reset buffer status for output buffer obtained from encoder
when output buffer is empty

Signed-off-by: Srinivasan Kannan <srinkann@codeaurora.org>
(cherry picked from commit ccc917d272380c341c7462d081087b6ad18bed26)

Change-Id: Icc7ca9cf75d93e132d205234e3e88e8ea0e82cc6
Signed-off-by: Shruthi Krishna <skrish@codeaurora.org>
msm: gemini: Remove PMEM reference for input buffer

Remove PMEM reference for input buffer to prevent PMEM
leak during error case.

CRs-Fixed: 287889
Signed-off-by: Sunid Wilson <sunidw@codeaurora.org>
(cherry picked from commit f02545235282df44dd808c523d0ec9c04be6d4fe)

Change-Id: I1b7a29873b13b8f161b7fa5d6351edf6ad8eab23
Signed-off-by: Sunil Joseph <sunilj@codeaurora.org>
msm: camera: Clean up during open failure

Updated the reference count when open fails and did
proper cleanup.

CRs-Fixed: 287648
Signed-off-by: Sunid Wilson <sunidw@codeaurora.org>
(cherry picked from commit f521ef6c4402895abcfc46520db9dd6be81c28b5)

Change-Id: I6bf5d4b85022cfd2682fcec4f4c90ef8ce2fb2d2
Signed-off-by: Sunil Joseph <sunilj@codeaurora.org>
msm: camera: Handle event queue overflow error

When the config thread crashes or is in bad state, the camera
driver wont get notification which prevents the driver from
shutting down. Added code to handle this usecase.

Signed-off-by: Sunid Wilson <sunidw@codeaurora.org>
(cherry picked from commit 4882c1fdffba47564665ef483bf5fbcd73c23484)

Change-Id: I643f5ac740627e140ba65b662558258f6c1f2c2b
Signed-off-by: Shruthi Krishna <skrish@codeaurora.org>
msm: camera: Remove additional check in msm_queue_drain

Removed additional check in msm_queue_drain to make
sure that the list is getting emptied in all cases.

Signed-off-by: Sunid Wilson <sunidw@codeaurora.org>
(cherry picked from commit 33e638a1c229765d06a76bc84351de9407026782)

Change-Id: I6b498241490c4264f93ea37b1fa97ebda4cde910
Signed-off-by: Raj Kushwaha <rajk@codeaurora.org>
msm: camera: Free buffers from frame queue at open

Free all pending frames in frame queue before cam_frame
thread opens frame device to avoid duplication of buffer
free

CRs-Fixed: 318202
Change-Id: I25d1718a37a94fa83563c4b6e99a1b7560917a7f
Signed-off-by: Suresh Vankadara <svankada@codeaurora.org>
(cherry picked from commit 5dcbcb9f04a94aa6740718a1b6d39ce4548d869c)