4 * Copyright (C) 2000 Ralph Metzler & Marcus Metzler
5 * for convergence integrated media GmbH
7 * This program is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU Lesser General Public License
9 * as published by the Free Software Foundation; either version 2.1
10 * of the License, or (at your option) any later version.
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
22 #include <linux/types.h>
23 #include <linux/spinlock.h>
24 #include <linux/kernel.h>
25 #include <linux/time.h>
26 #include <linux/timer.h>
27 #include <linux/wait.h>
29 #include <linux/string.h>
30 #include <linux/mutex.h>
31 #include <linux/slab.h>
33 #include <linux/dvb/dmx.h>
37 #include "dvb_ringbuffer.h"
47 DMXDEV_STATE_ALLOCATED,
56 struct dmx_ts_feed *ts;
57 struct list_head next;
60 struct dmxdev_filter {
62 struct dmx_section_filter *sec;
66 /* list of TS and PES feeds (struct dmxdev_feed) */
68 struct dmx_section_feed *sec;
72 struct dmx_sct_filter_params sec;
73 struct dmx_pes_filter_params pes;
76 enum dmxdev_type type;
77 enum dmxdev_state state;
79 struct dvb_ringbuffer buffer;
83 /* only for sections */
84 struct timer_list timer;
91 struct dvb_device *dvbdev;
92 struct dvb_device *dvr_dvbdev;
94 struct dmxdev_filter *filter;
95 struct dmx_demux *demux;
101 #define DMXDEV_CAP_DUPLEX 1
102 struct dmx_frontend *dvr_orig_fe;
104 struct dvb_ringbuffer dvr_buffer;
105 #define DVR_BUFFER_SIZE (10*188*1024)
112 int dvb_dmxdev_init(struct dmxdev *dmxdev, struct dvb_adapter *);
113 void dvb_dmxdev_release(struct dmxdev *dmxdev);
115 #endif /* _DMXDEV_H_ */