Commit Graph

974 Commits

Author SHA1 Message Date
Linux Build Service Account
8ac12c6000 Merge "radio: iris: Implement new radio IOCTLs." into msm-3.0 2012-04-10 20:15:14 -07:00
Alhad Purnapatre
c55856c548 msm_fb: display: MSM V4l2 video overlay driver
Provides a V4L2 device that uses the MDP overlay pipes (on MDP4),
or the PPP interface (MDP3) to overlay frames on top of display
framebuffer.

Signed-off-by: Alhad Purnapatre <alhadp@codeaurora.org>
Change-Id: Iab69d0a5acfe993d13cb7a585e292b9a87eb90ee
2012-04-07 17:06:38 -07:00
Ravi Kumar V
e25bde4996 [media] rc: Add support for GPIO based IR Receiver driver
Adds GPIO based IR Receiver driver. It decodes signals using decoders
available in rc framework.

Change-Id: Ifc4cbb6d5a507aeb9671fb0d559b97b1a95ea09c
Signed-off-by: Ravi Kumar V <kumarrav@codeaurora.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2012-04-05 11:23:42 +05:30
Venkateshwarlu Domakonda
71731d5d40 radio: iris: Implement new radio IOCTLs.
Implement IOCTLs for Tx power level control

CRs-fixed: 349247
Change-Id: Ie188b08fdf0aa697b6e1eada5c597813f0dc678f
Signed-off-by: Venkateshwarlu Domakonda <Venkateshwarlu@codeaurora.org>
2012-04-05 08:48:29 +05:30
Ankit Premrajka
459429648e msm: v4l2: use new IOMMU mapping API.
The ion_phys API is being deprecated. Instead there
is a new set of API that does the same thing as ion_phys
if the system has no IOMMU enabled. Otherwise, it
returns an IOMMU device virtual address.

Change-Id: I1f01d33cbc6d236d28c9193a90e48377b9fb35cc
Signed-off-by: Ankit Premrajka <ankitp@codeaurora.org>
2012-03-30 08:25:55 -07:00
Linux Build Service Account
b2ad2bae31 Merge "msm: vidc: Extract PAR info for MPEG4/DIVX." into msm-3.0 2012-03-27 22:56:21 -07:00
Linux Build Service Account
04231da7fd Merge "radio-tavarua: Send disable event" into msm-3.0 2012-03-27 08:10:44 -07:00
Arun Menon
d5a0297a2c msm: vidc: Extract PAR info for MPEG4/DIVX.
Display needs the pixel aspect ratio information
from the video decoder to display the picture
with the right aspect ratio. Video decoder extracts
the pixel aspect ratio information from the
video core and passes it to the client/display
as extradata.

Change-Id: I4db2b8ba827af67bc01888d13c36c1b501934ccd
Signed-off-by: Arun Menon <menon@codeaurora.org>
2012-03-26 16:44:38 -07:00
Deva Ramasubramanian
2e99bff826 video: msm: wfd: IOMMU migration
Migrate WFD to IOMMU APIs.  Commit contains following changes:
- Switch from allocate buffer model to use buffer model in order
  to have the flexibility to map buffers into seperate domains.
- Use the ION caching APIs to flush buffers in case they are cached.
  Earlier on, we used uncached buffers, hence we didn't have a need
  to flush.

Change-Id: I959027ee94a5d6074005f1de420c66cbe55db776
Signed-off-by: Deva Ramasubramanian <dramasub@codeaurora.org>
2012-03-23 11:46:50 -07:00
Linux Build Service Account
80b6c0a555 Merge "vidc: Migrate to new ION cache ops API." into msm-3.0 2012-03-23 10:51:04 -07:00
Ayaz Ahmad
0fa1984935 radio-tavarua: Send disable event
Send disable event when FM turn off is completed
so that file descriptor can be released safely

CRs-Fixed: 339470
Change-Id: Ib66f4cd79a470498404a07759d730504f6615e33
Signed-off-by: Ayaz Ahmad <aahmad@codeaurora.org>
2012-03-22 11:37:17 +05:30
Deepak Kotur
ef091c9243 vidc: Migrate to new ION cache ops API.
New cache ops API are provided thru ION interface
migrating the in kernel cache ops to use the
new cache ops API.

