Commit Graph

933 Commits

Author SHA1 Message Date
Suresh Vankadara
055cb8ecdd msm: camera: Add support to V4L2 architecture
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
2012-01-26 07:35:24 +05:30
Linux Build Service Account
f3002121e8 Merge "msm: rc: Add support for MSM GPIO TSOP IR Reciever driver." into msm-3.0 2012-01-25 02:20:43 -08:00
Srinivasa Rao Uppala
d3184a4f6a radio: iris: Add signal detection threshold IOCTL's
Add the IOCTL's to get the signal detection parameters like
SINR, SINR samples, Low detection threshold and high
detection threshold

Change-Id: I0b8f8d978bd25990098b20073fd664e649af3b49
CRs-Fixed: 322688
Signed-off-by: Srinivasa Rao Uppala <uppalas@codeaurora.org>
2012-01-23 21:16:19 +05:30
Ankush Khandelwal
d8881e83e2 msm: rc: Add support for MSM GPIO TSOP IR Reciever driver.
Add GPIO based TSOP IR Reciever driver. It decodes signals based on
NEC protocol.

Change-Id: Ic19fab61152a99828806cf451ae797797602ec70
Signed-off-by: Ankush Khandelwal <akhand@codeaurora.org>
2012-01-23 17:54:31 +05:30
Alekhya,Monika
fc81e10421 msm-camera: Add support for YV12 preview format
Enable camera driver to output preview frames in YV12 format.

Change-Id: Ib4e358460eb922c6a06314682380c4de30f81319
Signed-off-by: Alekhya,Monika <malekh@codeaurora.org>
2012-01-20 17:12:20 +05:30
Linux Build Service Account
9b2463db60 Merge "radio: iris: Increase the RT buffer to fit the RT header" into msm-3.0 2012-01-18 04:39:10 -08:00
Linux Build Service Account
7756577620 Merge changes I99f8604d,I50a535e8 into msm-3.0
* changes:
  msm: v4l2: add ISP support for more formats.
  msm: v4l2: fix support for test app.
2012-01-17 12:27:40 -08:00
Srinivasa Rao Uppala
6983984c30 radio: iris: Increase the RT buffer to fit the RT header
Increase the RDS Radio text buffer size to fit the RT header.
And also limit the Radio text to maximum allowed length

Change-Id: Ib38b4bfaae83d5f381a831c2e202c7f3a52698b4
CRs-Fixed: 328036
Signed-off-by: Srinivasa Rao Uppala <uppalas@codeaurora.org>
2012-01-17 11:17:19 +05:30
Linux Build Service Account
23cddc7fbb Merge "radio: iris: Incorporate changes in tune status event" into msm-3.0 2012-01-16 06:46:58 -08:00
Srinivasa Rao Uppala
acdebccd13 radio: iris: Incorporate changes in tune status event
SINR and interference detection threshold parameters are added to the
tune status event. Update the driver to incorporate the changes.

CRs-Fixed: 322478
Change-Id: Ia883c85469ba4d4025d518b6ddba371c755f3763
Signed-off-by: Srinivasa Rao Uppala <uppalas@codeaurora.org>
2012-01-16 12:28:02 +05:30
Ankit Premrajka
d814743600 msm: v4l2: fix support for test app.
This commit fixes bug in query-cap ioctl and
adds ION support for case where buffers are
allocated in the kernel with mmap. This change
is required to fix the V4L2 command line test app.

Change-Id: I50a535e8a0af60ff7d86341a3f726ed81a630fb0
Signed-off-by: Ankit Premrajka <ankitp@codeaurora.org>
2012-01-13 09:30:25 -08:00
Vinay Kalia
699edcfca1 wfd: msm: Adds encoder sub-device.
Adds encoder subdevice to Wifi display driver.
Captured output from MDP can be fed to this
subdevice to get encoded.

