Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 82aa98fd authored by Dmitri Belimov's avatar Dmitri Belimov Committed by Mauro Carvalho Chehab
Browse files

V4L/DVB (11733): increase MPEG encoder timout



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: default avatarAlexey Osipov <lion-simba@pridelands.ru>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
parent be4a1a22
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -65,7 +65,7 @@ static int buffer_activate(struct saa7134_dev *dev,
	/* 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 */
+1 −0
Original line number Diff line number Diff line
@@ -376,6 +376,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;