diff options
author | Ian Armstrong <ian@iarmst.demon.co.uk> | 2007-10-21 07:09:10 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@infradead.org> | 2008-01-25 16:03:10 -0500 |
commit | 166983cdfbb2779bec98de89927669ed4c9ff8f2 (patch) | |
tree | d958897fc9afa6629117b385964042ccbdc9722c /drivers/media/video/ivtv/ivtv-irq.c | |
parent | a3e5f5e2dfb50bebca24329e5377d804c6e3eb1b (diff) |
V4L/DVB (6714): ivtv: yuv frame parameter fix
Inadvertently missed a line when converting code to new hardware buffering
method. In some circumstances, this would lead to a frame being displayed
using parameters belonging to another frame.
Signed-off-by: Ian Armstrong <ian@iarmst.demon.co.uk>
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'drivers/media/video/ivtv/ivtv-irq.c')
-rw-r--r-- | drivers/media/video/ivtv/ivtv-irq.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/video/ivtv/ivtv-irq.c b/drivers/media/video/ivtv/ivtv-irq.c index fc8eac09584c..8c00d8f6d4d9 100644 --- a/drivers/media/video/ivtv/ivtv-irq.c +++ b/drivers/media/video/ivtv/ivtv-irq.c | |||
@@ -797,7 +797,7 @@ static void ivtv_irq_vsync(struct ivtv *itv) | |||
797 | /* Check if we need to update the yuv registers */ | 797 | /* Check if we need to update the yuv registers */ |
798 | if ((yi->yuv_forced_update || yi->new_frame_info[last_dma_frame].update) && last_dma_frame != -1) { | 798 | if ((yi->yuv_forced_update || yi->new_frame_info[last_dma_frame].update) && last_dma_frame != -1) { |
799 | if (!yi->new_frame_info[last_dma_frame].update) | 799 | if (!yi->new_frame_info[last_dma_frame].update) |
800 | last_dma_frame = (last_dma_frame - 1) & 3; | 800 | last_dma_frame = (u8)(last_dma_frame - 1) % IVTV_YUV_BUFFERS; |
801 | 801 | ||
802 | if (yi->new_frame_info[last_dma_frame].src_w) { | 802 | if (yi->new_frame_info[last_dma_frame].src_w) { |
803 | yi->update_frame = last_dma_frame; | 803 | yi->update_frame = last_dma_frame; |