From c229f5c746657702df9b3980bdafd396ba60ed3c Mon Sep 17 00:00:00 2001
From: Philipp Zabel 
Date: Mon, 5 Nov 2018 10:25:13 -0500
Subject: [PATCH] media: coda: debug output when setting visible size via crop
 selection
In addition to the S_FMT debug output, S_SELECTION (SEL_TGT_CROP) is
relevant to determine encoded size. Add debug output for it.
Signed-off-by: Philipp Zabel 
Signed-off-by: Hans Verkuil 
Signed-off-by: Mauro Carvalho Chehab 
---
 drivers/media/platform/coda/coda-common.c | 3 +++
 1 file changed, 3 insertions(+)
diff --git a/drivers/media/platform/coda/coda-common.c b/drivers/media/platform/coda/coda-common.c
index c99f822e0c798..a62c47843d2f9 100644
--- a/drivers/media/platform/coda/coda-common.c
+++ b/drivers/media/platform/coda/coda-common.c
@@ -962,6 +962,9 @@ static int coda_s_selection(struct file *file, void *fh,
 
 			q_data->rect = s->r;
 
+			coda_dbg(1, ctx, "Setting crop rectangle: %dx%d\n",
+				 s->r.width, s->r.height);
+
 			return 0;
 		}
 		/* else fall through */
-- 
2.30.2