From: Philipp Zabel
Date: Mon, 5 Nov 2018 15:25:13 +0000 (-0500)
Subject: media: coda: debug output when setting visible size via crop selection
X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=c229f5c746657702df9b3980bdafd396ba60ed3c;p=openwrt%2Fstaging%2Fblogic.git
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
---
diff --git a/drivers/media/platform/coda/coda-common.c b/drivers/media/platform/coda/coda-common.c
index c99f822e0c79..a62c47843d2f 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 */