The patch number 8090 was added via Hans Verkuil <[EMAIL PROTECTED]>
to http://linuxtv.org/hg/v4l-dvb master development tree.

Kernel patches in this development tree may be modified to be backward
compatible with older kernels. Compatibility modifications will be
removed before inclusion into the mainstream Kernel

If anyone has any objections, please let us know by sending a message to:
        [EMAIL PROTECTED]

------

From: Ian Armstrong  <[EMAIL PROTECTED]>
ivtv: yuv decoder lock fix (2)


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 <[EMAIL PROTECTED]>
Signed-off-by: Hans Verkuil <[EMAIL PROTECTED]>


---

 linux/drivers/media/video/ivtv/ivtv-ioctl.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff -r da2b6f1f22d9 -r d16aefc8835f linux/drivers/media/video/ivtv/ivtv-ioctl.c
--- a/linux/drivers/media/video/ivtv/ivtv-ioctl.c       Sat Jun 21 13:06:44 
2008 +0200
+++ b/linux/drivers/media/video/ivtv/ivtv-ioctl.c       Sat Jun 21 13:09:46 
2008 +0200
@@ -1539,7 +1539,7 @@ static int ivtv_decoder_ioctls(struct fi
                        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) {


---

Patch is available at: 
http://linuxtv.org/hg/v4l-dvb/rev/d16aefc8835f26cde8d5df1ea66617834ff8f34a

_______________________________________________
linuxtv-commits mailing list
linuxtv-commits@linuxtv.org
http://www.linuxtv.org/cgi-bin/mailman/listinfo/linuxtv-commits

Reply via email to