[media] exynos4-is: Ensure proper media pipeline state on device close
authorSylwester Nawrocki <s.nawrocki@samsung.com>
Mon, 25 Mar 2013 19:50:50 +0000 (16:50 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Thu, 4 Apr 2013 23:24:32 +0000 (20:24 -0300)
commit9ea89e2b62c70f3986c89363818a89c8c11c96c4
tree4b59e979af0bac64ff3fe0936fa1ac6efd4b6b9d
parent439797980af4bddfc2b86a44ddb573c5e48a1fcc
[media] exynos4-is: Ensure proper media pipeline state on device close

Make sure media_entity_pipeline_stop() is called on video device
close in cases where there was VIDIOC_STREAMON ioctl and no
VIDIOC_STREAMOFF. This patch fixes media entities stream_count
state which could prevent links from being disconnected, due to
non-zero stream_count.

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/fimc-capture.c
drivers/media/platform/exynos4-is/fimc-core.h
drivers/media/platform/exynos4-is/fimc-lite.c
drivers/media/platform/exynos4-is/fimc-lite.h