summaryrefslogtreecommitdiff
path: root/include/media
AgeCommit message (Collapse)Author
2017-05-16camera: tegra: Fix security vulnerabilityAmey Asgaonkar
Check a few input params to make sure there is no potential for a heap overflow in the driver. (Back ported from Nexus N9 project) Bug 1757475 (nvidia) Bug 1832830 (nvidia) Bug 28193342 (google) Change-Id: I979fa38c5f453cfad7070f0340ec04adde5bac13 Signed-off-by: Amey Asgaonkar <aasgaonkar@nvidia.com> Reviewed-on: http://git-master/r/1271369 Reviewed-by: Automatic_Commit_Validation_User GVS: Gerrit_Virtual_Submit Reviewed-by: Frank Chen <frankc@nvidia.com> Tested-by: Frank Chen <frankc@nvidia.com> Reviewed-by: Jihoon Bang <jbang@nvidia.com> Reviewed-by: Winnie Hsu <whsu@nvidia.com>
2017-05-16media: tegra: camera: sanity-check ioctl parameterGreg Hackmann
Several places in the camera stack can hit integer overflows or cause bad allocations if userspace passes in a bogus sizeofvalue parameter. Protect against this by using appropriately-sized integer types, adding range checks, replacing array-allocation calls with kcalloc(), and checking for allocations returning ZERO_SIZE_PTR. For one specific ioctl (PCLLK_IOCTL_UPDATE) sizeofvalue = 0 is fine, since when that happens the subdrivers won't actually touch the returned allocation. In fact the existing userspace camera driver makes calls like these and expects them to succeed! Handle this special case by adding a __camera_get_params variant that optionally treats zero-sized inputs as valid. (back ported from Nexus N9 project) Bug 1832830 Change-Id: Ie3250d8a4b814de5820fa0190b4cbd1af3ca4b3f Reported-by: Jianqiang Zhao <zhaojianqiang1@gmail.com> Signed-off-by: Greg Hackmann <ghackmann@google.com> Reviewed-on: http://git-master/r/1271367 Reviewed-by: Automatic_Commit_Validation_User GVS: Gerrit_Virtual_Submit Reviewed-by: Frank Chen <frankc@nvidia.com> Tested-by: Frank Chen <frankc@nvidia.com> Reviewed-by: Jihoon Bang <jbang@nvidia.com> Reviewed-by: Winnie Hsu <whsu@nvidia.com>
2016-05-20camera: tegra: Fix security vulnerability issueFrank Chen
We need to validate power on/off function size passed in from user mode in order to avoid integer overflow or out of memory failures. Bug 1745100 Change-Id: Idddd848f7dc1e864559ad219f9204325128484e5 Signed-off-by: Frank Chen <frankc@nvidia.com> Signed-off-by: Bibek Basu <bbasu@nvidia.com> Reviewed-on: http://git-master/r/1114354 (cherry picked from commit 8b3afcc132882f3102083f9a24de7f55476ca59b) Reviewed-on: http://git-master/r/1150944 Reviewed-by: Automatic_Commit_Validation_User GVS: Gerrit_Virtual_Submit Reviewed-by: Matthew Pedro <mapedro@nvidia.com>
2015-04-15kernel: add imx185 sensor supportKassey Li
Bug 200044433 Change-Id: I792062649c247229270678a44d10323d2744b569 Signed-off-by: Kassey Li <kasseyl@nvidia.com> Reviewed-on: http://git-master/r/721561 Reviewed-by: Matthew Pedro <mapedro@nvidia.com> Tested-by: Matthew Pedro <mapedro@nvidia.com>
2015-02-26kernel: add support for ar1335Ming Wong
Bug 1598204 Change-Id: I453d18ce570e57c0feab8dc3b24cc2c957b95301 Signed-off-by: Ming Wong <miwong@nvidia.com> Reviewed-on: http://git-master/r/672147 GVS: Gerrit_Virtual_Submit Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>
2015-02-09Kernel: add ov4689 kernel driverHu He
Bug 1600299 Change-Id: I63f4d597bcc8b960407a7291fde6aa2ddb5bec25 Signed-off-by: Ming Wong <miwong@nvidia.com> Reviewed-on: http://git-master/r/674099 Reviewed-by: Winnie Hsu <whsu@nvidia.com> GVS: Gerrit_Virtual_Submit
2015-01-07AR0261: validate with V4L2 for Jetson TK1Bryan Wu
Change-Id: I1c00d571e294ccf1c4d795bb90e71defd3395293 Signed-off-by: Bryan Wu <pengw@nvidia.com> Reviewed-on: http://git-master/r/591333 Reviewed-by: Venkat Moganty <vmoganty@nvidia.com> (cherry picked from commit b87d110ddc52048944862fb8bf019922333b1dd5) Reviewed-on: http://git-master/r/665999 Reviewed-by: Winnie Hsu <whsu@nvidia.com> Tested-by: Winnie Hsu <whsu@nvidia.com>
2014-11-14kernel: driver: modify ar0330 power sequenceMing Wong
Bug 1552628 Bug 1576621 Change-Id: Icc881724f0e4e5c0346aa44ffeb80dc8d498919c Signed-off-by: Ming Wong <miwong@nvidia.com> Reviewed-on: http://git-master/r/598929 Reviewed-by: Automatic_Commit_Validation_User GVS: Gerrit_Virtual_Submit Reviewed-by: Frank Chen <frankc@nvidia.com> Reviewed-by: Sachin Nikam <snikam@nvidia.com>
2014-11-04kernel: add ar0330 supportMing Wong
add support for dual ar0330 Bug 1552628 Change-Id: I6ccd6ea0886f17710de3e241c408788cc608dce9 Signed-off-by: Ming Wong <miwong@nvidia.com> Reviewed-on: http://git-master/r/558147 GVS: Gerrit_Virtual_Submit Reviewed-by: Sachin Nikam <snikam@nvidia.com>
2014-10-29media: tegra: add regulator vana for dw9718Shreshtha Sahu
add regulator vana for dw9718 Bug 1259310 Change-Id: I654669b1f02af9b7afbf51e8077a4f8324ead403 Signed-off-by: Shreshtha Sahu <ssahu@nvidia.com> Signed-off-by: Mihir Thakkar <mthakkar@nvidia.com> Reviewed-on: http://git-master/r/555460 Reviewed-by: Automatic_Commit_Validation_User GVS: Gerrit_Virtual_Submit Tested-by: Tushar Khinvasara <tkhinvasara@nvidia.com> Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>
2014-09-26media: soc_camera: add imx135 sensor driverBryan Wu
Sony IMX135 camera sensor can be found on Ardbeg/Laguna. This patch introduced sensor driver for imx135 using soc_camera interface. Bug 1380143 Change-Id: Ifa0becf1ec2d9931ebf9ea3a4e9ea3e1013a9e36 Signed-off-by: Bryan Wu <pengw@nvidia.com> Reviewed-on: http://git-master/r/337469 (cherry picked from commit 94a04c2c9b614519aab6f718d60bcf1d8032aa8f) Reviewed-on: http://git-master/r/498935 GVS: Gerrit_Virtual_Submit Reviewed-by: Matthew Pedro <mapedro@nvidia.com> Reviewed-by: Winnie Hsu <whsu@nvidia.com>
2014-08-20media: platform: tegra: support 64 bit user codeCharlie Huang
Since the user space code may works in either 32 or 64 bit mode, attentions should be taken while passing pointers from user space to the kernel. In this case, the p_value of struct nvc_param and power_on/power_off of struct virtual_device received from the user space should be handled properly. The solution is to create a set of 32 bit version of structures nvc_param and virtual_device along with some dedicated 32 bit mode ioctl commands, then in the ioctl functions, the 32 bit user mode access will be handled separately. bug 1518359 Change-Id: I4cbbeeaef446ab962aaa1f92251ce1fd9d5723aa Signed-off-by: Charlie Huang <chahuang@nvidia.com> Reviewed-on: http://git-master/r/437390 (cherry picked from commit 3fdbc210fc9f33d0f89af079a89bdb1f41e73ecb) Reviewed-on: http://git-master/r/482230 Reviewed-by: Automatic_Commit_Validation_User GVS: Gerrit_Virtual_Submit Reviewed-by: Thomas Cherry <tcherry@nvidia.com>
2014-04-23drivers: media: tegra: camera: auto-detect noticeCharlie Huang
- display notice, for auto detect showing the begin of auto-detect. - add read-in-write feature, camera_dev_wr_table can read device while parsing scripts. - return error state in table write. - camera_app_remove will not throw out warnings when shutdown. - code optimization, add camera_get_params to replace duplicated code. bug 1472043 Change-Id: I9ee683bade00ea738a1c8edc282c40ad30d57c7f Signed-off-by: Charlie Huang <chahuang@nvidia.com> Reviewed-on: http://git-master/r/394834 Reviewed-by: Automatic_Commit_Validation_User GVS: Gerrit_Virtual_Submit Reviewed-by: Frank Chen <frankc@nvidia.com> Reviewed-by: Gary Fitzer <gfitzer@nvidia.com> Reviewed-by: David Wang (SW-TEGRA) <davidw@nvidia.com> Reviewed-by: Thomas Cherry <tcherry@nvidia.com>
2014-04-09drivers: media: tegra: camera: DT supportCharlie Huang
device tree platfom data support. interface to read device tree from user space. bug 1455100 Change-Id: I25b6b7b03bc25195c25d7014f91ca761caeb635f Signed-off-by: Charlie Huang <chahuang@nvidia.com> Reviewed-on: http://git-master/r/381103 GVS: Gerrit_Virtual_Submit Reviewed-by: Thomas Cherry <tcherry@nvidia.com>
2014-04-09media: platform: tegra: IMX135: eeprom readHu He
Read imx135 EEPROM and return it as factory data. Tested with an imx135 camera module with EEPROM burnt with factory data. Bug 1163086 Change-Id: I2f8eeb36d4bb1bad505b8505d074391bff87b4aa Signed-off-by: Hu He <hhe@nvidia.com> Reviewed-on: http://git-master/r/367987 Reviewed-by: Sachin Nikam <snikam@nvidia.com> Tested-by: Sachin Nikam <snikam@nvidia.com>
2014-03-19media: platform: tegra: Dual ov5693 supportFrank Chen
Update OV5693 driver to support multiple OV5693 in the same system. Bug 1465726 Change-Id: Ic23ddbaf80068142e8354f313b76c17a9b2a3b7f Signed-off-by: Frank Chen <frankc@nvidia.com> Reviewed-on: http://git-master/r/379242 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Philip Breczinski <pbreczinski@nvidia.com> GVS: Gerrit_Virtual_Submit Reviewed-by: David Schalig <dschalig@nvidia.com> Tested-by: David Schalig <dschalig@nvidia.com> Reviewed-by: Mitch Luban <mluban@nvidia.com>
2014-03-05media: tegra: i2c frame interrupt callbackGary Fitzer
Switch focuser position writes to a synchronize mechanism with isp frame triggers to improve auto focusing algorithms. Bug 1441127. Change-Id: I323e997aed6412b5b4719a16727d1d14c9d29adc Signed-off-by: Gary Fitzer <gfitzer@nvidia.com> Reviewed-on: http://git-master/r/374485 Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
2014-02-20media: ar0261: Correct licence in headerBharat Nihalani
Appropriate GPLv2 license is updated. Bug 1458628 Change-Id: If6c8377b02a36bbbba5f2107e4c10103c74791e5 Signed-off-by: Bharat Nihalani <bnihalani@nvidia.com> Reviewed-on: http://git-master/r/369253 (cherry picked from commit c0d9741fb5da323c9d5fd190cd2a253abfb2e748) Reviewed-on: http://git-master/r/369800 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Mitch Luban <mluban@nvidia.com> Tested-by: Mitch Luban <mluban@nvidia.com>
2014-02-13driver:media:tegra: soc1040 set min frame rateDavid Wang
Added new ioctl and function for setting minimum frame rate for soc1040. This allows change between fixed and variable framerate. Bug 1435570 Change-Id: I133874aa68f6ea374fdef8d13cee709ef7aaec20 Signed-off-by: David Wang <davidw@nvidia.com> Reviewed-on: http://git-master/r/366408 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Frank Chen <frankc@nvidia.com> Reviewed-by: Thomas Cherry <tcherry@nvidia.com>
2014-02-02drivers: media: platform: tegra: remove edp clientCharlie Huang
a new edp framework has been impemented, so the old edp supports need to be removed. support for new framework will be implemeted next. bug 1431977 Change-Id: I78957a3b2979919b9222e0c2b26426b2c2431bb6 Signed-off-by: Charlie Huang <chahuang@nvidia.com> Reviewed-on: http://git-master/r/358837 Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com> Tested-by: Laxman Dewangan <ldewangan@nvidia.com>
2014-01-23media: platform: tegra: Do 8 byte alignmentRakesh Sharma
* Make structures 8 byte aligned. * Remove pointers * user _IOC_NR for ioctl Bug 1408557 Change-Id: I7b4d53f0d7316dd5abe2b9546fe34c8ba45295f2 Signed-off-by: Rakesh Sharma <rasharma@nvidia.com> Reviewed-on: http://git-master/r/350665 (cherry picked from commit f93bd46c9c7630da77dfd30d93ee836464f03582) Signed-off-by: Rakesh Sharma <rasharma@nvidia.com> Reviewed-on: http://git-master/r/358025 Reviewed-by: Automatic_Commit_Validation_User GVS: Gerrit_Virtual_Submit Reviewed-by: Thomas Cherry <tcherry@nvidia.com> Tested-by: Thomas Cherry <tcherry@nvidia.com>
2014-01-23media: platform: tegra: fix compilation errorsRakesh Sharma
Fix compilation errors for 64-bit kernel Bug 1423785 Signed-off-by: Rakesh Sharma <rasharma@nvidia.com> Change-Id: If9591732327775b310ef4bed333859bda9f9b140 Reviewed-on: http://git-master/r/345863 (cherry picked from commit 50103d95ad194f619b4b7dd3b4838e4b0e30e412) Signed-off-by: Rakesh Sharma <rasharma@nvidia.com> Reviewed-on: http://git-master/r/358013 Reviewed-by: Automatic_Commit_Validation_User GVS: Gerrit_Virtual_Submit Reviewed-by: Thomas Cherry <tcherry@nvidia.com> Tested-by: Thomas Cherry <tcherry@nvidia.com>
2014-01-23media: make int as __u32Rakesh Sharma
In case of 64 bit kernel and 32 bit odm code int will create problem. Bug 1408558 Change-Id: I1a7e7e60838a9680d1bf6ff23f218b112b18022b Signed-off-by: Rakesh Sharma <rasharma@nvidia.com> Reviewed-on: http://git-master/r/345742 (cherry picked from commit 8dcb181367b4d6d0648551563e127519f9844072) Reviewed-on: http://git-master/r/358010 Reviewed-by: Automatic_Commit_Validation_User GVS: Gerrit_Virtual_Submit Reviewed-by: Thomas Cherry <tcherry@nvidia.com> Tested-by: Thomas Cherry <tcherry@nvidia.com>
2014-01-16media: convert imx179 driver to non-nvc formatMing Wong
bug 1415077 Change-Id: I98ea518ea8de07b2cd78066522c039dadee379bd Signed-off-by: Ming Wong <miwong@nvidia.com> Reviewed-on: http://git-master/r/354372 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Frank Chen <frankc@nvidia.com> Reviewed-by: Prayas Mohanty <pmohanty@nvidia.com> Reviewed-by: Sachin Nikam <snikam@nvidia.com>
2014-01-14media: ad5823: ensure power on for pos wrPhil Breczinski
Ensures ad5823 is powered on when position is written by temporarily powering on sensor when a position wr ioctl is received. Mimics ad5816 driver. Bug 1439565 Change-Id: I168e187f2b72281c956bdc51f5e590dee01e0c68 Signed-off-by: Phil Breczinski <pbreczinski@nvidia.com> Reviewed-on: http://git-master/r/355231 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Frank Chen <frankc@nvidia.com> Reviewed-by: Thomas Cherry <tcherry@nvidia.com>
2014-01-07EDP: remove old system EDP framework (imx sensor drivers)Timo Alho
Revised system edp software framework has been put in place. This patch removes old system edp client code from imx091, imx132, and imx179 drivers. Bug 1431977 Change-Id: I7eb2179fb69802f85e5098aea304635ff2183e64 Signed-off-by: Timo Alho <talho@nvidia.com> Reviewed-on: http://git-master/r/350412 Reviewed-by: Juha Tukkinen <jtukkinen@nvidia.com>
2014-01-07EDP: remove old system EDP framework (imx135 and ar0261 drivers)Timo Alho
Revert "drivers: media: tegra: edp support" This reverts commit b9145b25074db3ca964b8f28eaedb36b45a0b1b4. Revised system edp software framework has been put in place. This patch removes the old system EDP client code from imx135 and ar0261 camera sensor drivers. Bug 1431977 Change-Id: I2276878ec69c8ab67f03e8ef2d857ebd4790252e Signed-off-by: Timo Alho <talho@nvidia.com> Reviewed-on: http://git-master/r/350411 Reviewed-by: Juha Tukkinen <jtukkinen@nvidia.com>
2014-01-07EDP: remove old system EDP framework (ov5693 and mt9m114 drivers)Timo Alho
Revert "drivers: media: tegra: edp support" This reverts commit bdd27016ab662a70e85245631a3a89b74f1fe664. Revised system edp software framework has been put in place. This patch removes the old system EDP client code from ov5693 and mt9m114 camera sensors. Bug 1431977 Change-Id: Iedb6807cadfc7d57b3724c398a345cce14867212 Signed-off-by: Timo Alho <talho@nvidia.com> Reviewed-on: http://git-master/r/350410 Reviewed-by: Juha Tukkinen <jtukkinen@nvidia.com>
2014-01-07EDP: remove old system EDP framework (camera flash drivers)Timo Alho
Revised system edp software framework has been put in place. This patch removes old system edp client code from as364x, lm3565, max77387, and max77665 flash drivers. Bug 1431977 Change-Id: I7bbe058ce5ffd1e6e44a0cef9f5d09879c46d379 Signed-off-by: Timo Alho <talho@nvidia.com> Reviewed-on: http://git-master/r/350406 Reviewed-by: Charlie Huang <chahuang@nvidia.com> Reviewed-by: Juha Tukkinen <jtukkinen@nvidia.com>
2013-12-20media: add imx179 driver supportMing Wong
Bug 1415077 Change-Id: I34f8969a726e9c069fbf239352c952a8e68fb2ff Signed-off-by: Ming Wong <miwong@nvidia.com> Reviewed-on: http://git-master/r/347764 Reviewed-by: Sachin Nikam <snikam@nvidia.com>
2013-12-17ARM: tegra: sensors: change copyright textTejas Sonchhatra
This change is for modifying the copyright/license header from BSD2.0 to GPLv2 for few board files. Change-Id: I1b4f624cdceb75654f81177d17ddcc8e0c4508b8 Signed-off-by: Tejas Sonchhatra <tmanoj@nvidia.com> Reviewed-on: http://git-master/r/345756 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Bitan Biswas <bbiswas@nvidia.com>
2013-12-16media: platform: tegra: Add feature for SOC1040Frank Chen
Add EV compensation and manual white balance modes for SOC1040 YUV sensor Bug 1403900 Change-Id: I6172eac2103ada434b123e814ec8114d7a7f8146 Signed-off-by: Frank Chen <frankc@nvidia.com> Reviewed-on: http://git-master/r/343944 Reviewed-by: Automatic_Commit_Validation_User GVS: Gerrit_Virtual_Submit Reviewed-by: Philip Breczinski <pbreczinski@nvidia.com> Reviewed-by: Gary Fitzer <gfitzer@nvidia.com> Reviewed-by: Charlie Huang <chahuang@nvidia.com> Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
2013-11-19drivers: media: tegra: fix incorrect license infoCharlie Huang
to make them compatible with the Linux kernel licensing. bug 1406088 Change-Id: I33a3f3995d1fe256e662236b0e33b59a4fa024be Signed-off-by: Charlie Huang <chahuang@nvidia.com> Reviewed-on: http://git-master/r/332586 Reviewed-by: Automatic_Commit_Validation_User GVS: Gerrit_Virtual_Submit Reviewed-by: Thomas Cherry <tcherry@nvidia.com>
2013-11-07media: platform: tegra: ar0261 register writesDavid Wang
Switch the register writes for coarse time, coarse time short, and frame length to 16bit register writes. This fixes missing byte in coarse time and frame length writes during set modoe. Bug 1399950 Change-Id: Ied14fc12c480f0c0ff640779848ae6f7bf993a40 Signed-off-by: David Wang <davidw@nvidia.com> Reviewed-on: http://git-master/r/327942 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Philip Breczinski <pbreczinski@nvidia.com> GVS: Gerrit_Virtual_Submit Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
2013-11-05media: platform: tegra: OV5693 EEPROM supportDavid Wang
Add EEPROM read/write support for OV5693. Bug 1390863 Change-Id: I01198c27f56bef953b33598f7866a26123c910de Signed-off-by: David Wang <davidw@nvidia.com> Reviewed-on: http://git-master/r/326313 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Charlie Huang <chahuang@nvidia.com> Reviewed-by: Sachin Nikam <snikam@nvidia.com>
2013-11-01media: tegra v4l2 camera: refactor driver codeBryan Wu
Reconstruct the driver for Tegra V4L2 camera driver: - remove old driver file tegra_v4l2_camera.c - create driver file vi.c for VI/CSI (T20/T30/T114/T148) - create driver file vi2.c for VI2/CSI2 (T124) Bug 1377330 Change-Id: If030cf98e700b9201caa60328be822bc10610e74 Signed-off-by: Bryan Wu <pengw@nvidia.com> Reviewed-on: http://git-master/r/289329 GVS: Gerrit_Virtual_Submit Reviewed-by: Allen Martin <amartin@nvidia.com>
2013-10-31Merge tag 'v3.10.17' into dev-kernel-3.10Ajay Nandakumar
This is the 3.10.17 stable release Conflicts: drivers/usb/host/xhci.c Change-Id: I6bd3b15ff92a0b94568b9d02e9bb1036becfca20
2013-10-29media: platform: tegra: Add features for OV7695Frank Chen
Adding the following features to ov7695 YUV sensor - EV Compensation(-2, -1, 0, +1, +2) - White Balance Modes (Auto, Cloudy, Daylight, Fluoresent, Incandescent) Bug 1327952 Change-Id: Ib0d326daa31aad8bd77e884501a302666c1af0d5 Signed-off-by: Frank Chen <frankc@nvidia.com> Reviewed-on: http://git-master/r/302538 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Jon Mayo <jmayo@nvidia.com>
2013-10-28drivers: media: tegra: edp supportCharlie Huang
Added edp support on ar0261 and imx135 bug 1358215 Change-Id: I9930865d438be7e672435fc792d5c0f1daf70ea0 Signed-off-by: Charlie Huang <chahuang@nvidia.com> Reviewed-on: http://git-master/r/301404 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: David Wang (SW-TEGRA) <davidw@nvidia.com> GVS: Gerrit_Virtual_Submit Reviewed-by: Diwakar Tundlam <dtundlam@nvidia.com>
2013-10-25drivers: media: tegra: edp supportDavid Wang
on ov5693 and mt9m114 (SOC1040) bug 1391722 bug 1391719 Change-Id: Ic0830ea803cf8a50e8ef94d3c0c1393d0a29da10 Signed-off-by: David Wang <davidw@nvidia.com> Reviewed-on: http://git-master/r/302932 Reviewed-by: Mitch Luban <mluban@nvidia.com> Tested-by: Mitch Luban <mluban@nvidia.com>
2013-10-17media: soc_camera_platform: add dev_priv fieldBryan Wu
.priv field is used by Tegra V4L2 SoC camera driver, so introduce a new field named .dev_priv. Bug 1377330 Change-Id: Id714dca05d7640175b3dc25f7ce582d76abbcaf4 Signed-off-by: Bryan Wu <pengw@nvidia.com> Reviewed-on: http://git-master/r/289328 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Allen Martin <amartin@nvidia.com>
2013-10-16media: platform: tegra: update ov5693 driver.Frank Chen
Update the ov5693 driver to reflect changes made during tegranote development on serperate branch. Fixing the following issues: - Sluggish preview - Pink preview in video mode Bug 1373309 Bug 1367317 Change-Id: Ic0de85a6b783678cebfc328e38cf84c30e6bf316 Signed-off-by: Frank Chen <frankc@nvidia.com> Signed-off-by: David Wang <davidw@nvidia.com> Reviewed-on: http://git-master/r/298692 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
2013-10-16media: platform: tegra: update ad5823 driverFrank Chen
This is to bring the ad5823 focuser driver to the same state of TegraNote ad5823 driver. This should solve the focuser timeout issue. Bug 1371717 Change-Id: I33ea762f489f38e92a024bb3c49596c96a88606b Signed-off-by: Frank Chen <frankc@nvidia.com> Reviewed-on: http://git-master/r/282828 Tested-by: David Wang (SW-TEGRA) <davidw@nvidia.com> Reviewed-by: Automatic_Commit_Validation_User GVS: Gerrit_Virtual_Submit Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
2013-10-15media:video:tegra: add HDR for ar0261Amey Asgaonkar
adding HDR support code for front camera sensor ar0261. Bug 1330898 Change-Id: I455d8d9fc8b529ea0bd35ce4538932fd48b6882a Signed-off-by: Amey Asgaonkar <aasgaonkar@nvidia.com> Reviewed-on: http://git-master/r/299108 Reviewed-by: David Wang (SW-TEGRA) <davidw@nvidia.com> Reviewed-by: Philip Breczinski <pbreczinski@nvidia.com> Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Sachin Nikam <snikam@nvidia.com> Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
2013-10-03media: platform: tegra: ov5693: update fuseid readPhil Breczinski
Update ov5693's fuse ID read ioctl handling to match the standard. Bug 1369367 Change-Id: I600bd459ca4c8315b4f2bfe243a3e36e5ffc8aa7 Signed-off-by: Phil Breczinski <pbreczinski@nvidia.com> (cherry picked from commit 84654e65576d0c9d735d889959786c8883678689) Signed-off-by: Ajay Nandakumar <anandakumarm@nvidia.com>
2013-09-27video: tegra: dtv: Use generic DMA engine driverMallikarjun Kasoju
Bug 1313737 Bug 1350300 Change-Id: I95bae7eb04bf73b998b4333a1707967b3417ddb2 Signed-off-by: Mallikarjun Kasoju <mkasoju@nvidia.com> Reviewed-on: http://git-master/r/275073 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Adam Jiang <chaoj@nvidia.com> Reviewed-by: Venkat Moganty <vmoganty@nvidia.com> Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
2013-09-27media: tegra: PCL driver updatesCharlie Huang
change some dev_err to dev_notice to avoid LNX error filter alarm. synchronize cam_device_layout with odm imager as well as update debugfs prints. change the regulator names of imx132 and ov5693 to avoid name conflict with other sensors. bug 1339839 Change-Id: I134b8b10d5df965bffa8ac0333a0c3775cf882a5 Signed-off-by: Charlie Huang <chahuang@nvidia.com> Reviewed-on: http://git-master/r/259810 (cherry picked from commit 89f7b0768a509fc70e78457c6352ef13f874988f) Reviewed-on: http://git-master/r/272739 Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com> Tested-by: Bharat Nihalani <bnihalani@nvidia.com>
2013-09-26media: video: tegra: Add SOC1040 (mt9m114) driverFrank Chen
Add SOC1040 (mt9m114) YUV sensor driver Bug 1327952 Change-Id: I91fc5ac9cbb7b537bdb6f31684d99725689a61a3 Signed-off-by: Frank Chen <frankc@nvidia.com> Reviewed-on: http://git-master/r/274669 Reviewed-by: Charlie Huang <chahuang@nvidia.com> Reviewed-by: Jean Huang <jeanh@nvidia.com> Reviewed-by: Hu He <hhe@nvidia.com> Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
2013-09-26media: v4l2: added missing mutex.h include to v4l2-ctrls.hAndrzej Hajda
commit a19dec6ea94c036af68c31930c1c92681f55af41 upstream. This patch fixes following error: include/media/v4l2-ctrls.h:193:15: error: field ‘_lock’ has incomplete type include/media/v4l2-ctrls.h: In function ‘v4l2_ctrl_lock’: include/media/v4l2-ctrls.h:570:2: error: implicit declaration of function ‘mutex_lock’ [-Werror=implicit-function-declaration] include/media/v4l2-ctrls.h: In function ‘v4l2_ctrl_unlock’: include/media/v4l2-ctrls.h:579:2: error: implicit declaration of function ‘mutex_unlock’ [-Werror=implicit-function-declaration] Signed-off-by: Andrzej Hajda <a.hajda@samsung.com> Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com> Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com> Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2013-09-16media:video:tegra: Add Fuse ID read for IMX132.Amey Asgaonkar
Adds support for reading fuse ids for IMX132 sensor. Bug 1307361 Change-Id: I7b750a91d3ead5fac383e85df013b78d7fe4c6a2 Signed-off-by: Amey Asgaonkar <aasgaonkar@nvidia.com> Reviewed-on: http://git-master/r/254573 (cherry picked from commit 77b2dc05d8d051659140343531d9ce34e01efeea) Reviewed-on: http://git-master/r/272670 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Philip Breczinski <pbreczinski@nvidia.com> Reviewed-by: Thomas Cherry <tcherry@nvidia.com>