mirror of https://gitee.com/openkylin/linux.git
[media] coda: bitrate can only be set in kbps steps
We divide the bitrate by 1000 before writing it to the register. Communicate to userspace that the bitrate granularity is kbps. Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de> Signed-off-by: Kamil Debski <k.debski@samsung.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
This commit is contained in:
parent
d5451c1d92
commit
92b042eced
|
@ -1457,7 +1457,7 @@ static const struct v4l2_ctrl_ops coda_ctrl_ops = {
|
|||
static void coda_encode_ctrls(struct coda_ctx *ctx)
|
||||
{
|
||||
v4l2_ctrl_new_std(&ctx->ctrls, &coda_ctrl_ops,
|
||||
V4L2_CID_MPEG_VIDEO_BITRATE, 0, 32767000, 1, 0);
|
||||
V4L2_CID_MPEG_VIDEO_BITRATE, 0, 32767000, 1000, 0);
|
||||
v4l2_ctrl_new_std(&ctx->ctrls, &coda_ctrl_ops,
|
||||
V4L2_CID_MPEG_VIDEO_GOP_SIZE, 1, 60, 1, 16);
|
||||
v4l2_ctrl_new_std(&ctx->ctrls, &coda_ctrl_ops,
|
||||
|
|
Loading…
Reference in New Issue