aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/dvb/dvb-core/dmxdev.h
diff options
context:
space:
mode:
authorAndreas Oberritter <obi@linuxtv.org>2006-03-14 15:31:01 -0500
committerLinus Torvalds <torvalds@g5.osdl.org>2006-03-21 11:53:29 -0500
commit34731df288a5ffe4b0c396caf8cd24c6a710a222 (patch)
tree06738b1c00d2bee0df3b42d125b2ca4e03fc18b0 /drivers/media/dvb/dvb-core/dmxdev.h
parent4304954eb668ce66fc58f1cab9abb9a9e2584549 (diff)
V4L/DVB (3501): Dmxdev: use dvb_ringbuffer
Use dvb_ringbuffer instead of an own buffer implementation in dmxdev.[ch]. Signed-off-by: Andreas Oberritter <obi@linuxtv.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'drivers/media/dvb/dvb-core/dmxdev.h')
-rw-r--r--drivers/media/dvb/dvb-core/dmxdev.h14
1 files changed, 3 insertions, 11 deletions
diff --git a/drivers/media/dvb/dvb-core/dmxdev.h b/drivers/media/dvb/dvb-core/dmxdev.h
index 1b3e49bd9aa..d2bee9ffe43 100644
--- a/drivers/media/dvb/dvb-core/dmxdev.h
+++ b/drivers/media/dvb/dvb-core/dmxdev.h
@@ -36,6 +36,7 @@
36 36
37#include "dvbdev.h" 37#include "dvbdev.h"
38#include "demux.h" 38#include "demux.h"
39#include "dvb_ringbuffer.h"
39 40
40enum dmxdev_type { 41enum dmxdev_type {
41 DMXDEV_TYPE_NONE, 42 DMXDEV_TYPE_NONE,
@@ -52,15 +53,6 @@ enum dmxdev_state {
52 DMXDEV_STATE_TIMEDOUT 53 DMXDEV_STATE_TIMEDOUT
53}; 54};
54 55
55struct dmxdev_buffer {
56 u8 *data;
57 int size;
58 int pread;
59 int pwrite;
60 wait_queue_head_t queue;
61 int error;
62};
63
64struct dmxdev_filter { 56struct dmxdev_filter {
65 union { 57 union {
66 struct dmx_section_filter *sec; 58 struct dmx_section_filter *sec;
@@ -79,7 +71,7 @@ struct dmxdev_filter {
79 enum dmxdev_type type; 71 enum dmxdev_type type;
80 enum dmxdev_state state; 72 enum dmxdev_state state;
81 struct dmxdev *dev; 73 struct dmxdev *dev;
82 struct dmxdev_buffer buffer; 74 struct dvb_ringbuffer buffer;
83 75
84 struct mutex mutex; 76 struct mutex mutex;
85 77
@@ -102,7 +94,7 @@ struct dmxdev {
102#define DMXDEV_CAP_DUPLEX 1 94#define DMXDEV_CAP_DUPLEX 1
103 struct dmx_frontend *dvr_orig_fe; 95 struct dmx_frontend *dvr_orig_fe;
104 96
105 struct dmxdev_buffer dvr_buffer; 97 struct dvb_ringbuffer dvr_buffer;
106#define DVR_BUFFER_SIZE (10*188*1024) 98#define DVR_BUFFER_SIZE (10*188*1024)
107 99
108 struct mutex mutex; 100 struct mutex mutex;