Change-Id: Idf152429316cec2eec8417d72160b7bd53488fc4
Signed-off-by: Deepak Kotur <dkotur@codeaurora.org>
2012-03-21 11:20:48 -07:00
Ankit Premrajka
073e0cab00 msm: camera: add fields to msm_stats_buf for cache operations.
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>
2012-03-19 14:35:43 -07:00
Kevin Chan
210061ffd9 msm: camera: Add media device node
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>
2012-03-16 10:34:41 -06:00
Linux Build Service Account
7cd20b9aad Merge "mm_video: vidc: SPS PPS enable for IDR and zero stuff bytes" into msm-3.0 2012-03-15 02:36:15 -07:00
Linux Build Service Account
f2b497fec2 Merge "msm-camera: enhance the camsenser query structure" into msm-3.0 2012-03-14 00:34:42 -07:00
Mingcheng Zhu
c85b8ade5c msm-camera: enhance the camsenser query structure
More information needs to pass to userspace.

Change-Id: Ia7c5a5cf9a7f48e1c6167fd3ca2ddd56fbdbf8c9
Signed-off-by: Mingcheng Zhu <mingchen@codeaurora.org>
2012-03-13 01:43:53 -07:00
Arun Menon
4093ccc3b1 mm_video: vidc: SPS PPS enable for IDR and zero stuff bytes
This change includes the driver support for the
latest firmware updates - SPS PPS generation for
every IDR frame encode and MPEG-2 zero stuff
bytes consumption.

Change-Id: Icdf3728897f47c90667cd650946ca324346611c5
Signed-off-by: Arun Menon <menon@codeaurora.org>
2012-03-12 15:20:45 -07:00
Sandeep Kodimela
c6f7867e7f msm-camera: Add 8MP and 1MP sensor support
Add support to mt9e013 and ov9726 sensors for v4l2 camera
architecture

Change-Id: Ie0e12bb0b8f1d80c0aa40800f5578208ca86efcb
Signed-off-by: Sandeep Kodimela <skodimela@codeaurora.org>
2012-03-12 11:41:07 +05:30
Kevin Chan
4bb6ead226 msm: camera: send error to HAL if daemon crashed
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>
2012-03-02 18:44:28 -08:00
Linux Build Service Account
98491ffd09 Merge "msm: camera: Fix for inline jpeg corrupted image" into msm-3.0 2012-02-28 18:14:19 -08:00
Jignesh Mehta
bde8424c61 msm: camera: Fix for inline jpeg corrupted image
Enable IMEM clock for Inline mode. For Inline mode, VFE writes MCUs
of frame to IMEM and GEMINI reads it from IMEM and encode the image.

Sync VFE, IMEM and GEMINI clock to 228MHz. VFE and IMEM are running
at 228MHz. But Gemini was running at 158Mhz that creates bootleneck and
generat overflow irq error.

Add VFE_OUTPUTS_JPEG_AND_THUMBANIL operation mode to fix
FE overflow IRQ error in gemini.

Change-Id: Iaf20892d33d30e7cb8d6ab5fd75551aff260098f
Signed-off-by: Jignesh Mehta <jigneshm@codeaurora.org>
2012-02-27 14:23:01 -08:00
Anantha Krishnan
a3dcce4029 radio-tavarua: Add commands to configure the FM Search parameters.
Provide commands to get/set the On channel and Off channel detection
threshold search parameters to optimize the FM search performance.

Change-Id: Id232ffe2d1231fbd44bb34b4b98263434763b7c0
Signed-off-by: Anantha Krishnan <ananthk@codeaurora.org>
2012-02-28 00:45:47 +05:30
Linux Build Service Account
6ba216846b Merge "radio: iris: Fix the set station issue at boundary" into msm-3.0 2012-02-25 16:41:31 -08:00
Linux Build Service Account
1ee4dbf623 Merge "msm-camera: vertical and horizontal view angle of lens added." into msm-3.0 2012-02-25 16:41:31 -08:00
Ayaz Ahmad
b69202b622 radio: iris: Fix the set station issue at boundary
Seek frequency at lower/upper limit is not working
if selected country is in Europe band with channel
 spacing 50Khz

Use the correct upper limit for Europe band

