From: Hans J. Koch Date: Wed, 9 Nov 2005 05:38:39 +0000 (-0800) Subject: [PATCH] V4L: 899: fix rds raw data buffer handling bug which caused X-Git-Tag: v2.6.15-rc1~144 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=6c3d67abdb79ff3e22cd19476c05294274434143;p=platform%2Fkernel%2Flinux-stable.git [PATCH] V4L: 899: fix rds raw data buffer handling bug which caused Fix RDS raw data buffer handling bug, which caused decoding delays and sometimes wrong data. Signed-off-by: Hans J. Koch Signed-off-by: Michael Krufky Signed-off-by: Mauro Carvalho Chehab Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/drivers/media/video/saa6588.c b/drivers/media/video/saa6588.c index 23ea548..dca3ddf 100644 --- a/drivers/media/video/saa6588.c +++ b/drivers/media/video/saa6588.c @@ -245,7 +245,7 @@ static void block_to_buf(struct saa6588 *s, unsigned char *blockbuf) s->wr_index = 0; if (s->wr_index == s->rd_index) { - s->rd_index++; + s->rd_index += 3; if (s->rd_index >= s->buf_size) s->rd_index = 0; } else