summaryrefslogtreecommitdiff
path: root/drivers/media/video
AgeCommit message (Collapse)Author
2013-06-17media: adv7180: add 48-lead and 32-lead device identificationMarcel Ziswiler
Previously only 64-lead and 40-lead models were identified. This patch adds 48-lead and 32-lead device identification as well. Please note that due to missing parameter negotiation functions one might get the following message with a subsequent crash: WARNING: from element /GstPipeline:pipeline0/GstV4l2Src:v4l2src0: Could not get parameters on device '/dev/video0' This can be avoided by explicitly specifying the format as follows: gst-launch v4l2src ! deinterlace tff=1 method=4 ! 'video/x-raw-yuv, width=(int)720, height=(int)576, format=(fourcc)I420' ! nv_omx_videomixer ! nv_gl_eglimagesink
2013-06-12tegra_v4l2: support for interlaced fieldsPiotr Zierhoffer
2013-06-12adv7180, max9526: correct v4l2_field settingPiotr Zierhoffer
2013-06-12tegra_v4l2: fix format detection and morePiotr Zierhoffer
Powering on, improved interlacing.
2013-06-12max9526: fix NTSC number of pixels per line.Peter Gielda
2013-06-12media: videobuf2: fix buffer management issuesBryan Wu
Use right buffer flag NVMAP_HANDLE_WRITE_COMBINE to allocate buffer, which can be shared by VI/CSI and CPU. Don't use NVMAP_HEAP_SYSMEM. It is validated to old T20 silicon and can't support big buffers. By default, our nvmap_alloc() will use IOVMM to allocate buffers. nvmap_pin() gives us IOVA for hardware engines like VI/CSI module with IOMMU enabled in kernel. nvmap_mmap() gives us VA for CPU read/write operations. So we need to convert VA address to physical address of the buffer and map that buffer to user space processor's memory space "page by page". Change-Id: I543d9d95fc14395200647e09480f25d9bc001e00 Signed-off-by: Bryan Wu <pengw@nvidia.com>
2013-06-12Revert "tegra_v4l2: map memory as non-cachable and fix the allocation problem"Peter Gielda
This reverts commit 080c3135b58aa700851991fb672e6c33cf16d9d9.
2013-06-12max9526: added missing module_exitPeter Gielda
2013-06-12tegra_v4l2 fix init issuePeter Gielda
Fix issue with nvhost_client_device_init being issued more than once.
2013-05-02tegra_v4l2: added missing breakMax Krummenacher
bug report courtesy of Mikhail Shevchuk
2013-04-12max9526: commented out some of the warnings. added interlace flag. fixed ↵Peter Gielda
resolution for PAL/NTSC.
2013-04-12tegra_v4l2: added interlaced video handling for VIPPeter Gielda
2013-04-12tegra_v4l2: map memory as non-cachable and fix the allocation problemPeter Gielda
2013-04-12tegra_v4l2: fixed bugs in memory allocation/deallocationPeter Gielda
2013-03-26media: adv7180: Modify to work with soc_cameraAndrew Chew
This involved adding some callback methods, and pretending that this is a YUV sensor. Signed-off-by: Andrew Chew <achew@nvidia.com>
2013-03-03max9526 driverPeter Gielda
2013-01-14media: v4l2: tegra: fixing memory access oops in tegra camera driverBryan Wu
Function pointer int (*queue_setup)() of struct vb2_ops in include/media/videobuf2-core.h is not compatible with our function call tegra_camera_videobuf_setup(). So building will generate warning and it will cause alloc_ctxs[] with wrong value, then introduce memory access oops later. Bug 1215617 Change-Id: I5d49ccd611a9435a5ee3b21e344bc0b5464ba747 Signed-off-by: Bryan Wu <pengw@nvidia.com> Reviewed-on: http://git-master/r/190036 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Andrew Chew <achew@nvidia.com> Reviewed-by: Winnie Hsu <whsu@nvidia.com>
2013-01-11media: videobuf2-dma-nvmap: fixing nvmap_alloc failureBryan Wu
Videobuf2-dma-nvmap driver using by Tegra v4l2 camera driver needs to allocation memory from system memory with nvmap_alloc(). If we don't enable config option CONFIG_NVMAP_ALLOW_SYSMEM, nvmap_alloc() will fail and application stops working. Bug 1215629 Change-Id: I40af697d8aee1a4981a9684953107dd070cc9bea Signed-off-by: Bryan Wu <pengw@nvidia.com> Reviewed-on: http://git-master/r/190037 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Andrew Chew <achew@nvidia.com> Reviewed-by: Winnie Hsu <whsu@nvidia.com>
2012-12-17media: ov5640: Add Omnivision OV5640 supportAndrew Chew
Based on ov5642 driver. There seem to be some register differences, so forking the driver to make those changes. Change-Id: Idb4a79757cbbcd15d5456ce82a708f433faaff7a Signed-off-by: Andrew Chew <achew@nvidia.com> Signed-off-by: Bryan Wu <pengw@nvidia.com> Reviewed-on: http://git-master/r/169836 Reviewed-by: Winnie Hsu <whsu@nvidia.com>
2012-12-17media: tegra: enable a clock for VIP in APB MISC registerBryan Wu
Change-Id: Ic4d91f4ed70fc3daf52768118f6ea537d529a5a8 Signed-off-by: Bryan Wu <pengw@nvidia.com> Reviewed-on: http://git-master/r/169835 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Winnie Hsu <whsu@nvidia.com>
2012-12-17media: tegra: Tegra videobuf2Andrew Chew
This is based off of videobuf2-dma-contig, except we use Tegra's nvmap for the buffer allocations. Signed-off-by: Andrew Chew <achew@nvidia.com> Change-Id: I15e689c33ee7b4fc0aade794c78701c82483df3f Reviewed-on: http://git-master/r/145345 (cherry picked from commit 70a4f20fbdd6c2c719400d6c59ef58d845657031) Signed-off-by: Bryan Wu <pengw@nvidia.com> Change-Id: Ia0632d7fcb28415e33fbb22c48f29117d7436f1d Reviewed-on: http://git-master/r/170824 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Andrew Chew <achew@nvidia.com> GVS: Gerrit_Virtual_Submit Reviewed-by: Winnie Hsu <whsu@nvidia.com>
2012-12-17media: tegra: Tegra V4L2 cameraAndrew Chew
This is the Tegra V4L2 camera host driver, for Tegra2/Tegra3's VI/CSI controller. Signed-off-by: Andrew Chew <achew@nvidia.com> Change-Id: If2d9eefe53c2119c1a6ae518216e1a3c3ed216ef Reviewed-on: http://git-master/r/145346 (cherry picked from commit 5a9bfd588b755f354ae21471a3a2a3e559ca6fae) Signed-off-by: Bryan Wu <pengw@nvidia.com> Change-Id: I4db33b17efdb401938603cb2153d73bf3421ba61 Reviewed-on: http://git-master/r/170823 Reviewed-by: Andrew Chew <achew@nvidia.com> GVS: Gerrit_Virtual_Submit Reviewed-by: Winnie Hsu <whsu@nvidia.com>
2012-12-14media: video: tegra: nvavp: Fix nvmap handle issueGajanan Bhat
In open call we were assigning the driver's nvmap handle to the nvavp's client context which would get released in release call to driver. This will cause driver's nvmap handle to be invalid if a parallel client context is running and driver does any nvmap operation. Bug 1013063 Bug 1192772 Change-Id: Id02520ae8ec511bb8c50bc4d3908ea3e75e1ea6b Reviewed-on: http://git-master/r/170585 Signed-off-by: Gajanan Bhat <gbhat@nvidia.com> Reviewed-on: http://git-master/r/171097 Reviewed-by: Automatic_Commit_Validation_User GVS: Gerrit_Virtual_Submit Reviewed-by: Matthew Pedro <mapedro@nvidia.com> Tested-by: Matthew Pedro <mapedro@nvidia.com> Reviewed-by: Winnie Hsu <whsu@nvidia.com>
2012-09-10WAR: gr3d: limit 3d clock when camera is onJihoon Bang
As WAR, limit 3d clock frequency and emc clock frequency when camera is on and chip is AP37. 3d clock is set to 361MHz and 437MHz is requested for emc clock with this change. This change allows 3d to request 1.1V in Core instead of 1.3V in AP37. Bug 1001262 Bug 1019309 Change-Id: I9f46f93d8da0fcf5afe05839177bf0d6e43a5840 Signed-off-by: Jihoon Bang <jbang@nvidia.com> Reviewed-on: http://git-master/r/130945 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com> Tested-by: Bharat Nihalani <bnihalani@nvidia.com>
2012-08-21media: video: tegra: ar0832: Add slew rate supportNaren Bhat
Add slew rate support for AR0832 focuser. bug 1028733 Change-Id: I4fd0245fad7f7c820fc30a7c4bfc970d52903da6 Signed-off-by: Naren Bhat <nbhat@nvidia.com> Reviewed-on: http://git-master/r/124695 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Jon Mayo <jmayo@nvidia.com> Reviewed-by: Frank Chen <frankc@nvidia.com> Reviewed-by: Dan Willemsen <dwillemsen@nvidia.com>
2012-08-06media: video: tegra: fix sh532u buffer overflowsFrank Chen
We need to validate the buffer size before we copy buffers from/to user space. Bug 1027334 Change-Id: I0717e9ff1d2e5eb3e8a863555457f4bcfdbb2cb9 Signed-off-by: Frank Chen <frankc@nvidia.com> Reviewed-on: http://git-master/r/120185 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Charlie Huang <chahuang@nvidia.com> Reviewed-by: Patrick Shehane <pshehane@nvidia.com> Reviewed-by: Dan Willemsen <dwillemsen@nvidia.com>
2012-08-02media: tegra: ov9726: add group hold ioctlCharlie Huang
To make AE transition smoother, the group hold enable/disable actions should be added before and after set gain/frame length/coarse time. bug 1025995 Change-Id: I578b33167e50f59d0d9a88a0e16fac0c5425b6b6 Signed-off-by: Charlie Huang <chahuang@nvidia.com> Reviewed-on: http://git-master/r/119835 Reviewed-by: Frank Chen <frankc@nvidia.com> Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Abhinav Sinha <absinha@nvidia.com> Reviewed-by: Dan Willemsen <dwillemsen@nvidia.com>
2012-08-02media: video: tegra: Focuser range tuning supportSudhir Vyas
* Add support for focuser range tuning. * Fix focuser position move programming. * Optimize focuser read/write. * Optimize focuser power consumption. * Fix foucser sound issue while capture. * Improve overall focuser performance. Bug 1013062 Bug 1018136 Bug 978541 Change-Id: I57fc0566a3a43468ce9a07319014cf3c038ed1e1 Signed-off-by: Sudhir Vyas <svyas@nvidia.com> Reviewed-on: http://git-master/r/118543 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Prayas Mohanty <pmohanty@nvidia.com> Reviewed-by: Sachin Nikam <snikam@nvidia.com>
2012-07-31media: tegra: ov5650: update 320x240 modeWei Chen
Add default values for coarse time and gain settings. Bug 990513 Change-Id: I7f6bae50de911f26d10991e1094de211c8f05632 Signed-off-by: Wei Chen <wechen@nvidia.com>
2012-07-30media: video: nvavp: Add bsea/vcp clocks for AudioVandana Salve
1) Enable bsea/vcp clocks for Audio support by ioctl 2) Send kernel event NVE276_OS_INTERRUPT_APP_NOTIFY to user space 3) Suspend Resume support bug 964514 Change-Id: I72fb790baa093b4bcd99a128c886dc049fa0fbb6 Signed-off-by: Vandana Salve <vsalve@nvidia.com> Reviewed-on: http://git-master/r/108493 cherry picked from commit 4432c5fa5e9072ff019d994f3bc8239bd34ddad1 Reviewed-on: http://git-master/r/114589 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
2012-07-27media: video: tegra: ar0832: reduce permissionsschowdary
CTS test fails if there are write permissions for user. Hence reduce permissions for test_pattern. bug 1001925 Change-Id: I769ff501671182965a8b699d7bbd580400ccd1c1 Signed-off-by: schowdary <schowdary@nvidia.com> Reviewed-on: http://git-master/r/118871 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com> Tested-by: Bharat Nihalani <bnihalani@nvidia.com>
2012-07-12media: video: tegra: ar0832:Update Aptina settingsAmy Deng
updated MT9E013 and AR0832 Recommended Settings Bug 1009371 Change-Id: Ib1e4ce2f42ebc8d2080a47613cf7054a19198dda Signed-off-by: Amy Deng <amyd@nvidia.com> Reviewed-on: http://git-master/r/113092 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Yining Deng <ydeng@nvidia.com> Reviewed-by: Frank Chen <frankc@nvidia.com> Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
2012-07-11media: video: tegra: sh532u: Focuser range tuning supportNaren Bhat
Support for get/set capabilities added. Focuser code has a way to calibrate itself that results in determination of optimal working range. This along with actual range from device ROM are returned to the caller. Focuser has the macro at lower end and infinity at farther end of the range, which are reversed to the user level to keep the inf/macro positions to be consistent. Focuser range translation is taken out. Bug 1004816 Change-Id: I1a086ff10e99940f9ad861397bf7e71e9996c68a Signed-off-by: Naren Bhat <nbhat@nvidia.com> Reviewed-on: http://git-master/r/110443 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Charlie Huang <chahuang@nvidia.com> Reviewed-by: Jon Mayo <jmayo@nvidia.com> Reviewed-by: Patrick Shehane <pshehane@nvidia.com> Tested-by: Charlie Huang <chahuang@nvidia.com> Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
2012-07-09video: tegra: dtv: Fixed clk disabling issueAdam Jiang
APB clock for dtv logic block should be recorded by dtv_ctx->clk hanlder. Otherwise, kernel will trigger a NULL point error in suspend. Fixed Bug 1011149 Change-Id: I5d342ab6fc8ffb71211e370d304b17d5d44eef20 Signed-off-by: Adam Jiang <chaoj@nvidia.com> Reviewed-on: http://git-master/r/108743 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Sachin Nikam <snikam@nvidia.com>
2012-07-03media: video: tegra: nvavp: Fix avp print issueSoumen Kumar Dey
Anding with NVAVP_INBOX_VALID is used to clear interrupts. Change-Id: I941b3af44cd19280832aff3364d110b645aa1ec8 Signed-off-by: Soumen Kumar Dey <sdey@nvidia.com> Reviewed-on: http://git-master/r/111821 Reviewed-by: Simone Willett <swillett@nvidia.com> Tested-by: Simone Willett <swillett@nvidia.com>
2012-07-01media: video: tegra: tegra_camera: disable eackSang-Hun Lee
- Disable eack when a camera is in use Bug 995950 Signed-off-by: Sang-Hun Lee <sanlee@nvidia.com> Reviewed-on: http://git-master/r/110224 (cherry picked from commit f336812516efac8c6445def282340333094973c9) Change-Id: I9a5ee84dc48bacf88261b0bf3180fe69fea3712f Reviewed-on: http://git-master/r/110979 Reviewed-by: Automatic_Commit_Validation_User GVS: Gerrit_Virtual_Submit Tested-by: Sang-Hun Lee <sanlee@nvidia.com> Reviewed-by: Sang-Hun Lee <sanlee@nvidia.com> Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
2012-06-26video: tegra: use public APIs exposed by host1x driverMayuresh Kulkarni
Bug 961009 Change-Id: Ifdcc7bc8a40d270e70a63329f46caff541bf01e2 Signed-off-by: Mayuresh Kulkarni <mkulkarni@nvidia.com> Reviewed-on: http://git-master/r/109461 Reviewed-by: Rohan Somvanshi <rsomvanshi@nvidia.com> Tested-by: Rohan Somvanshi <rsomvanshi@nvidia.com>
2012-06-25media: video: tegra: Fix LP0 error while playing WVHyungwoo Yang
Original change(commit dfa3daebbc8dbe3ccc8e72400359dfce29053222) to fix LP0 error is already merged but the error is still there due to porting issue to main branch. This change fixes LP0 problem caused by porting to main. Change-Id: I925407dc6c7fe0caca5ea33e3830a857b26e151c Signed-off-by: Hyungwoo Yang <hyungwooy@nvidia.com> Reviewed-on: http://git-master/r/109376 Reviewed-by: Automatic_Commit_Validation_User GVS: Gerrit_Virtual_Submit Reviewed-by: Dan Willemsen <dwillemsen@nvidia.com>
2012-06-19media: tegra: avp: Remove compiler warningJuha Tukkinen
Get rid of maybe-uninitialized warning when using 4.6 toolchain. Bug 999222 Change-Id: Ic8e944eaba281cdea45950b61f93093ff0e59f20 Signed-off-by: Juha Tukkinen <jtukkinen@nvidia.com> Reviewed-on: http://git-master/r/109553 Reviewed-by: Automatic_Commit_Validation_User Tested-by: Stefan Becker <stefanb@nvidia.com> Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
2012-06-14media: video: nvavp: Add nvhost to include pathTerje Bergstrom
Add nvhost directory to #include path. This allows making dev.h a stub in a later commit. Bug 982965 Change-Id: I651b619422c26a5dc6766ddb381bd05c1fd9c462 Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com> Reviewed-on: http://git-master/r/108226 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Kaz Fukuoka <kfukuoka@nvidia.com> Reviewed-by: Mayuresh Kulkarni <mkulkarni@nvidia.com> Reviewed-by: Juha Tukkinen <jtukkinen@nvidia.com>
2012-06-14media: video: tegra: fix compilation warningJuha Tukkinen
Get rid of maybe-uninitialized warning when using 4.6 toolchain. Bug 949219 Bug 999222 Change-Id: Id7c2187cb75293515e4018cac814bd7f2ce343a9 Signed-off-by: Juha Tukkinen <jtukkinen@nvidia.com> Reviewed-on: http://git-master/r/108218 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Stefan Becker <stefanb@nvidia.com> Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
2012-06-14media: video: tegra: ar0832: Make focuser range, slew rate tunableNaren Bhat
The range parameters & slew rate from the blocks-camera are being passed down to ODM and then to kernel. Generic structure added for sharing the data between ODM and kernel instead of specific structure. Bug 954874 Change-Id: I84656e36a5a2721c007de78aa5c20f5dfeb00361 Signed-off-by: Naren Bhat <nbhat@nvidia.com> Reviewed-on: http://git-master/r/102077 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Jon Mayo <jmayo@nvidia.com>
2012-06-13media: video: tegra: ov5650: enable DPC featureCharlie Huang
enable Defective Pixel Correction block on sensor SOC. bug 976218 Change-Id: I754200b7f625509950b061173c7e5de2a831d607 Signed-off-by: Charlie Huang <chahuang@nvidia.com> Reviewed-on: http://git-master/r/104776 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Bhushan Rayrikar <brayrikar@nvidia.com> Reviewed-by: Krupal Divvela <kdivvela@nvidia.com> GVS: Gerrit_Virtual_Submit Reviewed-by: Amy Deng <amyd@nvidia.com> Reviewed-by: Frank Chen <frankc@nvidia.com> Reviewed-by: Wei Chen <wechen@nvidia.com> Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
2012-06-11media: video: tegra: Update ad5816 focuser driverSudhir Vyas
Modify code structure and incorporate few review comments raised in base change of ad5816 driver implementation. Bug 947792 Change-Id: I4b9e95669353f6e9bb71f4e172b71b4e31b1f0d7 Signed-off-by: Sudhir Vyas <svyas@nvidia.com> Reviewed-on: http://git-master/r/105933 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
2012-06-07Merge remote branch 'origin/android-tegra-nv-3.1' into HEADTom Cherry
2012-06-06media: video: tegra: resolve compilation warningsSanjay Singh Rawat
- Adding flag to treat warning as error. - Warnings handled are unused functions, wrong C coding style, function argument mismatch. Bug 949219 Change-Id: I52cf5298ba552747dd4292af5b20db5ac8993cb0 Signed-off-by: Sanjay Singh Rawat <srawat@nvidia.com> Reviewed-on: http://git-master/r/106208 Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com> Reviewed-by: Automatic_Commit_Validation_User
2012-06-05Merge commit 'main-ics-2012.06.04-A5' into HEADTom Cherry
Conflicts: drivers/media/video/tegra/nvavp/nvavp_dev.c Change-Id: I7779b0ce58004f80cccf6193148ac49551ce5da5
2012-06-04arm: tegra: resolve compilation time warningsSanjay Singh Rawat
Bug 949219 Change-Id: I91a67d30869e9800c483f112d58b9f76e2dbe361 Signed-off-by: Sanjay Singh Rawat <srawat@nvidia.com> Reviewed-on: http://git-master/r/103534 Reviewed-by: Simone Willett <swillett@nvidia.com> Tested-by: Simone Willett <swillett@nvidia.com>
2012-06-03media: video: nvavp: Add audio channel supportVandana Salve
Added support for audio channel. Push buffers can be submitted on audio channel. bug 964514 Change-Id: Ib13b6ed41678e9dcc170fddc64ab4646f960838b Signed-off-by: Vandana Salve <vsalve@nvidia.com> Reviewed-on: http://git-master/r/97534 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com> Tested-by: Bharat Nihalani <bnihalani@nvidia.com> GVS: Gerrit_Virtual_Submit Reviewed-by: Gajanan Bhat <gbhat@nvidia.com>
2012-05-31media: video: tegra: space correctionPreetham Chandru
A space is missing between the words 'an' and 'independent' in the print statement: dev_info(&info->i2c_client->dev, "%s no regulator found for %s. " "This board may not have an" "independent %s regulator.\n", __func__, info->vreg[j].vreg_name, info->vreg[j].vreg_name); Bug 991768 Signed-off-by: Preetham Chandru <pchandru@nvidia.com> Change-Id: Idde809c162b3b32c1db57436273af1810f03000a Reviewed-on: http://git-master/r/105157 Tested-by: Preetham Chandru <pchandru@nvidia.com> Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com> GVS: Gerrit_Virtual_Submit