diff options
Diffstat (limited to 'drivers/media/video/v4l2-ioctl.c')
-rw-r--r-- | drivers/media/video/v4l2-ioctl.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/drivers/media/video/v4l2-ioctl.c b/drivers/media/video/v4l2-ioctl.c index 88f10d6cbc92..feb420733027 100644 --- a/drivers/media/video/v4l2-ioctl.c +++ b/drivers/media/video/v4l2-ioctl.c | |||
@@ -544,39 +544,39 @@ static int check_fmt(const struct v4l2_ioctl_ops *ops, enum v4l2_buf_type type) | |||
544 | 544 | ||
545 | switch (type) { | 545 | switch (type) { |
546 | case V4L2_BUF_TYPE_VIDEO_CAPTURE: | 546 | case V4L2_BUF_TYPE_VIDEO_CAPTURE: |
547 | if (ops->vidioc_try_fmt_vid_cap) | 547 | if (ops->vidioc_g_fmt_vid_cap) |
548 | return 0; | 548 | return 0; |
549 | break; | 549 | break; |
550 | case V4L2_BUF_TYPE_VIDEO_OVERLAY: | 550 | case V4L2_BUF_TYPE_VIDEO_OVERLAY: |
551 | if (ops->vidioc_try_fmt_vid_overlay) | 551 | if (ops->vidioc_g_fmt_vid_overlay) |
552 | return 0; | 552 | return 0; |
553 | break; | 553 | break; |
554 | case V4L2_BUF_TYPE_VIDEO_OUTPUT: | 554 | case V4L2_BUF_TYPE_VIDEO_OUTPUT: |
555 | if (ops->vidioc_try_fmt_vid_out) | 555 | if (ops->vidioc_g_fmt_vid_out) |
556 | return 0; | 556 | return 0; |
557 | break; | 557 | break; |
558 | case V4L2_BUF_TYPE_VIDEO_OUTPUT_OVERLAY: | 558 | case V4L2_BUF_TYPE_VIDEO_OUTPUT_OVERLAY: |
559 | if (ops->vidioc_try_fmt_vid_out_overlay) | 559 | if (ops->vidioc_g_fmt_vid_out_overlay) |
560 | return 0; | 560 | return 0; |
561 | break; | 561 | break; |
562 | case V4L2_BUF_TYPE_VBI_CAPTURE: | 562 | case V4L2_BUF_TYPE_VBI_CAPTURE: |
563 | if (ops->vidioc_try_fmt_vbi_cap) | 563 | if (ops->vidioc_g_fmt_vbi_cap) |
564 | return 0; | 564 | return 0; |
565 | break; | 565 | break; |
566 | case V4L2_BUF_TYPE_VBI_OUTPUT: | 566 | case V4L2_BUF_TYPE_VBI_OUTPUT: |
567 | if (ops->vidioc_try_fmt_vbi_out) | 567 | if (ops->vidioc_g_fmt_vbi_out) |
568 | return 0; | 568 | return 0; |
569 | break; | 569 | break; |
570 | case V4L2_BUF_TYPE_SLICED_VBI_CAPTURE: | 570 | case V4L2_BUF_TYPE_SLICED_VBI_CAPTURE: |
571 | if (ops->vidioc_try_fmt_sliced_vbi_cap) | 571 | if (ops->vidioc_g_fmt_sliced_vbi_cap) |
572 | return 0; | 572 | return 0; |
573 | break; | 573 | break; |
574 | case V4L2_BUF_TYPE_SLICED_VBI_OUTPUT: | 574 | case V4L2_BUF_TYPE_SLICED_VBI_OUTPUT: |
575 | if (ops->vidioc_try_fmt_sliced_vbi_out) | 575 | if (ops->vidioc_g_fmt_sliced_vbi_out) |
576 | return 0; | 576 | return 0; |
577 | break; | 577 | break; |
578 | case V4L2_BUF_TYPE_PRIVATE: | 578 | case V4L2_BUF_TYPE_PRIVATE: |
579 | if (ops->vidioc_try_fmt_type_private) | 579 | if (ops->vidioc_g_fmt_type_private) |
580 | return 0; | 580 | return 0; |
581 | break; | 581 | break; |
582 | } | 582 | } |