diff options
author | Holger Waechtler <devnull@localhost> | 2003-04-15 13:25:18 +0000 |
---|---|---|
committer | Holger Waechtler <devnull@localhost> | 2003-04-15 13:25:18 +0000 |
commit | 310a2d45751192e6fb905505378918dedf729a94 (patch) | |
tree | 2ebfdcefaaeded29e575e3274f6f2616d5c7ac02 /linux/drivers/media/dvb/dvb-core | |
parent | b5535bb34b2c0ba37af8112a4f5a7bb3612db951 (diff) | |
download | mediapointer-dvb-s2-310a2d45751192e6fb905505378918dedf729a94.tar.gz mediapointer-dvb-s2-310a2d45751192e6fb905505378918dedf729a94.tar.bz2 |
remove name/vendor/id strings, these caused only troubles everywhere and nobody really needs them...
Diffstat (limited to 'linux/drivers/media/dvb/dvb-core')
-rw-r--r-- | linux/drivers/media/dvb/dvb-core/demux.h | 8 | ||||
-rw-r--r-- | linux/drivers/media/dvb/dvb-core/dvb_demux.c | 29 |
2 files changed, 5 insertions, 32 deletions
diff --git a/linux/drivers/media/dvb/dvb-core/demux.h b/linux/drivers/media/dvb/dvb-core/demux.h index 71ba6c624..00724ca18 100644 --- a/linux/drivers/media/dvb/dvb-core/demux.h +++ b/linux/drivers/media/dvb/dvb-core/demux.h @@ -197,10 +197,6 @@ typedef enum { } dmx_frontend_source_t; typedef struct { - /* The following char* fields point to NULL terminated strings */ - char* id; /* Unique front-end identifier */ - char* vendor; /* Name of the front-end vendor */ - char* model; /* Name of the front-end model */ struct list_head connectivity_list; /* List of front-ends that can be connected to a particular demux */ @@ -239,10 +235,6 @@ typedef struct { #define DMX_FE_ENTRY(list) list_entry(list, dmx_frontend_t, connectivity_list) struct dmx_demux_s { - /* The following char* fields point to NULL terminated strings */ - char* id; /* Unique demux identifier */ - char* vendor; /* Name of the demux vendor */ - char* model; /* Name of the demux model */ u32 capabilities; /* Bitfield of capability flags */ dmx_frontend_t* frontend; /* Front-end connected to the demux */ struct list_head reg_list; /* List of registered demuxes */ diff --git a/linux/drivers/media/dvb/dvb-core/dvb_demux.c b/linux/drivers/media/dvb/dvb-core/dvb_demux.c index baf292198..f038e65e7 100644 --- a/linux/drivers/media/dvb/dvb-core/dvb_demux.c +++ b/linux/drivers/media/dvb/dvb-core/dvb_demux.c @@ -39,19 +39,8 @@ LIST_HEAD(dmx_muxs); int dmx_register_demux(dmx_demux_t *demux) { - struct list_head *pos; - - if (!(demux->id && demux->vendor && demux->model)) - return -EINVAL; - - list_for_each(pos, &dmx_muxs) { - if (!strcmp(DMX_DIR_ENTRY(pos)->id, demux->id)) - return -EEXIST; - } - demux->users = 0; list_add(&demux->reg_list, &dmx_muxs); - return 0; } @@ -710,7 +699,7 @@ int dvbdmx_release_ts_feed(dmx_demux_t *dmx, dmx_ts_feed_t *ts_feed) { struct dvb_demux *demux = (struct dvb_demux *) dmx; struct dvb_demux_feed *feed = (struct dvb_demux_feed *) ts_feed; - struct list_head *pos, *n, *head=&demux->feed_list; + struct list_head *pos, *n; if (down_interruptible (&demux->mutex)) return -ERESTARTSYS; @@ -731,7 +720,7 @@ int dvbdmx_release_ts_feed(dmx_demux_t *dmx, dmx_ts_feed_t *ts_feed) feed->filter->state = DMX_STATE_FREE; if (feed->pid <= DMX_MAX_PID) { - list_for_each_safe(pos, n, head) + list_for_each_safe(pos, n, &demux->feed_list) if (DMX_FEED_ENTRY(pos)->pid == feed->pid) { list_del(pos); break; @@ -1099,17 +1088,9 @@ static int dvbdmx_add_frontend(dmx_demux_t *demux, dmx_frontend_t *frontend) { struct dvb_demux *dvbdemux = (struct dvb_demux *) demux; - struct list_head *pos, *head = &dvbdemux->frontend_list; - - if (!(frontend->id && frontend->vendor && frontend->model)) - return -EINVAL; - list_for_each(pos, head) { - if (!strcmp(DMX_FE_ENTRY(pos)->id, frontend->id)) - return -EEXIST; - } + list_add(&(frontend->connectivity_list), &dvbdemux->frontend_list); - list_add(&(frontend->connectivity_list), head); return 0; } @@ -1118,9 +1099,9 @@ static int dvbdmx_remove_frontend(dmx_demux_t *demux, dmx_frontend_t *frontend) { struct dvb_demux *dvbdemux = (struct dvb_demux *) demux; - struct list_head *pos, *n, *head = &dvbdemux->frontend_list; + struct list_head *pos, *n; - list_for_each_safe (pos, n, head) { + list_for_each_safe (pos, n, &dvbdemux->frontend_list) { if (DMX_FE_ENTRY(pos) == frontend) { list_del(pos); return 0; |