diff options
author | Hans Verkuil <hverkuil@xs4all.nl> | 2006-06-19 17:00:06 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@infradead.org> | 2006-06-25 01:05:23 -0400 |
commit | 54aa9a21ca03cf41d911ada969e86f27ce58bab9 (patch) | |
tree | 11e5fc0bfe170c4b8ce132a4475e346f84d0f429 /drivers/media/video | |
parent | cc7bc648690d4e6f3992cfadb18a4c7e0181e6ea (diff) |
V4L/DVB (4200): Disable bitrate_mode when encoding mpeg-1.
MPEG-1 always uses CBR, so make the BITRATE_MODE control inactive.
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'drivers/media/video')
-rw-r--r-- | drivers/media/video/cx2341x.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/media/video/cx2341x.c b/drivers/media/video/cx2341x.c index 4c457dc6a403..7cd1c4cf5aec 100644 --- a/drivers/media/video/cx2341x.c +++ b/drivers/media/video/cx2341x.c | |||
@@ -406,6 +406,12 @@ int cx2341x_ctrl_query(struct cx2341x_mpeg_params *params, struct v4l2_queryctrl | |||
406 | qctrl->flags |= V4L2_CTRL_FLAG_READ_ONLY; | 406 | qctrl->flags |= V4L2_CTRL_FLAG_READ_ONLY; |
407 | return err; | 407 | return err; |
408 | 408 | ||
409 | case V4L2_CID_MPEG_VIDEO_BITRATE_MODE: | ||
410 | err = v4l2_ctrl_query_fill_std(qctrl); | ||
411 | if (err == 0 && params->video_encoding == V4L2_MPEG_VIDEO_ENCODING_MPEG_1) | ||
412 | qctrl->flags |= V4L2_CTRL_FLAG_INACTIVE; | ||
413 | return err; | ||
414 | |||
409 | case V4L2_CID_MPEG_VIDEO_BITRATE_PEAK: | 415 | case V4L2_CID_MPEG_VIDEO_BITRATE_PEAK: |
410 | err = v4l2_ctrl_query_fill_std(qctrl); | 416 | err = v4l2_ctrl_query_fill_std(qctrl); |
411 | if (err == 0 && params->video_bitrate_mode == V4L2_MPEG_VIDEO_BITRATE_MODE_CBR) | 417 | if (err == 0 && params->video_bitrate_mode == V4L2_MPEG_VIDEO_BITRATE_MODE_CBR) |