Change-Id: Iacdc551ef266525dea27bb99f98833093a57fb39
Signed-off-by: Vinay Kalia <vkalia@codeaurora.org>
2012-01-12 19:02:19 -08:00
Vinay Kalia
b559874ae9 msm: vidc: Adds video header files.
Adds video header files in include location
so that they can be included by other kernel
modules, eg: by v4l2 capture driver for
Wifi display.

Change-Id: Ib7621d8f551e0d0e8660b19db25c2ff6a501cd67
Signed-off-by: Vinay Kalia <vkalia@codeaurora.org>
2012-01-09 15:55:45 -07:00
Anantha Krishnan
29f1d9352f radio-tavarua: Set the lower and upper band limits for all regions
Configure the lower and upper band limits for all regions.

Change-Id: Ie9ceced02be0d3f5b335fb7eb6594d5783823f91
CRs-Fixed: 326007, 325078
Signed-off-by: Anantha Krishnan <ananthk@codeaurora.org>
2012-01-02 20:40:12 +05:30
Guruprasad Gaonkar
4c7758f294 Camera : Change to retreive system time from Kernel
This timestamp is needed in the userspace to flush old
video frames.

Change-Id: I432e5f5d35581b10857b41930d7751500ea131dc
Signed-off-by: Guruprasad Gaonkar <ggaonk@codeaurora.org>
2011-12-19 20:48:12 -07:00
Rajakumar Govindaram
6bc004a291 msm: camera: Support for MT9M114 YUV sensor
Initial support for Aptina 720p YUV sensor

Change-Id: Idb2eb0c1d98482077cb170f3fc581b1e548dc1ee
Signed-off-by: Rajakumar Govindaram <crajaku@codeaurora.org>
2011-12-14 07:30:54 -07:00
Anantha Krishnan
71d6fa6ccd radio-tavarua: Add place holders for IRIS specific commands
Change-Id: I4bcf4316b23ce0f9c02815c0bc0d495ee49df51f
CRs-Fixed: 324758
Signed-off-by: Srinivasa Rao Uppala <uppalas@codeaurora.org>
2011-12-14 11:08:11 +05:30
Linux Build Service Account
8ce725fb06 Merge "radio-iris: Add place holder for TAVARUA specific commands." into msm-3.0 2011-12-09 13:32:33 -08:00
Anantha Krishnan
61dc15eae1 radio-iris: Add place holder for TAVARUA specific commands.
Change-Id: I83226f1d6dce998dab0bde990c6855b0763ac0f3
CRs-Fixed: 314648
Signed-off-by: Anantha Krishnan <ananthk@codeaurora.org>
2011-12-09 15:39:19 +05:30
Linux Build Service Account
5ba1e3291c Merge "radio-tavarua: Add host side support for the new FM Search Algorithm" into msm-3.0 2011-12-08 14:54:13 -08:00
Srinivasa Rao Uppala
c5320c2e36 radio: iris: Fix the FM FTM Tx configuration failure
FM configuration failure is due to two issues. Since the calibration
will take around 6 seconds to complete, any commands sent to SOC
during that time will fail.Added a state machine to prevent the
execution of another command while FM calibration is in progress.

The other issues is with the Get tuner command.FM kernel driver is
sending the Rx specific command to get the Tx configuration.
Send the proper command to get the TX configuration parameters.

CRs-Fixed: 317658
Change-Id: I54e637c267cbdb88d15d68d8ad7ceb72f985c54d
Signed-off-by: Srinivasa Rao Uppala <uppalas@codeaurora.org>
2011-12-08 12:37:34 -07:00
Anantha Krishnan
40bcd05937 radio-tavarua: Add host side support for the new FM Search Algorithm
Change-Id: Iba497b84e525d08fa588bb7f58ff6a238452c47c
CRs-Fixed: 314648
Signed-off-by: Anantha Krishnan <ananthk@codeaurora.org>
2011-12-07 12:47:26 +05:30
Mingcheng Zhu
8feaa3fe88 msm: separating frame divert and post process path.
Add a new IOCTL to handle the completion of diverted
frame.

