diff options
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/media/video/ivtv/ivtv-ioctl.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/media/video/ivtv/ivtv-ioctl.c b/drivers/media/video/ivtv/ivtv-ioctl.c index 2bb1e324785b..0dde82f67e26 100644 --- a/drivers/media/video/ivtv/ivtv-ioctl.c +++ b/drivers/media/video/ivtv/ivtv-ioctl.c | |||
@@ -584,9 +584,7 @@ static int ivtv_try_or_set_fmt(struct ivtv *itv, int streamtype, | |||
584 | 584 | ||
585 | /* set raw VBI format */ | 585 | /* set raw VBI format */ |
586 | if (fmt->type == V4L2_BUF_TYPE_VBI_CAPTURE) { | 586 | if (fmt->type == V4L2_BUF_TYPE_VBI_CAPTURE) { |
587 | if (set_fmt && streamtype == IVTV_ENC_STREAM_TYPE_VBI && | 587 | if (set_fmt && atomic_read(&itv->capturing) > 0) { |
588 | itv->vbi.sliced_in->service_set && | ||
589 | atomic_read(&itv->capturing) > 0) { | ||
590 | return -EBUSY; | 588 | return -EBUSY; |
591 | } | 589 | } |
592 | if (set_fmt) { | 590 | if (set_fmt) { |
@@ -624,7 +622,7 @@ static int ivtv_try_or_set_fmt(struct ivtv *itv, int streamtype, | |||
624 | return 0; | 622 | return 0; |
625 | if (set == 0) | 623 | if (set == 0) |
626 | return -EINVAL; | 624 | return -EINVAL; |
627 | if (atomic_read(&itv->capturing) > 0 && itv->vbi.sliced_in->service_set == 0) { | 625 | if (atomic_read(&itv->capturing) > 0) { |
628 | return -EBUSY; | 626 | return -EBUSY; |
629 | } | 627 | } |
630 | itv->video_dec_func(itv, VIDIOC_S_FMT, fmt); | 628 | itv->video_dec_func(itv, VIDIOC_S_FMT, fmt); |