diff options
author | Sylwester Nawrocki <s.nawrocki@samsung.com> | 2013-03-25 23:50:50 +0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2013-04-05 03:24:32 +0400 |
commit | 9ea89e2b62c70f3986c89363818a89c8c11c96c4 (patch) | |
tree | 4b59e979af0bac64ff3fe0936fa1ac6efd4b6b9d /drivers/media/platform/exynos4-is/fimc-lite.h | |
parent | 439797980af4bddfc2b86a44ddb573c5e48a1fcc (diff) | |
download | linux-9ea89e2b62c70f3986c89363818a89c8c11c96c4.tar.xz |
[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>
Diffstat (limited to 'drivers/media/platform/exynos4-is/fimc-lite.h')
-rw-r--r-- | drivers/media/platform/exynos4-is/fimc-lite.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/media/platform/exynos4-is/fimc-lite.h b/drivers/media/platform/exynos4-is/fimc-lite.h index 8a8d26f58344..71fed5129e30 100644 --- a/drivers/media/platform/exynos4-is/fimc-lite.h +++ b/drivers/media/platform/exynos4-is/fimc-lite.h @@ -166,6 +166,7 @@ struct fimc_lite { int ref_count; struct fimc_lite_events events; + bool streaming; }; static inline bool fimc_lite_active(struct fimc_lite *fimc) |