Laurent Pinchart
05cacb1767
[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 >
2014-05-25 13:00:21 -03:00
Laurent Pinchart
c269887c2d
[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 >
2014-05-25 12:59:29 -03:00
Laurent Pinchart
29fcec60d1
[media] v4l: subdev: 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 >
Acked-by: Sakari Ailus <sakari.ailus@linux.intel.com >
Acked-by: Lad, Prabhakar <prabhakar.csengg@gmail.com >
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com >
2014-05-25 12:59:08 -03:00
Laurent Pinchart
7515e09693
[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 >
2014-05-25 12:58:46 -03:00
Laurent Pinchart
afec55992e
[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 >
2014-05-25 12:58:27 -03:00
Laurent Pinchart
539b33b059
[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 >
2014-05-25 12:57:26 -03:00
Laurent Pinchart
c784b1e2ec
[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 >
2014-05-25 12:56:15 -03:00
Laurent Pinchart
454378923a
[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 >
2014-05-25 12:55:37 -03:00
Lars-Peter Clausen
d42010a1d2
[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 >
2014-05-25 12:55:16 -03:00
Laurent Pinchart
4a2ccdd257
[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 >
2014-05-25 12:52:33 -03:00
Laurent Pinchart
51182a945c
[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 >
2014-05-25 12:52:02 -03:00
Lars-Peter Clausen
f216ccb3d9
[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 >
2014-05-25 12:51:35 -03:00
Lars-Peter Clausen
bedc3939dc
[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 >
2014-05-25 12:50:10 -03:00
Lars-Peter Clausen
e5e749dfa8
[media] adv7604: Add missing include to linux/types.h
...
The file is using u8 which is defined in linux/types.h.
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 >
2014-05-25 12:48:47 -03:00
Laurent Pinchart
f2e9084779
[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 >
2014-05-25 12:48:33 -03:00
Laurent Pinchart
9cfd65e809
[media] v4l: Add support for DV timings ioctls on subdev nodes
...
Validate the pad field in the core code whenever specified.
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 >
2014-05-25 12:47:55 -03:00
Laurent Pinchart
c4fa146ce5
[media] v4l: Improve readability by not wrapping ioctl number #define's
...
Wrapping the #define's at a 80 columns boundary just obfuscates the
code. Don't do that.
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com >
Reviewed-by: Hans Verkuil <hans.verkuil@cisco.com >
Acked-by: Sakari Ailus <sakari.ailus@linux.intel.com >
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com >
2014-05-25 12:47:07 -03:00
Laurent Pinchart
96278922f6
[media] tvp7002: 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 >
Acked-by: Lad, Prabhakar <prabhakar.csengg@gmail.com >
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com >
2014-05-25 12:46:47 -03:00
Laurent Pinchart
105534054f
[media] ths8200: 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 >
Acked-by: Lad, Prabhakar <prabhakar.csengg@gmail.com >
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com >
2014-05-25 12:46:18 -03:00
Laurent Pinchart
e53a59dc55
[media] s5p-tv: hdmiphy: Remove deprecated video-level DV timings operation
...
The video enum_dv_timings operation is deprecated and unused. Remove 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 >
2014-05-25 12:45:52 -03:00
Laurent Pinchart
9e82440934
[media] s5p-tv: hdmi: 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 >
2014-05-25 12:45:20 -03:00
Laurent Pinchart
0dd3e36c8c
[media] adv7842: 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 >
2014-05-25 12:44:39 -03:00
Laurent Pinchart
8f8d2fecd9
[media] adv7511: 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 >
2014-05-25 12:43:52 -03:00
Laurent Pinchart
8846e93992
[media] ad9389b: 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 >
2014-05-25 12:43:39 -03:00
Laurent Pinchart
78dc47bb78
[media] s5p-tv: mixer: Switch to pad-level DV operations
...
The video-level enum_dv_timings and dv_timings_cap operations are
deprecated in favor of the pad-level versions. All subdev drivers
implement the pad-level versions, switch to 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 >
2014-05-25 12:43:25 -03:00