[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20250314152939.2759573-14-serghox@gmail.com>
Date: Fri, 14 Mar 2025 18:29:34 +0300
From: Sergey Khimich <serghox@...il.com>
To: linux-media@...r.kernel.org
Cc: Philipp Zabel <p.zabel@...gutronix.de>,
Mauro Carvalho Chehab <mchehab@...nel.org>,
linux-kernel@...r.kernel.org,
Vladimir Yakovlev <vovchkir@...il.com>,
Maksim Turok <turok.m7@...il.com>
Subject: [PATCH 13/18] media: coda: Fix support for all mpeg4 levels
From: Vladimir Yakovlev <vovchkir@...il.com>
Mpeg-4 level also depends on img resolution.
Therefore, driver must support all levels in the range of supported
resolutions. Coda's hw can calculate level automatically.
Co-developed-by: Sergey Khimich <serghox@...il.com>
Signed-off-by: Sergey Khimich <serghox@...il.com>
Signed-off-by: Vladimir Yakovlev <vovchkir@...il.com>
---
drivers/media/platform/chips-media/coda/coda-common.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/media/platform/chips-media/coda/coda-common.c b/drivers/media/platform/chips-media/coda/coda-common.c
index 555b73816952..29b01ade8829 100644
--- a/drivers/media/platform/chips-media/coda/coda-common.c
+++ b/drivers/media/platform/chips-media/coda/coda-common.c
@@ -2383,7 +2383,7 @@ static void coda_encode_ctrls(struct coda_ctx *ctx)
v4l2_ctrl_new_std_menu(&ctx->ctrls, &coda_ctrl_ops,
V4L2_CID_MPEG_VIDEO_MPEG4_LEVEL,
V4L2_MPEG_VIDEO_MPEG4_LEVEL_5,
- ~(1 << V4L2_MPEG_VIDEO_MPEG4_LEVEL_5),
+ 0,
V4L2_MPEG_VIDEO_MPEG4_LEVEL_5);
}
v4l2_ctrl_new_std_menu(&ctx->ctrls, &coda_ctrl_ops,
--
2.30.2
Powered by blists - more mailing lists