]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
[media] coda: add debug output about tiling
authorPhilipp Zabel <p.zabel@pengutronix.de>
Fri, 20 Jan 2017 14:00:22 +0000 (12:00 -0200)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Tue, 31 Jan 2017 10:16:02 +0000 (08:16 -0200)
In order to make the VDOA work correctly, the CODA must produce frames
in tiled format. Print this information in the debug output.

Also print the color format in fourcc instead of the numeric value.

Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
Signed-off-by: Michael Tretter <m.tretter@pengutronix.de>
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
drivers/media/platform/coda/coda-common.c

index fa3ed74af116c0310265fe28878b1348d1083057..b23fe0f0fb56265162d1809244bb367c5e984041 100644 (file)
@@ -616,8 +616,10 @@ static int coda_s_fmt(struct coda_ctx *ctx, struct v4l2_format *f,
        }
 
        v4l2_dbg(1, coda_debug, &ctx->dev->v4l2_dev,
-               "Setting format for type %d, wxh: %dx%d, fmt: %d\n",
-               f->type, q_data->width, q_data->height, q_data->fourcc);
+               "Setting format for type %d, wxh: %dx%d, fmt: %4.4s %c\n",
+               f->type, q_data->width, q_data->height,
+               (char *)&q_data->fourcc,
+               (ctx->tiled_map_type == GDI_LINEAR_FRAME_MAP) ? 'L' : 'T');
 
        return 0;
 }