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: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6c3d67abdb79ff3e22cd19476c05294274434143;p=linux-2.6 [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 23ea548a71..dca3ddfd51 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