Change-Id: Icdcb116c24ae9840cc66b1dc2da5fa739a2f89c8
CRs-Fixed: 338137
Signed-off-by: Ayaz Ahmad <aahmad@codeaurora.org>
2012-02-24 16:52:47 +05:30
Deva Ramasubramanian
3a7774b2d5 msm: vidc: Remove duplicate header files
- Updated the header files in /include/media/msm to mirror the
  header files in drivers/video/msm/vidc/common/.
- Deleting header files in drivers/video/msm/vidc/common/ as we
  wish to use headers in /include/media/msm going forward.

Change-Id: I58f64e6168d3cc101394414400dd79b82c429ae4
Signed-off-by: Deva Ramasubramanian <dramasub@codeaurora.org>
2012-02-22 19:01:52 -08:00
Jeyaprakash Soundrapandian
04592007f7 msm-camera: vertical and horizontal view angle of lens added.
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>
2012-02-22 15:30:06 -08:00
Su Liu
6c3bb3269d msm: camera: EVB: Add Kernel driver OV5647 & OV7692
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>
2012-02-20 18:37:39 +05:30
Kiran Kumar H N
de2d0ee764 msm: camera: Correct the IOCTL numbers.
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>
2012-02-16 07:45:20 -07:00
Linux Build Service Account
5b25cfe9ad Merge "radio: iris: Add support for FM Subsystem Restart" into msm-3.0 2012-02-16 00:08:24 -08:00
Jignesh Mehta
6cf8a749e2 camera: vfe32: Enable VFE configuration for inline JPEG encoding.
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>
2012-02-14 04:27:31 -07:00
Sunny Kapdi
0f69eb4005 radio: iris: Add support for FM Subsystem Restart
Inject FM Disable event when WCNSS resets.

1. When WCNSS crashes, SMD will close the FM port
2. Schedule a work queue to send RADIO_DISABLED event to upper layer.

Change-Id: I10e4834df507fe39ce58b92e650c1a39ccbf66f7
Signed-off-by: Sunny Kapdi <sunnyk@codeaurora.org>
2012-02-13 23:12:13 -08:00
Ankit Premrajka
70613ecf6c msm: camera: support exposure metering and HDR snapshots
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>
2012-02-10 14:19:30 -08:00
Shuzhen Wang
7476824f8b camera: vfe32: Enable composite stats irq
All stats are generated at roughly the same time
once per frame. They can be composited together and notify
the user space at once.

Change-Id: I0bd828473fa705bef58ecdba8b18a365235bfca0
Signed-off-by: Shuzhen Wang <shuzhenw@codeaurora.org>
2012-02-09 09:06:37 -08:00
Linux Build Service Account
4ebd10cc69 Merge "msm: rc: Rename TSOP IR Receiver Driver" into msm-3.0 2012-02-05 07:37:49 -08:00
Kiran Kumar H N
8f68c594b5 msm: camera: Remove DIS related code from VPE driver.
VPE driver should be abstracted from DIS related
code since the configuration is done in the userspace
library. So remove the code from VPE driver.

Change-Id: Ic320ab903cff502f2a21e1ae66ecc06581e56aa3
Signed-off-by: Ujwal Patel <ujwalp@codeaurora.org>
Signed-off-by: Kiran Kumar H N <hurlisal@codeaurora.org>
2012-02-02 17:42:04 -08:00
Kiran Kumar H N
c3cb9ea7ca msm: camera: Add MCTL camera node.
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>
2012-02-02 16:28:35 -08:00
Kiran Kumar H N
dd12847121 msm: camera: Configure VFE for two output mode.
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>
2012-02-02 16:28:35 -08:00
Kevin Chan
318d7cbd8e msm: camera: Correct the reserve buffer logic in mctl_pp.
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>
2012-02-02 09:49:29 -08:00
Ankush Khandelwal
3fb6bc2ae5 msm: rc: Rename TSOP IR Receiver Driver
Since the driver is a generic gpio based IR Receiver driver,
name of the driver has been changed from tsop-ir to gpio-ir-recv.
Variables of the driver change accordingly.

Change-Id: I2e41c320b3f2f1a9796fc404791024c112a498c1
Signed-off-by: Ankush Khandelwal <akhand@codeaurora.org>
2012-02-02 13:31:57 +05:30
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