[media] s5p-fimc: Update graph traversal for entities with multiple source pads
authorSylwester Nawrocki <s.nawrocki@samsung.com>
Fri, 8 Mar 2013 11:58:34 +0000 (08:58 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Sun, 31 Mar 2013 13:58:00 +0000 (10:58 -0300)
commit39bb6df6e35d406ccbe953f1595f650eb6bb88ce
tree527a60ef03587dce26e80c98078feb15b29cd0ff
parent76323e5016e2f923e87efbee715a7ccf16b942b0
[media] s5p-fimc: Update graph traversal for entities with multiple source pads

We cannot assume that the passed entity the fimc_pipeline_prepare()
function is supposed to start the media graph traversal from will
always have its sink pad at pad index 0. Find the starting media
entity's sink pad by iterating over its all pads and checking the
pad flags. This ensures proper handling of FIMC, FIMC-LITE and
FIMC-IS-ISP subdevs that have more than one sink and one source pad.

Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/platform/s5p-fimc/fimc-mdevice.c