summaryrefslogtreecommitdiff
path: root/linux/drivers/media/video/ivtv
diff options
context:
space:
mode:
authorHans Verkuil <hverkuil@xs4all.nl>2007-10-21 13:33:59 +0200
committerHans Verkuil <hverkuil@xs4all.nl>2007-10-21 13:33:59 +0200
commit8e998e00f380ac98c3ef522b5736072266c79ada (patch)
tree4daf7f888c87efbcb65480fa5fec26126aa8c126 /linux/drivers/media/video/ivtv
parentab95acf7bb7b3e5cddaabdaa8497ec7fb2a97c99 (diff)
downloadmediapointer-dvb-s2-8e998e00f380ac98c3ef522b5736072266c79ada.tar.gz
mediapointer-dvb-s2-8e998e00f380ac98c3ef522b5736072266c79ada.tar.bz2
ivtv: Remove unnecessary register update
From: Ian Armstrong <ian@iarmst.demon.co.uk> To reduce the number of display register accesses, the yuv code keeps track of the current video settings. Should there be a change in any single parameter, it will update the associated display registers to ensure everything is displayed correctly. The existing check also looks at the field order for the video. This is not required, since field reversal does not require any display register changes. This patch removes the field order from the check. Signed-off-by: Ian Armstrong <ian@iarmst.demon.co.uk> Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Diffstat (limited to 'linux/drivers/media/video/ivtv')
-rw-r--r--linux/drivers/media/video/ivtv/ivtv-yuv.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/linux/drivers/media/video/ivtv/ivtv-yuv.c b/linux/drivers/media/video/ivtv/ivtv-yuv.c
index 15e9bd248..a23108fae 100644
--- a/linux/drivers/media/video/ivtv/ivtv-yuv.c
+++ b/linux/drivers/media/video/ivtv/ivtv-yuv.c
@@ -1021,7 +1021,7 @@ void ivtv_yuv_setup_frame(struct ivtv *itv, struct ivtv_dma_frame *args)
yi->new_frame_info[frame].update = 0;
yi->new_frame_info[frame].interlaced_y = 0;
yi->new_frame_info[frame].interlaced_uv = 0;
- yi->new_frame_info[frame].lace_mode = yi->lace_mode;
+ yi->new_frame_info[frame].lace_mode = yi->lace_mode & IVTV_YUV_MODE_MASK;
if (memcmp(&yi->old_frame_info_args, &yi->new_frame_info[frame],
sizeof(yi->new_frame_info[frame]))) {