Change-Id: I3bbfc2bd3bfdfcd5e078713c068f3f6f97f7239a
Signed-off-by: Mingcheng Zhu <mingchen@codeaurora.org>
2011-12-02 16:35:40 -08:00
Venkateshwarlu Domakonda
3a0b75d0af radio: iris: Fix the calibration issue.
Fix the preset issue after the calibration

Change-Id: I5c0c694304b70be48462feaf64f688109596e781
CRs-Fixed: 318867
Signed-off-by: Venkateshwarlu Domakonda <Venkateshwarlu@codeaurora.org>
2011-11-29 17:05:32 +05:30
Anantha Krishnan
bdb128c752 radio-tavarua: Add private IOCTLs to poke threshold values.
Add V4L2 private IOCTL commands to poke On-channel and
Off-channel detection threshold values.

Change-Id: I299a2ba7c5f25bcb36688ae0f7de7aff255b7d03
CRs-Fixed: 320147
Signed-off-by: Anantha Krishnan <ananthk@codeaurora.org>
2011-11-23 16:56:55 +05:30
Ankit Premrajka
3e90b9f726 msm: camera: add ion support to native driver.
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>
2011-11-14 08:58:26 -08:00
Mingcheng Zhu
996be18a0a msm-camera: allow non-zero Y offset.
Change-Id: I73238a6cfac0feb146279516f78f4a51c74bc9e9
Signed-off-by: Mingcheng Zhu <mingchen@codeaurora.org>
2011-11-09 12:56:23 -08:00
Linux Build Service Account
1900dc06f3 Merge "msm: camera: use ION for stats and userptr buffers in V4L2 driver." into msm-3.0 2011-11-08 18:03:38 -08:00
Azam Sadiq Pasha Kapatrala Syed
5156dd4235 msm: camera: Add update cmd support for Demosaic.
Add support for update command for demosaic module.

Change-Id: I06cc7c4e41cbc8c8486277151edc577097661cab
Signed-off-by: Azam Sadiq Pasha Kapatrala Syed <akapatra@codeaurora.org>
2011-11-03 11:12:30 -06:00
Linux Build Service Account
dc64092dc8 Merge "radio: iris: Implemen low power IOCTL's" into msm-3.0 2011-11-03 00:21:06 -07:00
Linux Build Service Account
9ab9097e32 Merge "msm: camera: Add support for YV12 image format." into msm-3.0 2011-11-03 00:21:06 -07:00
Ankit Premrajka
748a70ad75 msm: camera: use ION for stats and userptr buffers in V4L2 driver.
Change-Id: Ibc7db3a7355d07f421e63e990354e44e372e79d0
Signed-off-by: Ankit Premrajka <ankitp@codeaurora.org>
2011-11-02 10:27:47 -07:00
Srinivasa Rao Uppala
f856ae6f14 radio: iris: Implemen low power IOCTL's
This patch adds the support for low power mode related IOCTL's

Change-Id: Icbfb21c24b82d9dc40203bcaf37049160285cc4e
CRs-Fixed: 312921
Signed-off-by: Srinivasa Rao Uppala <uppalas@codeaurora.org>
2011-11-02 11:00:49 +05:30
Linux Build Service Account
119a70392f Merge "radio: iris: Added IOCTL's for FM calibration" into msm-3.0 2011-11-01 10:23:59 -07:00
Kiran Kumar H N
4cff94aea7 msm: camera: Add support for YV12 image format.
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>
2011-11-01 09:44:32 -07:00
Srinivasa Rao Uppala
cb48ee6908 radio: iris: Added IOCTL's for FM calibration
This patch adds support for FM Calibration IOCTL's
to perform the FM calibration during the bootup
and on every enable

Change-Id: If1c9e1d131d67df1434e86debd214b52379cad61
CRs-Fixed: 313588
Signed-off-by: Srinivasa Rao Uppala <uppalas@codeaurora.org>
2011-11-01 14:14:36 +05:30
Taniya Das
a9bdb01e48 msm: camera: Add camera driver support for ov5640 and ov7692
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>
2011-10-31 16:32:45 +05:30
Ujwal Patel
6e4308d6c7 msm: camera: Enable exporting vfe registers and tables to userspace.
For the VFE Test Vectors Tool, userspace code needs vfe register
dump as well as image processing tables written through DMI. This
patch enables exporting this capability.

