diff options
author | Hans Verkuil <hverkuil@xs4all.nl> | 2008-06-21 13:09:46 +0200 |
---|---|---|
committer | Hans Verkuil <hverkuil@xs4all.nl> | 2008-06-21 13:09:46 +0200 |
commit | 097a48597f554fece7eff6e6d16471fe5e4be9eb (patch) | |
tree | 8378eda3a7bcbd4c066468026ec9cae5dbc01a20 | |
parent | 5491015f1dde09e8b89d5934d7b76d93f0ac1fe7 (diff) | |
download | mediapointer-dvb-s2-097a48597f554fece7eff6e6d16471fe5e4be9eb.tar.gz mediapointer-dvb-s2-097a48597f554fece7eff6e6d16471fe5e4be9eb.tar.bz2 |
ivtv: yuv decoder lock fix (2)
From: Ian Armstrong <ian@iarmst.demon.co.uk>
The IVTV_IOC_DMA_FRAME ioctl fails to correctly 'start' the decoder. Although
yuv output will be correct, some functions which should be disabled while the
decoder is in use remain enabled. This can result in hardware registers being
corrupted, causing problems with the mpeg decoder. This patch ensures the
decoder 'start' sequence is called, disabling these functions until the
device is closed.
Signed-off-by: Ian Armstrong <ian@iarmst.demon.co.uk>
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
-rw-r--r-- | linux/drivers/media/video/ivtv/ivtv-ioctl.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/linux/drivers/media/video/ivtv/ivtv-ioctl.c b/linux/drivers/media/video/ivtv/ivtv-ioctl.c index b1cda6cd5..aa222056d 100644 --- a/linux/drivers/media/video/ivtv/ivtv-ioctl.c +++ b/linux/drivers/media/video/ivtv/ivtv-ioctl.c @@ -1539,7 +1539,7 @@ static int ivtv_decoder_ioctls(struct file *filp, unsigned int cmd, void *arg) return -EINVAL; if (itv->output_mode == OUT_UDMA_YUV && args->y_source == NULL) return 0; - if (ivtv_claim_stream(id, id->type)) { + if (ivtv_start_decoding(id, id->type)) { return -EBUSY; } if (ivtv_set_output_mode(itv, OUT_UDMA_YUV) != OUT_UDMA_YUV) { |