diff options
Diffstat (limited to 'drivers/media/video/saa7134')
-rw-r--r-- | drivers/media/video/saa7134/saa6752hs.c | 12 | ||||
-rw-r--r-- | drivers/media/video/saa7134/saa7134-empress.c | 2 |
2 files changed, 11 insertions, 3 deletions
diff --git a/drivers/media/video/saa7134/saa6752hs.c b/drivers/media/video/saa7134/saa6752hs.c index 2d292ad776e9..dc2213e2f86e 100644 --- a/drivers/media/video/saa7134/saa6752hs.c +++ b/drivers/media/video/saa7134/saa6752hs.c | |||
@@ -592,7 +592,7 @@ static int saa6752hs_queryctrl(struct v4l2_subdev *sd, struct v4l2_queryctrl *qc | |||
592 | V4L2_MPEG_VIDEO_ASPECT_4x3); | 592 | V4L2_MPEG_VIDEO_ASPECT_4x3); |
593 | 593 | ||
594 | case V4L2_CID_MPEG_VIDEO_BITRATE_PEAK: | 594 | case V4L2_CID_MPEG_VIDEO_BITRATE_PEAK: |
595 | err = v4l2_ctrl_query_fill_std(qctrl); | 595 | err = v4l2_ctrl_query_fill(qctrl, 0, 27000000, 1, 8000000); |
596 | if (err == 0 && | 596 | if (err == 0 && |
597 | params->vi_bitrate_mode == | 597 | params->vi_bitrate_mode == |
598 | V4L2_MPEG_VIDEO_BITRATE_MODE_CBR) | 598 | V4L2_MPEG_VIDEO_BITRATE_MODE_CBR) |
@@ -606,12 +606,20 @@ static int saa6752hs_queryctrl(struct v4l2_subdev *sd, struct v4l2_queryctrl *qc | |||
606 | V4L2_MPEG_STREAM_TYPE_MPEG2_TS); | 606 | V4L2_MPEG_STREAM_TYPE_MPEG2_TS); |
607 | 607 | ||
608 | case V4L2_CID_MPEG_VIDEO_BITRATE_MODE: | 608 | case V4L2_CID_MPEG_VIDEO_BITRATE_MODE: |
609 | return v4l2_ctrl_query_fill(qctrl, | ||
610 | V4L2_MPEG_VIDEO_BITRATE_MODE_VBR, | ||
611 | V4L2_MPEG_VIDEO_BITRATE_MODE_CBR, 1, | ||
612 | V4L2_MPEG_VIDEO_BITRATE_MODE_VBR); | ||
609 | case V4L2_CID_MPEG_VIDEO_BITRATE: | 613 | case V4L2_CID_MPEG_VIDEO_BITRATE: |
614 | return v4l2_ctrl_query_fill(qctrl, 0, 27000000, 1, 6000000); | ||
610 | case V4L2_CID_MPEG_STREAM_PID_PMT: | 615 | case V4L2_CID_MPEG_STREAM_PID_PMT: |
616 | return v4l2_ctrl_query_fill(qctrl, 0, (1 << 14) - 1, 1, 16); | ||
611 | case V4L2_CID_MPEG_STREAM_PID_AUDIO: | 617 | case V4L2_CID_MPEG_STREAM_PID_AUDIO: |
618 | return v4l2_ctrl_query_fill(qctrl, 0, (1 << 14) - 1, 1, 260); | ||
612 | case V4L2_CID_MPEG_STREAM_PID_VIDEO: | 619 | case V4L2_CID_MPEG_STREAM_PID_VIDEO: |
620 | return v4l2_ctrl_query_fill(qctrl, 0, (1 << 14) - 1, 1, 256); | ||
613 | case V4L2_CID_MPEG_STREAM_PID_PCR: | 621 | case V4L2_CID_MPEG_STREAM_PID_PCR: |
614 | return v4l2_ctrl_query_fill_std(qctrl); | 622 | return v4l2_ctrl_query_fill(qctrl, 0, (1 << 14) - 1, 1, 259); |
615 | 623 | ||
616 | default: | 624 | default: |
617 | break; | 625 | break; |
diff --git a/drivers/media/video/saa7134/saa7134-empress.c b/drivers/media/video/saa7134/saa7134-empress.c index 2e15bb7c3f0a..c6cfe0fe7e3d 100644 --- a/drivers/media/video/saa7134/saa7134-empress.c +++ b/drivers/media/video/saa7134/saa7134-empress.c | |||
@@ -390,7 +390,7 @@ static int empress_queryctrl(struct file *file, void *priv, | |||
390 | if (c->id == 0) | 390 | if (c->id == 0) |
391 | return -EINVAL; | 391 | return -EINVAL; |
392 | if (c->id == V4L2_CID_USER_CLASS || c->id == V4L2_CID_MPEG_CLASS) | 392 | if (c->id == V4L2_CID_USER_CLASS || c->id == V4L2_CID_MPEG_CLASS) |
393 | return v4l2_ctrl_query_fill_std(c); | 393 | return v4l2_ctrl_query_fill(c, 0, 0, 0, 0); |
394 | if (V4L2_CTRL_ID2CLASS(c->id) != V4L2_CTRL_CLASS_MPEG) | 394 | if (V4L2_CTRL_ID2CLASS(c->id) != V4L2_CTRL_CLASS_MPEG) |
395 | return saa7134_queryctrl(file, priv, c); | 395 | return saa7134_queryctrl(file, priv, c); |
396 | return saa_call_empress(dev, core, queryctrl, c); | 396 | return saa_call_empress(dev, core, queryctrl, c); |