Change-Id: I69fd110867e60d36a0b5a9fa2311413614a54514
Signed-off-by: Ujwal Patel <ujwalp@codeaurora.org>
2011-10-25 11:24:52 -07:00
Kiran Kumar H N
cd7bc3ba9b camera: Add multiplanar support in postprocessing.
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>
2011-10-24 11:49:22 -06:00
Linux Build Service Account
829af4815d Merge "radio-tavarua: Configuring the FM Audio path" into msm-3.0 2011-10-21 09:40:27 -07:00
Linux Build Service Account
12a177faff Merge "radio: iris: Added missing radio IOCTLs." into msm-3.0 2011-10-21 09:40:27 -07:00
Kevin Chan
272f660ed7 msm: camera: Add binning factor to sensor output info
Incoporate binning factor to calculate exposure time

Change-Id: I31f6896ae7b36f606b8a407e5662d341f8f8ff1e
Signed-off-by: Kevin Chan <ktchan@codeaurora.org>
2011-10-18 14:20:03 -07:00
Anantha Krishnan
c72725ac8c radio-tavarua: Configuring the FM Audio path
This changes ensures that if 'Ananlog' path is enabled
then 'Digital' path is disabled and vice-versa.

Change-Id: I3492471ab69923d29c9912bb1a84784638b38ee1
CRs-Fixed: 304621
Signed-off-by: Anantha Krishnan <ananthk@codeaurora.org>
2011-10-18 18:08:55 +05:30
Venkateshwarlu Domakonda
787af69e5f radio: iris: Added missing radio IOCTLs.
Added IOCTLs for Read/Write default data commands

CRs-fixed: 312337
Change-Id: I1012840bb94352041f1e5134054588cb0976eb62
Signed-off-by: Venkateshwarlu Domakonda <Venkateshwarlu@codeaurora.org>
2011-10-18 12:08:21 +05:30
Kevin Chan
e30d369718 msm: camera: Separate video timing and output pixel clk
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>
2011-10-17 16:36:51 -07:00
Ujwal Patel
1fe4c9c7b6 msm: camera: Rename EzTune config to Module config.
EzTune is a userspace feature which should not be known
to kernel driver. EzTune is modifying Module config of
VFE so moving forward correct name used is Module instead of
EzTune.

Change-Id: I419b7275e72ae5e49b9086a4c59d6a0d2053d0c4
Signed-off-by: Ujwal Patel <ujwalp@codeaurora.org>
2011-10-14 16:45:02 -06:00
Kiran Kumar H N
0b51780505 camera: Modify the camera event interface.
- 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>
2011-10-14 09:54:50 -07:00
Yonggui Mao
c0055a1e92 Camera: add special effect of emboss, sketch and neon
Signed-off-by: Yonggui Mao <yongguim@codeaurora.org>
2011-10-05 10:35:54 -07:00
Kiran Kumar H N
5e08d77840 camera: Store the data offsets for each planes.
- When the user queues a buffer, store the data offset
  along with the address offset which is already stored.
  data offset indicates the offset of the data in the
  buffer.
- Use this offset when the physical address of the
  buffer is configured to VFE.
- Depending on the number of planes present in the
  buffer, store either the y, cbr offset or the
  offset of each plane.

Signed-off-by: Kiran Kumar H N <hurlisal@codeaurora.org>
2011-10-05 10:27:30 -07:00
Srinivasa Rao Uppala
4e38bfc56c radio: tavarua: Added place holder for notch filter ioctl
This patch adds place holder for notch filter, to keep
the driver compatible with the framework changes made for IRIS

CRs-fixed: 306856
Signed-off-by: Srinivasa Rao Uppala <uppalas@codeaurora.org>
2011-10-03 16:20:46 -07:00