diff options
author | Hans Verkuil <hverkuil@xs4all.nl> | 2007-08-23 05:32:46 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@infradead.org> | 2007-10-09 21:06:47 -0400 |
commit | 33c0fcad2160bc211272295e862c6f708118d006 (patch) | |
tree | 1627d21d1042a1ede7fc9c8f55356ab314a6a63e /drivers/media/video/ivtv/ivtv-streams.c | |
parent | 612570f2c4794bbf4e5bfa8648b61fbfc9cd8501 (diff) |
V4L/DVB (6092): ivtv: more cleanups, merged ivtv-audio.c and ivtv-video.c into ivtv-routing.c
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-streams.c')
-rw-r--r-- | drivers/media/video/ivtv/ivtv-streams.c | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/drivers/media/video/ivtv/ivtv-streams.c b/drivers/media/video/ivtv/ivtv-streams.c index fae151a31e85..3939a804f043 100644 --- a/drivers/media/video/ivtv/ivtv-streams.c +++ b/drivers/media/video/ivtv/ivtv-streams.c | |||
@@ -38,6 +38,7 @@ | |||
38 | #include "ivtv-queue.h" | 38 | #include "ivtv-queue.h" |
39 | #include "ivtv-mailbox.h" | 39 | #include "ivtv-mailbox.h" |
40 | #include "ivtv-ioctl.h" | 40 | #include "ivtv-ioctl.h" |
41 | #include "ivtv-irq.h" | ||
41 | #include "ivtv-yuv.h" | 42 | #include "ivtv-yuv.h" |
42 | #include "ivtv-cards.h" | 43 | #include "ivtv-cards.h" |
43 | #include "ivtv-streams.h" | 44 | #include "ivtv-streams.h" |
@@ -62,6 +63,13 @@ static struct file_operations ivtv_v4l2_dec_fops = { | |||
62 | .poll = ivtv_v4l2_dec_poll, | 63 | .poll = ivtv_v4l2_dec_poll, |
63 | }; | 64 | }; |
64 | 65 | ||
66 | #define IVTV_V4L2_DEC_MPG_OFFSET 16 /* offset from 0 to register decoder mpg v4l2 minors on */ | ||
67 | #define IVTV_V4L2_ENC_PCM_OFFSET 24 /* offset from 0 to register pcm v4l2 minors on */ | ||
68 | #define IVTV_V4L2_ENC_YUV_OFFSET 32 /* offset from 0 to register yuv v4l2 minors on */ | ||
69 | #define IVTV_V4L2_DEC_YUV_OFFSET 48 /* offset from 0 to register decoder yuv v4l2 minors on */ | ||
70 | #define IVTV_V4L2_DEC_VBI_OFFSET 8 /* offset from 0 to register decoder vbi input v4l2 minors on */ | ||
71 | #define IVTV_V4L2_DEC_VOUT_OFFSET 16 /* offset from 0 to register vbi output v4l2 minors on */ | ||
72 | |||
65 | static struct { | 73 | static struct { |
66 | const char *name; | 74 | const char *name; |
67 | int vfl_type; | 75 | int vfl_type; |
@@ -658,10 +666,10 @@ int ivtv_start_v4l2_decode_stream(struct ivtv_stream *s, int gop_offset) | |||
658 | clear_bit(IVTV_F_S_STREAMOFF, &s->s_flags); | 666 | clear_bit(IVTV_F_S_STREAMOFF, &s->s_flags); |
659 | 667 | ||
660 | /* Zero out decoder counters */ | 668 | /* Zero out decoder counters */ |
661 | writel(0, &itv->dec_mbox.mbox[IVTV_MBOX_FIELD_DISPLAYED].data[0]); | 669 | writel(0, &itv->dec_mbox.mbox[IVTV_MBOX_DMA_END].data[0]); |
662 | writel(0, &itv->dec_mbox.mbox[IVTV_MBOX_FIELD_DISPLAYED].data[1]); | 670 | writel(0, &itv->dec_mbox.mbox[IVTV_MBOX_DMA_END].data[1]); |
663 | writel(0, &itv->dec_mbox.mbox[IVTV_MBOX_FIELD_DISPLAYED].data[2]); | 671 | writel(0, &itv->dec_mbox.mbox[IVTV_MBOX_DMA_END].data[2]); |
664 | writel(0, &itv->dec_mbox.mbox[IVTV_MBOX_FIELD_DISPLAYED].data[3]); | 672 | writel(0, &itv->dec_mbox.mbox[IVTV_MBOX_DMA_END].data[3]); |
665 | writel(0, &itv->dec_mbox.mbox[IVTV_MBOX_DMA].data[0]); | 673 | writel(0, &itv->dec_mbox.mbox[IVTV_MBOX_DMA].data[0]); |
666 | writel(0, &itv->dec_mbox.mbox[IVTV_MBOX_DMA].data[1]); | 674 | writel(0, &itv->dec_mbox.mbox[IVTV_MBOX_DMA].data[1]); |
667 | writel(0, &itv->dec_mbox.mbox[IVTV_MBOX_DMA].data[2]); | 675 | writel(0, &itv->dec_mbox.mbox[IVTV_MBOX_DMA].data[2]); |