31 lines
1.2 KiB
Diff
31 lines
1.2 KiB
Diff
|
From b2f5340e5b4925446303bbfda3c0de401378d32c Mon Sep 17 00:00:00 2001
|
||
|
From: memeka <mihailescu2m@gmail.com>
|
||
|
Date: Tue, 10 Jul 2018 11:24:56 +0930
|
||
|
Subject: [PATCH 05/75] ODROID-XU4: media: exynos-gsc: fix v4l2 SELECTION api
|
||
|
|
||
|
Change-Id: Ida63e217cd989d661b7620d390515c0ffcb830ac
|
||
|
Signed-off-by: memeka <mihailescu2m@gmail.com>
|
||
|
---
|
||
|
drivers/media/platform/exynos-gsc/gsc-core.h | 4 ++--
|
||
|
1 file changed, 2 insertions(+), 2 deletions(-)
|
||
|
|
||
|
diff --git a/drivers/media/platform/exynos-gsc/gsc-core.h b/drivers/media/platform/exynos-gsc/gsc-core.h
|
||
|
index e894e85e84a4..95fda27de0a3 100644
|
||
|
--- a/drivers/media/platform/exynos-gsc/gsc-core.h
|
||
|
+++ b/drivers/media/platform/exynos-gsc/gsc-core.h
|
||
|
@@ -481,9 +481,9 @@ static inline struct gsc_frame *ctx_get_frame(struct gsc_ctx *ctx,
|
||
|
{
|
||
|
struct gsc_frame *frame;
|
||
|
|
||
|
- if (V4L2_BUF_TYPE_VIDEO_OUTPUT_MPLANE == type) {
|
||
|
+ if (V4L2_BUF_TYPE_VIDEO_OUTPUT == type || V4L2_BUF_TYPE_VIDEO_OUTPUT_MPLANE == type) {
|
||
|
frame = &ctx->s_frame;
|
||
|
- } else if (V4L2_BUF_TYPE_VIDEO_CAPTURE_MPLANE == type) {
|
||
|
+ } else if (V4L2_BUF_TYPE_VIDEO_CAPTURE == type || V4L2_BUF_TYPE_VIDEO_CAPTURE_MPLANE == type) {
|
||
|
frame = &ctx->d_frame;
|
||
|
} else {
|
||
|
pr_err("Wrong buffer/video queue type (%d)", type);
|
||
|
--
|
||
|
2.25.1
|
||
|
|