[media] exynos4-is: Extend link_notify handler to support fimc-is/lite pipelines
authorSylwester Nawrocki <s.nawrocki@samsung.com>
Fri, 31 May 2013 13:37:27 +0000 (10:37 -0300)
committerChanho Park <chanho61.park@samsung.com>
Tue, 18 Nov 2014 02:43:04 +0000 (11:43 +0900)
commit3414531866e48d1f9df8835ed94ffa8b018efeb2
tree831f7901448017b69dc57ae480186d0737797b2a
parentdfe5bb1fae8f9829bf857097214bbf69e9e067d1
[media] exynos4-is: Extend link_notify handler to support fimc-is/lite pipelines

This patch corrects the link_notify handler to support more complex
pipelines, including fimc-lite and fimc-is entities.
After the FIMC-IS driver addition the assumptions made in the link_notify
callback are no longer valid, e.g. the link between fimc-lite subdev and
its video node is not immutable any more and there is more subdevs than
just sensor, MIPI-CSIS and FIMC(-LITE).
The graph is now walked and for each video node found a media pipeline
which ends at this node is disabled/enabled (the subdevs are powered
on/off).

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/exynos4-is/media-dev.c