]> git.baikalelectronics.ru Git - kernel.git/commit
[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)
commitc250f0ee930607deac25801d5c1d5c136db36100
tree527a60ef03587dce26e80c98078feb15b29cd0ff
parentdfb85411e8ac2b39c23e7708b35dff327c9be917
[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