media: coda: debug output when setting visible size via crop selection
authorPhilipp Zabel <p.zabel@pengutronix.de>
Mon, 5 Nov 2018 15:25:13 +0000 (10:25 -0500)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Fri, 23 Nov 2018 10:36:35 +0000 (05:36 -0500)
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 <p.zabel@pengutronix.de>
Signed-off-by: Hans Verkuil <hansverk@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
drivers/media/platform/coda/coda-common.c

index c99f822e0c7989721cff5a33ca2e8e400b1fd55d..a62c47843d2f9ea210366792bd59349569b54883 100644 (file)
@@ -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 */