Add a couple of fields to the msm_stats_buf structure
for cache coherence support on stats buffers from
user-space.
Change-Id: I3553fcf6359e4e748eb309d4a0a5979999d96f09
Signed-off-by: Ankit Premrajka <ankitp@codeaurora.org>
Add media device node for each camera sensor
Sensor and video node info will be used
for device discovery from userspace
Change-Id: Id8c2f3e952c83259bb6b273cb6b3f04ed93d0ef3
Signed-off-by: Kevin Chan <ktchan@codeaurora.org>
More information needs to pass to userspace.
Change-Id: Ia7c5a5cf9a7f48e1c6167fd3ca2ddd56fbdbf8c9
Signed-off-by: Mingcheng Zhu <mingchen@codeaurora.org>
When camera userspace daemon crashes, the server fd
will be close, which trigger the msm_server_close
function, we will check if there is an active camera
session. If camera is active, we will send a v4l2
event to HAL layer to signal an error. Application
will exit gracefully and close other open fds and
exit camera session.
Change-Id: I14ebc864d6cace7ca6f4dbfb935623a76eeccaa8
Signed-off-by: Kevin Chan <ktchan@codeaurora.org>
The application layer expects the view angle of the camera lens.
The lens vertical and horizontal view angle of the sensors
imx074 and ov2720 are added.
Change-Id: I513fbbdf7fdfc5df0969fe54e05c7549123f6bcb
Signed-off-by: Jeyaprakash Soundrapandian <jsound@codeaurora.org>
Add Initial sensor driver support for 5MP OV5647
and 1MP OV7692 on EVB 1.0 platform.
Change-Id: I8155abe1ff3c388561feed3a032c6603df892e1e
Signed-off-by: Su Liu <suliu@codeaurora.org>
Signed-off-by: Lokesh Kumar Aakulu <lkumar@codeaurora.org>
Two camera IOCTL types are enumerated using
the same number by mistake. Rectify the mistake.
Change-Id: I48ee8d0ca543c19a3f692ed2ca5baa950edacdf2
Signed-off-by: Kiran Kumar H N <hurlisal@codeaurora.org>
During inline JPEG encoding, one VFE output is routed into
internal memory (IMEM) instead of external memory. The JPEG
encoding hardware (GEMINI) will read from IMEM and generates
JPEG bitstream.
Change-Id: I12d3600524538ab85021dd8882af0404bddc488f
Signed-off-by: Shuzhen Wang <shuzhenw@codeaurora.org>
Signed-off-by: Kevin Chan <ktchan@codeaurora.org>
Signed-off-by: Jignesh Mehta <jigneshm@codeaurora.org>
With this change we achieve multiple things related
to correct HDR functionality. First, we do not
always configure ping and pong to be the same buffer in
case of the snapshot mode. This would help support taking
mulitple snapshots. Second, we support for logic to skip
frames in case of snapshot, a necessity for the exposure
metering feature. Third, we support post processing
divert of both snapshot and thumbnail buffers to be
taken from either mctl queue or video queue, to be
determined at runtime.
Change-Id: Ibcf2bbfc171b2686ca44e6366feadf435368fa5f
Signed-off-by: Ankit Premrajka <ankitp@codeaurora.org>
Add support for MCTL camera node. This
is a v4l2 device node which will be used
by the camera daemon process to configure
buffers for VFE.
Change-Id: I8415288fb6881376a8c1e78ca03bb12f8f655863
Signed-off-by: Kiran Kumar H N <hurlisal@codeaurora.org>
Signed-off-by: Ujwal Patel <ujwalp@codeaurora.org>
Configure upto two outputs of VFE desginated
as primary and secondary. Depending on the irq,
only send message type primary and secondary and
allow MCTL to interpret these messages.
Change-Id: I25568cb6bba5792658b0570383f64ddb58e21421
Signed-off-by: Kiran Kumar H N <hurlisal@codeaurora.org>
Signed-off-by: Ujwal Patel <ujwalp@codeaurora.org>
When the daemon asks to reserve a free buffer, get the
correct address by using the image mode to get to the
correct camera instance and populating the buffer address.
Change-Id: I23c6e00458562ef2b9880cbffe2d6a100de80ea1
Signed-off-by: Kevin Chan <ktchan@codeaurora.org>
Signed-off-by: Kiran Kumar H N <hurlisal@codeaurora.org>
Signed-off-by: Ujwal Patel <ujwalp@codeaurora.org>
New targets are following V4L2 architecture for
camera. Update 7x27a camera drivers to support
new V4L2 architecture to unify all camera drivers
in the same architecture.
Signed-off-by: Suresh Vankadara <svankada@codeaurora.org>
Change-Id: Ie23ac982375041c06b68537d5784d8cdbbc9bf04
Enable camera driver to output preview frames in YV12 format.
Change-Id: Ib4e358460eb922c6a06314682380c4de30f81319
Signed-off-by: Alekhya,Monika <malekh@codeaurora.org>
This timestamp is needed in the userspace to flush old
video frames.
Change-Id: I432e5f5d35581b10857b41930d7751500ea131dc
Signed-off-by: Guruprasad Gaonkar <ggaonk@codeaurora.org>
Add a new IOCTL to handle the completion of diverted
frame.
Change-Id: I3bbfc2bd3bfdfcd5e078713c068f3f6f97f7239a
Signed-off-by: Mingcheng Zhu <mingchen@codeaurora.org>
This change adds ion support to native (non V4L2)
camera driver. It also adds ion structures to the msm_frame
structure.
Change-Id: I9be720e7d9924074706c93eec52178cb6f130af6
Signed-off-by: Ankit Premrajka <ankitp@codeaurora.org>
If the application uses YV12 or similar image
formats which have more than 2 planes, then enable
all the 3 channels of VFE output.
Change-Id: I31af22a4047a38a12fe09a0b07a68f435506aad1
Signed-off-by: Kiran Kumar H N <hurlisal@codeaurora.org>
Add supprt for ov5640 and ov7692 for QRD devices.
Change-Id: I9aa5b5031f0cd05f88fa5958a8dd4dbea18f04ab
Signed-off-by: Taniya Das <tdas@codeaurora.org>
Signed-off-by: Lokesh Kumar Aakulu <lkumar@codeaurora.org>
The current postprocessing framework uses single
planar structures. Change the data structures
to support multiplanar image formats.
Change-Id: I27dc6f4c544a4a628bbf2b073d6abd899450a396
Signed-off-by: Kiran Kumar H N <hurlisal@codeaurora.org>
Incoporate binning factor to calculate exposure time
Change-Id: I31f6896ae7b36f606b8a407e5662d341f8f8ff1e
Signed-off-by: Kevin Chan <ktchan@codeaurora.org>
Camera video timing pixel clk and output pixel clk
can be different. Added vt_pixel_clk and op_pixel_clk
to address the difference.
Change-Id: I8770c9897bc340908776d01a7583fed84398ff33
Signed-off-by: Kevin Chan <ktchan@codeaurora.org>
- The current camera event interface is limited
to 64 bytes. This restricts the interaction
between the driver and the userspace since
the current structures used are already using
the entire 64 bytes. Hence change the interface
to overcome this limitation and accomodate more
usecases(eg: postprocessing for multiplanar formats)
- Renamed the event structure to a more generic
name.
Change-Id: Id3c635e2652491da4efd8fe34c32d63464b83755
Signed-off-by: Kiran Kumar H N <hurlisal@codeaurora.org>
1) Added actuator framework with common functions abstracted out
2) Added actuator as a sub device in media controller
3) coupled sensor with its specific actuator in board file
4) Added new actuator control structure and new enum for communication
between user space and kernel space
5) Added common logging module with different logging levels
Signed-off-by: Sreesudhan Ramakrish Ramkumar <srramku@codeaurora.org>
Conflicts:
arch/arm/configs/msm8960_defconfig
Add quarter and full size as a valid resolution.
Both size are always present and used in sensor driver.
Signed-off-by: Kevin Chan <ktchan@codeaurora.org>
Add support for multi-planar image formats. This
allows the luma and chroma planes of the image to
reside in different memory locations.
Signed-off-by: Kiran Kumar H N <hurlisal@codeaurora.org>
Current implementation has a bug in v4l2 event subscription.
Also it is good to make the kernel to be transparent
to those notification events from daemon to HAL.
Signed-off-by: Mingcheng Zhu <mingchen@codeaurora.org>
Added more error checking code
Separate dimension specific register settings into separate structure
Code flow improvements
Signed-off-by: Kevin Chan <ktchan@codeaurora.org>
Initial version of LED driver for Cdp & Mdp comprise
- Enable SC628A LED Driver chip for 8960.
- Configure SX150X Gpio Expander chip.
- Restructure Camera Gpio Mux settings table
which will later be used to toggle function select for LED Flash
between Mdp & Cdp.
Signed-off-by: Nishant Pandit <npandit@codeaurora.org>
This simplies the way event is propagated. Driver only needs
to pass on the v4l2_event structure directly.
Signed-off-by: Shuzhen Wang <shuzhenw@codeaurora.org>
seperately.
decouple preview and recording path configuration
by configuring the buffers during preview start
and recording start respectively.
Signed-off-by: Kiran Kumar H N <hurlisal@codeaurora.org>
Signed-off-by: Mingcheng Zhu <mingchen@codeaurora.org>
This reverts commit 66882a5046143601429632a0b589d9ffeeb3c668.
This change will be submitted later.
Signed-off-by: Kiran Kumar H N <hurlisal@codeaurora.org>