The patch number 11733 was added via Mauro Carvalho Chehab <mche...@redhat.com>
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:
        Linux Media Mailing List <linux-me...@vger.kernel.org>

------

From: Dmitri Belimov  <d.beli...@gmail.com>
increase MPEG encoder timout


Hi All.

If video has a lot of changes in frame, MPEG encoder need more time for coding 
process.
Add new bigger timeout for encoder.

This is patch from our customer. I checked this.

Signed-off-by: Alexey Osipov <lion-si...@pridelands.ru>
Signed-off-by: Mauro Carvalho Chehab <mche...@redhat.com>


---

 linux/drivers/media/video/saa7134/saa7134-ts.c |    2 +-
 linux/drivers/media/video/saa7134/saa7134.h    |    1 +
 2 files changed, 2 insertions(+), 1 deletion(-)

diff -r 0ee56433741d -r 88c4ca9c8f37 
linux/drivers/media/video/saa7134/saa7134-ts.c
--- a/linux/drivers/media/video/saa7134/saa7134-ts.c    Tue Apr 28 22:44:05 
2009 +0000
+++ b/linux/drivers/media/video/saa7134/saa7134-ts.c    Tue Apr 28 09:41:08 
2009 +0000
@@ -65,7 +65,7 @@ static int buffer_activate(struct saa713
        /* start DMA */
        saa7134_set_dmabits(dev);
 
-       mod_timer(&dev->ts_q.timeout, jiffies+BUFFER_TIMEOUT);
+       mod_timer(&dev->ts_q.timeout, jiffies+TS_BUFFER_TIMEOUT);
 
        if (dev->ts_state == SAA7134_TS_BUFF_DONE) {
                /* Clear TS cache */
diff -r 0ee56433741d -r 88c4ca9c8f37 linux/drivers/media/video/saa7134/saa7134.h
--- a/linux/drivers/media/video/saa7134/saa7134.h       Tue Apr 28 22:44:05 
2009 +0000
+++ b/linux/drivers/media/video/saa7134/saa7134.h       Tue Apr 28 09:41:08 
2009 +0000
@@ -377,6 +377,7 @@ struct saa7134_board {
 #define INTERLACE_OFF          2
 
 #define BUFFER_TIMEOUT     msecs_to_jiffies(500)  /* 0.5 seconds */
+#define TS_BUFFER_TIMEOUT  msecs_to_jiffies(1000)  /* 1 second */
 
 struct saa7134_dev;
 struct saa7134_dma;


---

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

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

Reply via email to