[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)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Thu, 13 Jun 2013 01:17:13 +0000 (22:17 -0300)
commitd3775fa76bed74a46e179c08895fafc968f7292a
treea95ee7f64e26dd2e08f5eb57f4a69380d9c0b729
parent813f5c0ac5ccf7dd9c216a8f7fbe827ca36cb83f
[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