summaryrefslogtreecommitdiff
path: root/drivers/video/msm/ba (follow)
Commit message (Collapse)AuthorAge
* adv7481: Add support for interlaced HDMI and CVBS inputSuprith Malligere Shankaregowda2018-06-08
| | | | | | | | | | Set active lines based on input standard returned by SD core. Add vid parameter to sd_timings to return number of active lines to user. Increase SDP_NUM_TRIES to lock stable input. Return v4l2_field type of HDMI and CVBS INPUT to userspace. Change-Id: Ifbde4ca32fad40bc3235fed0715c11854a8aa08c Signed-off-by: Suprith Malligere Shankaregowda <supgow@codeaurora.org>
* adv7481: Add support for AVI InfoframeSuprith Malligere Shankaregowda2018-05-30
| | | | | | | | | | AVI Infoframe provides the aspect ratio and video identification code information. Add support to read this from ADV7481 registers and to return it to user space through an ioctl call. Change-Id: Ia64fbc736b548633b34a9bd96f7a78700afb3db5 Signed-off-by: Suprith Malligere Shankaregowda <supgow@codeaurora.org>
* ais: support field info report to user spaceAndy Sun2018-01-22
| | | | | | | | | | | | 1. send real SOF event to user space per SOF irq; original SOF event per: CAMIF port: epoch irq RDI port: reg_update irq 2. provide interface for user space to query field type; 3. provide frame id from stream_info not src_info for user; Change-Id: Ied446b81a84d95c7273d1aa3918a474ac739971f Signed-off-by: Andy Sun <bins@codeaurora.org>
* TvTuner: Add support for TV tuner driverRahul Sharma2017-12-22
| | | | | | | | Add new dummy tv tuner driver and its documentation. Update Makefile, Kconfig and add new tuner id type to msm_ba.h Change-Id: I14f822ad9fdf85ea7509067d536c49fd24cf1609 Signed-off-by: Rahul Sharma <sharah@codeaurora.org>
* ADV7481: Query lane_count and settle_count from device treeRahul Sharma2017-12-22
| | | | | | | | | Get lane count and settle count from device tree. Add VIDIOC_G_CSI_PARAMS ioctl to pass lane count and settle count values to userspace. Change-Id: Ic0e0b7b402908c9970fd1771cf9bf19627f5a5d8 Signed-off-by: Rahul Sharma <sharah@codeaurora.org>
* Merge "msm: ba: avoid system crash in msm_ba_open()"Linux Build Service Account2017-11-21
|\
| * msm: ba: avoid system crash in msm_ba_open()Jingtao Chen2017-11-19
| | | | | | | | | | | | | | | | If it failed to get ba device, return NULL in msm_ba_open() to avoid system crash on some specific board without adv7481 chip. Change-Id: I5a3af414a683d852027b84b9ba0d64e2ee450e61 Signed-off-by: Jingtao Chen <jingtaoc@codeaurora.org>
* | Revert "ais: query field info and pass to user space"Andy Sun2017-11-21
|/ | | | | | | | This reverts commit 3375a292eaf2230a2ad3b90dfc16c9c3ad1f9ce7. Need to change the solution and re-implement this feature. Change-Id: Iabd38bd5c0c062590215c3f22e9383853efa889c Signed-off-by: Andy Sun <bins@codeaurora.org>
* ais: query field info and pass to user spaceAndy Sun2017-11-15
| | | | | | | | | | Current path to query field info: SOF ISR -> tasklet -> query thread with high priority -> ba driver -> adv7481. Pass field type to user space if they are valid after verification. Change-Id: Id9926236389200446092dc9abb688ee1f83ab0c3 Signed-off-by: Andy Sun <bins@codeaurora.org>
* msm: ba: Fix some potential risksJingtao Chen2017-06-15
| | | | | | | Avoid memory leaks and prevent to dereference null pointer Change-Id: I907ea987b0f3d6971116e116841482fa364ef7b8 Signed-off-by: Jingtao Chen <jingtaoc@codeaurora.org>
* msm: ba: Update printk format specifier to prevent leaksShiju Mathew2017-06-15
| | | | | | | | | Update printk format from %p to %pK in msm_ba driver to hide exposed kernel pointers. CRs-Fixed: 2036994 Change-Id: I8f9290670888a0b351339990f0dc2fa4fcc78b26 Signed-off-by: Shiju Mathew <shijum@codeaurora.org>
* msm: ba: Update ba driver to latest v4l2 frameworkJingtao Chen2017-06-08
| | | | | | | | This patch upgrades ba driver to be compatible with the latest v4l2 framework. Change-Id: Id91953f7a4a075533e7e8bedab71e5c20d4da2c1 Signed-off-by: Jingtao Chen <jingtaoc@codeaurora.org>
* msm: ba: Fix race conditions in debug writesRahul Sharma2017-06-08
| | | | | | | | Use dynamic allocation for debug buffer instead of static. This is to avoid race condition which can cause buffer overflows. Change-Id: I1b4eecb4280843064712ee3b7b52e23f55ab53c3 Signed-off-by: Rahul Sharma <sharah@codeaurora.org>
* msm: ba: Update video input device enumerationShiju Mathew2017-06-08
| | | | | | | | | | | Remove signal status check during enumeration to avoid any unnecessary polling of device status during bootup. The single status check is done when device is open for streaming. CRs-Fixed: 1092315 Change-Id: I2027fe0fab0fb865071001e7400ba7672433d8f5 Signed-off-by: Shiju Mathew <shijum@codeaurora.org>
* msm: ba: Fix issue with multiple BA profilesShiju Mathew2017-06-08
| | | | | | | | | Fix NULL pointer dereferencing on enabling multiple BA profiles. It was due to improper pointer assignment. CRs-Fixed: 1029211 Change-Id: Ibab903d8aaf4c74d0c35386778a84d9280dbb221 Signed-off-by: Shiju Mathew <shijum@codeaurora.org>
* msm: ba: Remove default disable of BA driverShiju Mathew2017-06-08
| | | | | | | | | Enable/Disable of bridge abstraction driver will be done from kernel defconfig file. CRs-Fixed: 1021381 Change-Id: Ie674de7c9c4a667a1eaeb6dd907341fef0cc34d1 Signed-off-by: Shiju Mathew <shijum@codeaurora.org>
* msm: ba: Add DT support for BA driverShiju Mathew2017-06-08
| | | | | | | | Move BA platform specific data into DT and minor cleanups. CRs-Fixed: 998927 Change-Id: Ib68a7b16986b92a46a98beab0c35591274c334ba Signed-off-by: Shiju Mathew <shijum@codeaurora.org>
* msm: ba: Merge relevant changes from A familyShiju Mathew2017-06-08
| | | | | | | | | Merge relevant bridge abstraction changes from 8064 to MSM8996. CRs-Fixed: 998927 Change-Id: I4baaa5a8b93cade64b0064acdc63b3b4ab7765e7 Signed-off-by: Shiju Mathew <shijum@codeaurora.org>
* msm: BA: Save platform driver in device contextDomi Papoi2017-06-08
| | | | | | | | Probe function rework to have the drive capability of reading from dts. Change-Id: I5cc05d4e4ffd3d0f5546c1177516a2d0805be481 Signed-off-by: Domi Papoi <dpapoi@codeaurora.org>
* msm: BA: Fix race condition with v4l2 event handlerDomi Papoi2017-06-08
| | | | | | | | | | The v4l2 event handler struct should be initialized before added to the dev_ctxt->instances list. The v4l2 event handler struct should be de-initialized after we remove inst from the core->instances list. Change-Id: I1faf6bab4232bbcd2ca567a9a11b0c8faa2f45ce Signed-off-by: Domi Papoi <dpapoi@codeaurora.org>
* msm: BA: Fix a race condition in BA event handlingDomi Papoi2017-06-08
| | | | | | | | Add proper locking in event handling so that invocation of multiple events will not corrupt the event list. Change-Id: I4499b3c0a106cbada54bbc122bb03ad5c30ed2c3 Signed-off-by: Domi Papoi <dpapoi@codeaurora.org>
* msm: BA: Avoid null pointer dereferencingDomi Papoi2017-06-08
| | | | | | | | Add null pointer checking to avoid null pointer dereferencing for ba input. Change-Id: Ic54bbf8748a78c7f33540cab2ec32b753969fa06 Signed-off-by: Domi Papoi <dpapoi@codeaurora.org>
* msm: BA: Create Bridge Abstraction (BA)Domi Papoi2017-06-08
Create bridge abstraction driver to provide a framework that can be used to abstract different types of bridge chips under a common API. The framework also allows multiple drivers to control different functional aspects of a bridge chip. The bridge abstraction driver is limited to bridge chips that deal with converting audio/video data from one protocol to a different one. Change-Id: Ib42365fb41afda8029f4f6e9b1ec27549d885659 Signed-off-by: Domi Papoi <dpapoi@codeaurora.org>