diff options
author | Michael Krufky <mkrufky@linuxtv.org> | 2008-02-03 21:46:16 -0500 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@infradead.org> | 2008-04-24 13:09:46 -0400 |
commit | 04910bdc5c172af9bc937a8869e7f2907db4443f (patch) | |
tree | b8b5f224510cca9938f2f766905622632f0f4861 /drivers/media/video/pvrusb2/pvrusb2-dvb.h | |
parent | e7f677f33664200b3d75ffc625d218b84ac43875 (diff) |
V4L/DVB (7679): pvrusb2: add DVB API framework
Add basic framework for the DVB API. This is enough to control the
tuner & demod of the digital frontend, but the stream & buffer handling
is still missing.
Additional note from Mike Isely <isely@pobox.com> - also, since these
changes are still very experimental arrange for DVB changes to be
compiled in via new CONFIG_VIDEO_PVRUSB2_DVB option, for now.
Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Signed-off-by: Mike Isely <isely@pobox.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'drivers/media/video/pvrusb2/pvrusb2-dvb.h')
-rw-r--r-- | drivers/media/video/pvrusb2/pvrusb2-dvb.h | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/drivers/media/video/pvrusb2/pvrusb2-dvb.h b/drivers/media/video/pvrusb2/pvrusb2-dvb.h new file mode 100644 index 000000000000..0aff05cb9415 --- /dev/null +++ b/drivers/media/video/pvrusb2/pvrusb2-dvb.h | |||
@@ -0,0 +1,33 @@ | |||
1 | #ifndef __PVRUSB2_DVB_H__ | ||
2 | #define __PVRUSB2_DVB_H__ | ||
3 | |||
4 | #include "dvb_frontend.h" | ||
5 | #include "dvb_demux.h" | ||
6 | #include "dvb_net.h" | ||
7 | #include "dmxdev.h" | ||
8 | #include "pvrusb2-context.h" | ||
9 | |||
10 | struct pvr2_dvb_adapter { | ||
11 | struct pvr2_context *pvr; | ||
12 | |||
13 | struct dvb_adapter dvb_adap; | ||
14 | struct dmxdev dmxdev; | ||
15 | struct dvb_demux demux; | ||
16 | struct dvb_net dvb_net; | ||
17 | struct dvb_frontend *fe; | ||
18 | |||
19 | int feedcount; | ||
20 | int max_feed_count; | ||
21 | |||
22 | unsigned int digital_up:1; | ||
23 | }; | ||
24 | |||
25 | struct pvr2_dvb_props { | ||
26 | int (*frontend_attach) (struct pvr2_dvb_adapter *); | ||
27 | int (*tuner_attach) (struct pvr2_dvb_adapter *); | ||
28 | }; | ||
29 | |||
30 | int pvr2_dvb_init(struct pvr2_context *pvr); | ||
31 | int pvr2_dvb_exit(struct pvr2_context *pvr); | ||
32 | |||
33 | #endif /* __PVRUSB2_DVB_H__ */ | ||