77639ff2b3404a913b8037d230a384798b854bae |
|
12-Sep-2014 |
Hans Verkuil <hverkuil@xs4all.nl> |
[media] adv7604: fix inverted condition The log_status function should show HDMI information, but the test checking for an HDMI input was inverted. Fix this. Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com> Cc: stable@vger.kernel.org # for v3.12 and up Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
|
f8789e6d9c824aeaeeb5b44b926dc8e960487cfe |
|
20-Sep-2014 |
Hans Verkuil <hans.verkuil@cisco.com> |
[media] adv7604/adv7842: fix il_vbackporch typo and zero the struct Both adv7604 and adv7842 had the same typo in the code that sets the vertical backporch for the second interlaced field: it was assigned to vbackporch instead of il_vbackporch. In addition, the timings struct wasn't zeroed in the adv7842 driver, leaving several fields to undefined values causing the timing match function to fail. Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
|
c41ad9c38ef36545563dd55345879fe5f867aa19 |
|
17-Jun-2014 |
Lars-Peter Clausen <lars@metafoo.de> |
[media] adv7604: Update recommended writes for the adv7611 Update the recommended writes to those mentioned in the Rev 1.5 version of the ADV7611 Register Settings Recommendations document released by Analog Devices. The document does not mention why the recommended settings have been updated, but presumably those are more fine tuned settings that can enhance performance in some cases. Signed-off-by: Lars-Peter Clausen <lars@metafoo.de> Acked-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com> Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
|
1b5ab8755ec7b6ac83bf8d09c9f908d94e36b9a4 |
|
04-Feb-2014 |
Laurent Pinchart <laurent.pinchart@ideasonboard.com> |
[media] adv7604: Add LLC polarity configuration Add an inv_llc_pol field to platform data to control the clock polarity. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Hans Verkuil <hans.verkuil@cisco.com> Reviewed-by: Sylwester Nawrocki <s.nawrocki@samsung.com> Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
|
9b2c38239dcd21d9eed1a49a486d8779c915d277 |
|
26-Mar-2014 |
Laurent Pinchart <laurent.pinchart@ideasonboard.com> |
[media] adv7604: Set HPD GPIO direction to output The HPD GPIO is used as an output but its direction is never set. Fix it. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Acked-by: Hans Verkuil <hans.verkuil@cisco.com> Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
|
6fa88045ef7db3d09af80aa00fd7c937b7289387 |
|
05-Feb-2014 |
Laurent Pinchart <laurent.pinchart@ideasonboard.com> |
[media] adv7604: Add endpoint properties to DT bindings Add support for the hsync-active, vsync-active and pclk-sample properties to the DT bindings and control BT.656 mode implicitly. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Acked-by: Hans Verkuil <hans.verkuil@cisco.com> Acked-by: Sylwester Nawrocki <s.nawrocki@samsung.com> Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
|
f82f313e9739026ca96342b5b44c5c94072e166a |
|
25-Nov-2013 |
Laurent Pinchart <laurent.pinchart@ideasonboard.com> |
[media] adv7604: Add DT support Parse the device tree node to populate platform data. Only the ADV7611 is currently support with DT. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Acked-by: Hans Verkuil <hans.verkuil@cisco.com> Acked-by: Sylwester Nawrocki <s.nawrocki@samsung.com> Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
|
5ef54b5955acdcc63ac8ad7cf0aef3d16070773a |
|
31-Jan-2014 |
Laurent Pinchart <laurent.pinchart@ideasonboard.com> |
[media] adv7604: Specify the default input through platform data And set input routing when initializing the device. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Hans Verkuil <hans.verkuil@cisco.com> Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
|
e9d50e9e7051a67783d75cd57ce360818b07d37b |
|
30-Jan-2014 |
Laurent Pinchart <laurent.pinchart@ideasonboard.com> |
[media] adv7604: Support hot-plug detect control through a GPIO Add support for optional GPIO-controlled HPD pins in addition to the ADV7604-specific hotplug notifier. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Hans Verkuil <hans.verkuil@cisco.com> Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
|
c72a53ce059394749b6db067ba78ad2a317fd7e6 |
|
30-Jan-2014 |
Laurent Pinchart <laurent.pinchart@ideasonboard.com> |
[media] adv7604: Sort headers alphabetically This helps locating duplicates and inserting new headers. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Hans Verkuil <hans.verkuil@cisco.com> Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
|
22d97e561dac6cc90954567a7b4be54680982769 |
|
30-Jan-2014 |
Laurent Pinchart <laurent.pinchart@ideasonboard.com> |
[media] adv7604: Replace *_and_or() functions with *_clr_set() The *_and_or() functions take an 'and' bitmask to be ANDed with the register value before ORing it with th 'or' bitmask. As the functions are used to mask and set bits selectively, this requires the caller to invert the 'and' bitmask and is thus error prone. Replace those functions with a *_clr_set() variant that takes a mask of bits to be cleared instead of a mask of bits to be kept. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Hans Verkuil <hans.verkuil@cisco.com> Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
|
05cacb176712cbbd3ae0331d92fe57741ef2d2ba |
|
30-Jan-2014 |
Laurent Pinchart <laurent.pinchart@ideasonboard.com> |
[media] adv7604: Store I2C addresses and clients in arrays This allows replacing duplicate code blocks by loops over the arrays. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Hans Verkuil <hans.verkuil@cisco.com> Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
|
c269887c2da49ad55ff59217255b0e95b0cec0e9 |
|
30-Jan-2014 |
Laurent Pinchart <laurent.pinchart@ideasonboard.com> |
[media] adv7604: Inline the to_sd function This one line function is called in a single location. Inline it. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Hans Verkuil <hans.verkuil@cisco.com> Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
|
7515e096937e4c38fa005374b6b6113d3b1eff5b |
|
31-Jan-2014 |
Laurent Pinchart <laurent.pinchart@ideasonboard.com> |
[media] adv7604: Remove deprecated video-level DV timings operations The video enum_dv_timings and dv_timings_cap operations are deprecated and unused. Remove them. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Hans Verkuil <hans.verkuil@cisco.com> Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
|
afec55992e228fa3b553d5b4c9e1ead9fb5780bd |
|
29-Jan-2014 |
Laurent Pinchart <laurent.pinchart@ideasonboard.com> |
[media] adv7604: Add pad-level DV timings support The video enum_dv_timings and dv_timings_cap operations are deprecated. Implement the pad-level version of those operations to prepare for the removal of the video version. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Hans Verkuil <hans.verkuil@cisco.com> Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
|
539b33b05913f1de34c7e0ef3376347ffd273e8f |
|
26-Jan-2014 |
Laurent Pinchart <laurent.pinchart@ideasonboard.com> |
[media] adv7604: Make output format configurable through pad format operations Replace the dummy video format operations by pad format operations that configure the output format. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Hans Verkuil <hans.verkuil@cisco.com> Tested-by: Hans Verkuil <hans.verkuil@cisco.com> Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
|
c784b1e2ece8a591263050d1f59607547dfad8f3 |
|
29-Jan-2014 |
Laurent Pinchart <laurent.pinchart@ideasonboard.com> |
[media] adv7604: Add sink pads The ADV7604 has sink pads for its HDMI and analog inputs. Report them. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Hans Verkuil <hans.verkuil@cisco.com> Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
|
454378923a9b44e26918893fac8bdeb43ae0f57b |
|
26-Jan-2014 |
Laurent Pinchart <laurent.pinchart@ideasonboard.com> |
[media] adv7604: Remove subdev control handlers Control operations are handled by the control framework and the subdev control handlers are never called directly. Remove them. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Hans Verkuil <hans.verkuil@cisco.com> Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
|
d42010a1d23979db434826e6b9449ad777bee02f |
|
25-Nov-2013 |
Lars-Peter Clausen <lars@metafoo.de> |
[media] adv7604: Add adv7611 support This patch adds support for the Analog Devices ADV7611 HDMI receiver. The adv7611 is quite similar to the adv7604. It has only one instead of four HDMI inputs and no analog frontend though. Also some register bits have been shuffled around, but large parts of their register maps are compatible. Signed-off-by: Lars-Peter Clausen <lars@metafoo.de> Reviewed-by: Hans Verkuil <hans.verkuil@cisco.com> Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
|
4a2ccdd257903a63d218cab6916486c30bee453e |
|
09-Jan-2014 |
Laurent Pinchart <laurent.pinchart@ideasonboard.com> |
[media] adv7604: Cache register contents when reading multiple bits When extracting multiple bits from a single register read the register once and extract the bits on the read value. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Hans Verkuil <hans.verkuil@cisco.com> Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
|
51182a945c3e267b9183643da3e6e4642fbe6cf2 |
|
08-Jan-2014 |
Laurent Pinchart <laurent.pinchart@ideasonboard.com> |
[media] adv7604: Add 16-bit read functions for CP and HDMI 16-bit registers are read through two 8-bit read operations. Factorize that common pattern into 16-bit read accessors to simplify the code. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Hans Verkuil <hans.verkuil@cisco.com> Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
|
f216ccb3d9d5603f750e50dbe66190de87dc52d8 |
|
25-Nov-2013 |
Lars-Peter Clausen <lars@metafoo.de> |
[media] adv7604: Don't put info string arrays on the stack We do not want to modify the info string arrays ever, so no need to waste stack space for them. While we are at it also make them const. Signed-off-by: Lars-Peter Clausen <lars@metafoo.de> Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Hans Verkuil <hans.verkuil@cisco.com> Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
|
bedc3939dc866e0bf2648ca3700119bf6c3e54de |
|
25-Nov-2013 |
Lars-Peter Clausen <lars@metafoo.de> |
[media] adv7604: Add support for asynchronous probing Register the device with the v4l2 asynchronous probing framework to support asynchronous instantiation systems such as DT. Signed-off-by: Lars-Peter Clausen <lars@metafoo.de> Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Hans Verkuil <hans.verkuil@cisco.com> Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
|
f2e9084779d3ad3b51ee45a3a53fead3f16516ca |
|
29-Jan-2014 |
Laurent Pinchart <laurent.pinchart@ideasonboard.com> |
[media] v4l: Validate fields in the core code for subdev EDID ioctls The subdev EDID ioctls receive a pad field that must reference an existing pad and an EDID field that must point to a buffer. Validate both fields in the core code instead of duplicating validation in all drivers. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Acked-by: Sakari Ailus <sakari.ailus@linux.intel.com> Reviewed-by: Hans Verkuil <hans.verkuil@cisco.com> Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
|
b09dfac83201812bf359e32a17afc7f6763ae379 |
|
04-Mar-2014 |
Hans Verkuil <hans.verkuil@cisco.com> |
[media] adv*: replace the deprecated v4l2_subdev_edid by v4l2_edid Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com> Acked-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
|
591b72fe739cb2fcb8052eff02feaa2d4a52fbca |
|
17-Dec-2013 |
Hans Verkuil <hans.verkuil@cisco.com> |
[media] adv7604: initialize timings to CEA 640x480p59.94 This timing must be supported by all HDMI equipment, so that's a reasonable default. Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com> Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
|
9890869651fc8bc3876f2eb839ac403edb47560d |
|
20-Dec-2013 |
Martin Bugge <marbugge@cisco.com> |
[media] adv7604: sync polarities from platform data Signed-off-by: Martin Bugge <marbugge@cisco.com> Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com> Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
|
d48eb48cd4d497e2e65c68d3ca3976a8dbfc992e |
|
12-Dec-2013 |
Mats Randgaard <matrandg@cisco.com> |
[media] adv7604: return immediately if the new timings are equal to what is configured Signed-off-by: Mats Randgaard <matrandg@cisco.com> Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com> Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
|
f24d229c1e17d40f81010ede53d9bf67327e21d2 |
|
10-Dec-2013 |
Mats Randgaard <matrandg@cisco.com> |
[media] adv7604: Enable HDMI_MODE interrupt Some sources are initially detected as DVI, and change to HDMI later. This must be detected to set the right RGB quantization range. Signed-off-by: Mats Randgaard <matrandg@cisco.com> Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com> Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
|
5c6c634916cab638f474dca20b2fba942cfd6ffc |
|
05-Dec-2013 |
Mats Randgaard <matrandg@cisco.com> |
[media] adv7604: adjust gain and offset for DVI-D signals If the input signal is DVI-D and quantization range is RGB full range, gain and offset must be adjusted to get the right range on the output. Signed-off-by: Mats Randgaard <matrandg@cisco.com> Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com> Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
|
1e0b9156d52ac748c92d5aa7ae9dc602168b0b62 |
|
05-Dec-2013 |
Martin Bugge <marbugge@cisco.com> |
[media] adv7604: set restart_stdi_once flag when signal is lost If the restart_stdi_once trick fails to find a valid format the flag was never reset. Signed-off-by: Martin Bugge <marbugge@cisco.com> Cc: Mats Randgaard <matrandg@cisco.com> Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com> Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
|
5474b983c679e3df5ee3c2731c0b685915d5250d |
|
05-Dec-2013 |
Mats Randgaard <matrandg@cisco.com> |
[media] adv7604: improve HDMI audio handling - Mute audio before switching inputs to avoid noise/pops - Mute audio if audio FIFO over-/underflows (AD Recommended setting) - Reset FIFO if it over-/underflows (AD Recommended setting) Signed-off-by: Mats Randgaard <matrandg@cisco.com> Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com> Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
|
14d03233517001849742e45803219755430a5eed |
|
05-Dec-2013 |
Mats Randgaard <matrandg@cisco.com> |
[media] adv7604: remove debouncing of ADV7604_FMT_CHANGE events ADV7604_FMT_CHANGE events was debounced in adv7604_isr() to avoid that a receiver with a unstable input signal would block the event handling for other inputs. This solution was prone to errors. A better protection agains interrupt blocking is to delay the call of the interrupt service routine in the adv7604 driver if too many interrupts are received within a given time. Signed-off-by: Mats Randgaard <matrandg@cisco.com> Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com> Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
|
ff4f80fdfaefb7906ed58ec36248591687f927b5 |
|
05-Dec-2013 |
Mats Randgaard <matrandg@cisco.com> |
[media] adv7604: return immediately if the new input is equal to what is configured Signed-off-by: Mats Randgaard <matrandg@cisco.com> Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com> Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
|
94b130131115de6c7c6b6228379e61d270ab8966 |
|
05-Dec-2013 |
Mats Randgaard <matrandg@cisco.com> |
[media] adv7604: remove connector type. Never used for anything useful May also be wrong if the receiver is connected to more than one connector. Signed-off-by: Mats Randgaard <matrandg@cisco.com> Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com> Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
|
dd08beb905cc170c596306661ddbe311765c771b |
|
10-Dec-2013 |
Mats Randgaard <matrandg@cisco.com> |
[media] adv7604: improve EDID handling - split edid_write_block() - do not use edid->edid before the validity check - Return -EINVAL if edid->pad is invalid - Save both registers for SPA port A - Set SPA location to default value if it is not found Signed-off-by: Mats Randgaard <matrandg@cisco.com> Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com> Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
|
3e86aa856d0b1f9d24c2dd83f4e31f93795f34c6 |
|
10-Dec-2013 |
Mats Randgaard <matrandg@cisco.com> |
[media] adv7604: set CEC address (SPA) in EDID Signed-off-by: Mats Randgaard <matrandg@cisco.com> Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com> Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
|
d261e8428b9fed1d42827677688c457e7197e5d1 |
|
05-Dec-2013 |
Mats Randgaard <matrandg@cisco.com> |
[media] adv7604: select YPbPr if RGB_RANGE_FULL/LIMITED is set for VGA_COMP inputs Signed-off-by: Mats Randgaard <matrandg@cisco.com> Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com> Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
|
9833239e13735dc318d1b76a6aec32b409d2653c |
|
05-Dec-2013 |
Mats Randgaard <matrandg@cisco.com> |
[media] adv7604: Receive CEA formats as RGB on VGA (RGB) input If the input is ADV7604_INPUT_VGA_RGB and RGB quantization range is set to V4L2_DV_RGB_RANGE_AUTO, video with CEA timings will be received as RGB. For ADV7604_INPUT_VGA_COMP, automatic CSC mode will be selected. See table 44 on page 205 in "ADV7604 Hardware Manual, Rev. F, August 2010" for details. Signed-off-by: Mats Randgaard <matrandg@cisco.com> Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com> Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
|
1577461be7c95bfc14084267cd74e2671310153c |
|
10-Dec-2013 |
Hans Verkuil <hans.verkuil@cisco.com> |
[media] adv7604: adv7604_s_register clean up Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com> Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
|
547ed542ab570c690ac3cf773a7bdae5323119f0 |
|
05-Dec-2013 |
Martin Bugge <marbugge@cisco.com> |
[media] adv7604: support 1366x768 DMT Reduced Blanking Signed-off-by: Martin Bugge <marbugge@cisco.com> Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com> Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
|
f31b62e14a000f4e7bf37ad8a84b13cb2079de21 |
|
20-Dec-2013 |
Mikhail Khelik <mkhelik@cisco.com> |
[media] adv7604: add hdmi driver strength adjustment The driver strength is board dependent, so set it from the platform_data. Signed-off-by: Mikhail Khelik <mkhelik@cisco.com> Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com> Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
|
4a31a93a71e9d5d32945aa6f9a5de59ce3be2b94 |
|
10-Dec-2013 |
Mats Randgaard <matrandg@cisco.com> |
[media] adv7604: add support for all the digital input ports The adv7604 supports four digital input ports. This patch adds support for all of them, instead of just port A. Signed-off-by: Mats Randgaard <matrandg@cisco.com> Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com> Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
|
f58c91ce82cbb55a48fbc1a0cb7c84c0d0a4e1bd |
|
21-Oct-2013 |
Jonathan McCrohan <jmccrohan@gmail.com> |
[media] media_tree: Fix spelling errors Fix various spelling errors in strings and comments throughout the media tree. The majority of these were found using Lucas De Marchi's codespell tool. [m.chehab@samsung.com: discard hunks with conflicts] Signed-off-by: Jonathan McCrohan <jmccrohan@gmail.com> Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com> Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
|
39c1cb2b191f56a963103d715797fca70f2fb26e |
|
21-Oct-2013 |
Jonathan McCrohan <jmccrohan@gmail.com> |
[media] media_tree: Fix spelling errors Fix various spelling errors in strings and comments throughout the media tree. The majority of these were found using Lucas De Marchi's codespell tool. [m.chehab@samsung.com: discard hunks with conflicts] Signed-off-by: Jonathan McCrohan <jmccrohan@gmail.com> Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com> Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
|
8c0eadb88bc67cee8b83e08f5743bd7c378efdd9 |
|
22-Aug-2013 |
Hans Verkuil <hans.verkuil@cisco.com> |
[media] adv7604: set is_private only after successfully creating all controls is_private was set right after creating each control, but the control pointer might be NULL in case of an error. Set it after all controls were successfully created, since that guarantees that all control pointers are non-NULL. Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com> Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
|
fe9c2564d80d633d08a2d69fe38598c06a0ddfb2 |
|
19-Aug-2013 |
Hans Verkuil <hans.verkuil@cisco.com> |
[media] adv7604/ad9389b/ths8200: decrease min_pixelclock to 25MHz The CEA-861 standard allows for the 640x480 format at 25.175 MHz. Ensure that that's allowed according to the struct v4l2_bt_timings_cap. Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com> Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
|
ef1ed8f5d366a035e532456bd747d34e5cb01ee5 |
|
15-Aug-2013 |
Hans Verkuil <hans.verkuil@cisco.com> |
[media] v4l2-dv-timings: rename v4l_match_dv_timings to v4l2_match_dv_timings It's the only function in v4l2-dv-timings.c with the v4l prefix instead of v4l2. Make it consistent with the other functions. Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com> Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
|
11d034c8b60c3eebc2a12f5e99a200f55a786230 |
|
15-Aug-2013 |
Hans Verkuil <hans.verkuil@cisco.com> |
[media] ad9389b/adv7604/ths8200: use new v4l2_print_dv_timings helper These three drivers all have code to log the dv_timings contents. Replace that code with the new helper function. Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com> Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
|
70028fe646e63dd01070d1aaf304bbbc80e4a90a |
|
14-Aug-2013 |
Mats Randgaard <matrandg@cisco.com> |
[media] adv7604: print flags and standards in timing information Signed-off-by: Mats Randgaard <matrandg@cisco.com> Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com> Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
|
76eb2d30140d6a7072b7faf33b109c5a4e82ee4a |
|
14-Aug-2013 |
Mats Randgaard <matrandg@cisco.com> |
[media] adv7604: improve log_status for HDMI/DVI-D signals Don't log if there is no signal. If there is a signal, then also log HDCP and audio status. Signed-off-by: Mats Randgaard <matrandg@cisco.com> Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com> Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
|
bb88f325a4685de821d4de352c987bc30bd4ebca |
|
14-Aug-2013 |
Martin Bugge <marbugge@cisco.com> |
[media] adv7604: pixel-clock depends on deep-color-mode The frequency calculation has to take deep-color mode into account. While we're at it, also log the deep-color mode in log_status. Signed-off-by: Martin Bugge <marbugge@cisco.com> Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com> Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
|
25a64ac95055d87e2e7b86ba3b9a81e91cb55a39 |
|
14-Aug-2013 |
Mats Randgaard <matrandg@cisco.com> |
[media] adv7604: debounce "format change" notifications The bridge driver is only notified when the input status has changed since the previous interrupt. Signed-off-by: Mats Randgaard <matrandg@cisco.com> Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com> Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
|
eacf8f9aa80e2231af43b589cfc18c054e417220 |
|
29-Jul-2013 |
Hans Verkuil <hans.verkuil@cisco.com> |
[media] v4l2: use new V4L2_DV_BT_BLANKING/FRAME defines Use the new defines to calculate the full blanking and frame sizes. Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com> Acked-by: Scott Jiang <scott.jiang.linux@gmail.com> Acked-by: Lad, Prabhakar <prabhakar.csengg@gmail.com> Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
|
2576415846bcbad3c0a6885fc44f950837106364 |
|
29-Jul-2013 |
Hans Verkuil <hans.verkuil@cisco.com> |
[media] v4l2: move dv-timings related code to v4l2-dv-timings.c v4l2-common.c contained a bunch of dv-timings related functions. Move that to the new v4l2-dv-timings.c which is a more appropriate place for them. There aren't many drivers that do HDTV, so it is a good idea to separate common code related to that into a module of its own. Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com> Acked-by: Lad, Prabhakar <prabhakar.csengg@gmail.com> Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
|
e12771100c93e101a7a8b302b6c5d57cff7b1551 |
|
29-May-2013 |
Hans Verkuil <hans.verkuil@cisco.com> |
[media] media/i2c: remove g_chip_ident op This is no longer needed since the core now handles this through DBG_G_CHIP_INFO. Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com> Acked-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Acked-by: Lad, Prabhakar <prabhakar.csengg@gmail.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
|
7e89bd9f242930371f89f3d8c32eaf42ea1c74b1 |
|
14-May-2013 |
Lad, Prabhakar <prabhakar.csengg@gmail.com> |
[media] media: i2c: remove duplicate checks for EPERM in dbg_g/s_register This patch removes check for EPERM in dbg_g/s_register of subdevice drivers as this check is already performed by core. Signed-off-by: Lad, Prabhakar <prabhakar.csengg@gmail.com> Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
|
c02b211df6fc54e51ee554c27a6736a11255a764 |
|
02-May-2013 |
Laurent Pinchart <laurent.pinchart@ideasonboard.com> |
[media] media: i2c: Convert to devm_kzalloc() Using the managed function the kfree() calls can be removed from the probe error path and the remove handler. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Acked-by: Sylwester Nawrocki <s.nawrocki@samsung.com> Acked-by: Lad, Prabhakar <prabhakar.csengg@gmail.com> Acked-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Reviewed-by: Benoît Thébaudeau <benoit.thebaudeau@advansee.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
|
977ba3b1b73f24fae2d0c8bd59d7a4696f1e0ccc |
|
24-Mar-2013 |
Hans Verkuil <hans.verkuil@cisco.com> |
[media] v4l2: add const to argument of write-only s_register ioctl This ioctl is defined as IOW, so pass the argument as const. Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com> Acked-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de> Acked-by: Lad, Prabhakar <prabhakar.csengg@gmail.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
|
cf9afb1dafaf1ffeffbb4acdb5adf255e8a2aa76 |
|
16-Oct-2012 |
Hans Verkuil <hans.verkuil@cisco.com> |
[media] adv7604: restart STDI once if format is not found The STDI block may measure wrong values, especially for lcvs and lcf. If the driver can not find any valid timing, the STDI block is restarted to measure the video timings again. The function will return an error, but the restart of STDI will generate a new STDI interrupt and the format detection process will restart. Signed-off-by: Mats Randgaard <matrandg@cisco.com> Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
|
ccbd5bc448ec782af7d1f3f68bd450c9c38015a0 |
|
16-Oct-2012 |
Hans Verkuil <hans.verkuil@cisco.com> |
[media] adv7604: use presets where possible Use predefined video timings (prim_mode/vid_std) when available as recommended by Analog Devices (http://ez.analog.com/message/48267#48267). Also remove 720p30 support since the ADV7604 can't handle that. (http://ez.analog.com/message/61488#61488) Signed-off-by: Mats Randgaard <matrandg@cisco.com> Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
|
09f29673857a499dcf9a3baa896faf791d06812f |
|
25-Oct-2012 |
Shubhrajyoti D <shubhrajyoti@ti.com> |
[media] adv7604: convert struct i2c_msg initialization to C99 format Convert the struct i2c_msg initialization to C99 format. This makes maintaining and editing the code simpler. Also helps once other fields like transferred are added in future. Signed-off-by: Shubhrajyoti D <shubhrajyoti@ti.com> Acked-by: Hans Verkuil <hans.verkuil@cisco.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
|
6b0d5d344a78d43957a9f49c549b6f3aa2dc2082 |
|
16-Oct-2012 |
Hans Verkuil <hans.verkuil@cisco.com> |
[media] adv7604: Replace prim_mode by mode Changes the way the primary mode is handled: - Remove it from platform_data since it doesn't belong there. - Add a new mode enum for use with s_routing. - Collapse the two HDMI modes into one HDMI mode: when setting up the timings manually we do not need to select HDMI_COMP mode. That's only needed when selecting a preset. This patch prepares for the next step where we switch to using the presets where available. Signed-off-by: Mats Randgaard <mats.randgaard@cisco.com> Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
|
809396474f41fb6e7e676e298d79856c5e02d755 |
|
16-Oct-2012 |
Hans Verkuil <hans.verkuil@cisco.com> |
[media] adv7604: cleanup references Signed-off-by: Mats Randgaard <mats.randgaard@cisco.com> Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
|
54450f591c9927496b3d41c041fa802d0ef96885 |
|
18-Jul-2012 |
Hans Verkuil <hans.verkuil@cisco.com> |
[media] adv7604: driver for the Analog Devices ADV7604 video decoder Initial version of this driver. The full datasheets are available from the Analog Devices website: http://ez.analog.com/docs/DOC-1545 Not all features of the receiver are supported by this driver for various reasons. Most notably: - No CEC support (the CEC API needs a lot more discussion) - Only port A of the four HDMI input ports is implemented (our hardware only uses that port) - No HDCP repeater support (we don't use that either) And since there are some 600-odd pages of datasheet for this single device, I'm sure that there are many more things missing, but this driver does work well for our hardware. Note that I am using the register addresses instead of register names: the datasheet containing the register descriptions is organized by register address. Using names would make the datasheet lookup very hard. An attempt was made to try and document what is being done when registers are used instead. Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
|