diff options
author | Hans Verkuil <hverkuil@xs4all.nl> | 2007-08-20 15:01:58 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@infradead.org> | 2007-10-09 21:06:38 -0400 |
commit | ad8ff0f10b489562012e433acdac92498fe8bdc9 (patch) | |
tree | b98348093c8cff8106e11703c427d151762b7e61 /drivers/media/video/ivtv/ivtv-ioctl.c | |
parent | f6210c9160dff82ceaaf5e59cf5f8fcd6bdefa38 (diff) |
V4L/DVB (6086): ivtv: fix output mode processing: UDMA_YUV wasn't cleared
- Always clear when stopping the decoder
- Clear if the filehandle that is being close was used for UDMA_YUV output.
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'drivers/media/video/ivtv/ivtv-ioctl.c')
-rw-r--r-- | drivers/media/video/ivtv/ivtv-ioctl.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/media/video/ivtv/ivtv-ioctl.c b/drivers/media/video/ivtv/ivtv-ioctl.c index ed5707660e0..2bb1e324785 100644 --- a/drivers/media/video/ivtv/ivtv-ioctl.c +++ b/drivers/media/video/ivtv/ivtv-ioctl.c | |||
@@ -1346,6 +1346,8 @@ static int ivtv_decoder_ioctls(struct file *filp, unsigned int cmd, void *arg) | |||
1346 | ivtv_release_stream(s); | 1346 | ivtv_release_stream(s); |
1347 | return -EBUSY; | 1347 | return -EBUSY; |
1348 | } | 1348 | } |
1349 | /* Mark that this file handle started the UDMA_YUV mode */ | ||
1350 | id->yuv_frames = 1; | ||
1349 | if (args->y_source == NULL) | 1351 | if (args->y_source == NULL) |
1350 | return 0; | 1352 | return 0; |
1351 | return ivtv_yuv_prep_frame(itv, args); | 1353 | return ivtv_yuv_prep_frame(itv, args); |