diff options
author | Philipp Zabel <p.zabel@pengutronix.de> | 2015-03-18 07:15:36 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@osg.samsung.com> | 2015-04-10 09:02:28 -0400 |
commit | 92b042ecedea7aa3d47391be57411709dab52cd7 (patch) | |
tree | 22318839cc988d5075c3fc5bdb3fc0eb73f8a3e6 | |
parent | d5451c1d9257622105a1c5bee732c050b3e82cf0 (diff) |
[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>
-rw-r--r-- | drivers/media/platform/coda/coda-common.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/platform/coda/coda-common.c b/drivers/media/platform/coda/coda-common.c index 329c2a4d86f6..ddbed9b4ae41 100644 --- a/drivers/media/platform/coda/coda-common.c +++ b/drivers/media/platform/coda/coda-common.c | |||
@@ -1457,7 +1457,7 @@ static const struct v4l2_ctrl_ops coda_ctrl_ops = { | |||
1457 | static void coda_encode_ctrls(struct coda_ctx *ctx) | 1457 | static void coda_encode_ctrls(struct coda_ctx *ctx) |
1458 | { | 1458 | { |
1459 | v4l2_ctrl_new_std(&ctx->ctrls, &coda_ctrl_ops, | 1459 | v4l2_ctrl_new_std(&ctx->ctrls, &coda_ctrl_ops, |
1460 | V4L2_CID_MPEG_VIDEO_BITRATE, 0, 32767000, 1, 0); | 1460 | V4L2_CID_MPEG_VIDEO_BITRATE, 0, 32767000, 1000, 0); |
1461 | v4l2_ctrl_new_std(&ctx->ctrls, &coda_ctrl_ops, | 1461 | v4l2_ctrl_new_std(&ctx->ctrls, &coda_ctrl_ops, |
1462 | V4L2_CID_MPEG_VIDEO_GOP_SIZE, 1, 60, 1, 16); | 1462 | V4L2_CID_MPEG_VIDEO_GOP_SIZE, 1, 60, 1, 16); |
1463 | v4l2_ctrl_new_std(&ctx->ctrls, &coda_ctrl_ops, | 1463 | v4l2_ctrl_new_std(&ctx->ctrls, &coda_ctrl_ops, |