[media] v4l: of: Correct pclk-sample for BT656 bus
authorNikhil Devshatwar <nikhil.nd@ti.com>
Tue, 5 May 2015 13:49:59 +0000 (10:49 -0300)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Sat, 6 Jun 2015 10:27:04 +0000 (07:27 -0300)
commit7a60743f347c9d03811c5a2b9aa92431be19e512
tree7cdb253aad9b75c1f3cc711b4fcabbe445057909
parent49b7cb5da1867511f10ca9fb7be44c0b2c6a79ee
[media] v4l: of: Correct pclk-sample for BT656 bus

Current v4l2_of_parse_parallel_bus function attempts to parse the
DT properties for the parallel bus as well as BT656 bus.
If the pclk-sample property is defined for the BT656 bus, it is still
marked as a parallel bus.
Fix this by parsing the pclk after the bus_type is selected.
Only when hsync or vsync properties are specified, the bus_type should
be set to V4L2_MBUS_PARALLEL.

Signed-off-by: Nikhil Devshatwar <nikhil.nd@ti.com>
Acked-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
drivers/media/v4l2-core/v4l2-of.c
This page took 0.026697 seconds and 5 git commands to generate.