diff options
author | Ian Armstrong <ian@iarmst.demon.co.uk> | 2007-10-20 13:52:55 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@infradead.org> | 2008-01-25 16:03:10 -0500 |
commit | a3e5f5e2dfb50bebca24329e5377d804c6e3eb1b (patch) | |
tree | 6a900057b715633c5b7951568253f35de2e0a24f /drivers/media/video/ivtv/ivtv-yuv.h | |
parent | c240ad00af78228726e6301ad6ffc54d3adce2a0 (diff) |
V4L/DVB (6713): ivtv: ivtv_yuv_prep_frame breakup and yuv hardware buffer changes
ivtv_yuv_prep_frame is split in smaller code blocks.
Modified yuv buffer handling on the PVR350 itself. We now cycle through all 8
hardware buffers.
With this patch in place, driver behaviour should remain unchanged from the
existing release.
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-yuv.h')
-rw-r--r-- | drivers/media/video/ivtv/ivtv-yuv.h | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/drivers/media/video/ivtv/ivtv-yuv.h b/drivers/media/video/ivtv/ivtv-yuv.h index 3b966f0a204a..3b290927d367 100644 --- a/drivers/media/video/ivtv/ivtv-yuv.h +++ b/drivers/media/video/ivtv/ivtv-yuv.h | |||
@@ -21,11 +21,6 @@ | |||
21 | #ifndef IVTV_YUV_H | 21 | #ifndef IVTV_YUV_H |
22 | #define IVTV_YUV_H | 22 | #define IVTV_YUV_H |
23 | 23 | ||
24 | /* Buffers on hardware offsets */ | ||
25 | #define IVTV_YUV_BUFFER_OFFSET 0x001a8600 /* First YUV Buffer */ | ||
26 | #define IVTV_YUV_BUFFER_OFFSET_1 0x00240400 /* Second YUV Buffer */ | ||
27 | #define IVTV_YUV_BUFFER_OFFSET_2 0x002d8200 /* Third YUV Buffer */ | ||
28 | #define IVTV_YUV_BUFFER_OFFSET_3 0x00370000 /* Fourth YUV Buffer */ | ||
29 | #define IVTV_YUV_BUFFER_UV_OFFSET 0x65400 /* Offset to UV Buffer */ | 24 | #define IVTV_YUV_BUFFER_UV_OFFSET 0x65400 /* Offset to UV Buffer */ |
30 | 25 | ||
31 | /* Offset to filter table in firmware */ | 26 | /* Offset to filter table in firmware */ |
@@ -36,7 +31,7 @@ | |||
36 | #define IVTV_YUV_UPDATE_VERTICAL 0x02 | 31 | #define IVTV_YUV_UPDATE_VERTICAL 0x02 |
37 | #define IVTV_YUV_UPDATE_INVALID 0x04 | 32 | #define IVTV_YUV_UPDATE_INVALID 0x04 |
38 | 33 | ||
39 | extern const u32 yuv_offset[4]; | 34 | extern const u32 yuv_offset[IVTV_YUV_BUFFERS]; |
40 | 35 | ||
41 | int ivtv_yuv_filter_check(struct ivtv *itv); | 36 | int ivtv_yuv_filter_check(struct ivtv *itv); |
42 | int ivtv_yuv_prep_frame(struct ivtv *itv, struct ivtv_dma_frame *args); | 37 | int ivtv_yuv_prep_frame(struct ivtv *itv, struct ivtv_dma_frame *args); |