mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-05 17:03:47 -04:00
media: verisilicon: Use fourcc format string
There is a fourcc format string for printing formats. Use it instead of open coding the conversion. Signed-off-by: Michael Tretter <m.tretter@pengutronix.de> Reviewed-by: Nicolas Dufresne <nicolas.dufresne@collabora.com> Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
This commit is contained in:
committed by
Hans Verkuil
parent
cc4cbd4b4f
commit
8bf5671e45
@@ -303,11 +303,7 @@ static int hantro_try_fmt(const struct hantro_ctx *ctx,
|
||||
|
||||
coded = capture == ctx->is_encoder;
|
||||
|
||||
vpu_debug(4, "trying format %c%c%c%c\n",
|
||||
(pix_mp->pixelformat & 0x7f),
|
||||
(pix_mp->pixelformat >> 8) & 0x7f,
|
||||
(pix_mp->pixelformat >> 16) & 0x7f,
|
||||
(pix_mp->pixelformat >> 24) & 0x7f);
|
||||
vpu_debug(4, "trying format %p4cc\n", &pix_mp->pixelformat);
|
||||
|
||||
fmt = hantro_find_format(ctx, pix_mp->pixelformat);
|
||||
if (!fmt) {
|
||||
|
||||
Reference in New Issue
Block a user