summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHolger Waechtler <devnull@localhost>2003-04-15 13:25:18 +0000
committerHolger Waechtler <devnull@localhost>2003-04-15 13:25:18 +0000
commit310a2d45751192e6fb905505378918dedf729a94 (patch)
tree2ebfdcefaaeded29e575e3274f6f2616d5c7ac02
parentb5535bb34b2c0ba37af8112a4f5a7bb3612db951 (diff)
downloadmediapointer-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...
-rw-r--r--linux/drivers/media/dvb/bt8xx/dvb-bt8xx.c9
-rw-r--r--linux/drivers/media/dvb/dvb-core/demux.h8
-rw-r--r--linux/drivers/media/dvb/dvb-core/dvb_demux.c29
-rw-r--r--linux/drivers/media/dvb/ttpci/av7110.c22
-rw-r--r--linux/drivers/media/dvb/ttpci/av7110.h3
-rw-r--r--linux/drivers/media/dvb/ttpci/budget-core.c24
-rw-r--r--linux/drivers/media/dvb/ttpci/budget.h1
-rw-r--r--linux/drivers/media/dvb/ttusb-budget/dvb-ttusb-budget.c14
-rw-r--r--linux/drivers/media/dvb/ttusb-dec/ttusb_dec.c6
9 files changed, 22 insertions, 94 deletions
diff --git a/linux/drivers/media/dvb/bt8xx/dvb-bt8xx.c b/linux/drivers/media/dvb/bt8xx/dvb-bt8xx.c
index e860b5b45..9490e0cb4 100644
--- a/linux/drivers/media/dvb/bt8xx/dvb-bt8xx.c
+++ b/linux/drivers/media/dvb/bt8xx/dvb-bt8xx.c
@@ -198,9 +198,6 @@ static int __init dvb_bt8xx_load(unsigned int bttv_nr, char *card_name, u32 gpio
memset(&card->demux, 0, sizeof(struct dvb_demux));
- card->demux.dmx.vendor = card_name;
- card->demux.dmx.model = "Software";
- card->demux.dmx.id = "demux0_0";
card->demux.dmx.capabilities = DMX_TS_FILTERING | DMX_SECTION_FILTERING | DMX_MEMORY_BASED_FILTERING;
card->demux.priv = card;
@@ -237,9 +234,6 @@ static int __init dvb_bt8xx_load(unsigned int bttv_nr, char *card_name, u32 gpio
}
- card->fe_hw.id = "hw_frontend";
- card->fe_hw.vendor = "Connexant";
- card->fe_hw.model = "hw";
card->fe_hw.source = DMX_FRONTEND_0;
if ((result = card->demux.dmx.add_frontend(&card->demux.dmx, &card->fe_hw)) < 0) {
@@ -255,9 +249,6 @@ static int __init dvb_bt8xx_load(unsigned int bttv_nr, char *card_name, u32 gpio
}
- card->fe_mem.id = "mem_frontend";
- card->fe_mem.vendor = "memory";
- card->fe_mem.model = "sw";
card->fe_mem.source = DMX_MEMORY_FE;
if ((result = card->demux.dmx.add_frontend(&card->demux.dmx, &card->fe_mem)) < 0) {
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;
diff --git a/linux/drivers/media/dvb/ttpci/av7110.c b/linux/drivers/media/dvb/ttpci/av7110.c
index 9578a1036..2e17388c8 100644
--- a/linux/drivers/media/dvb/ttpci/av7110.c
+++ b/linux/drivers/media/dvb/ttpci/av7110.c
@@ -3850,7 +3850,6 @@ static
int av7110_register(av7110_t *av7110)
{
int ret, i;
- dmx_frontend_t *dvbfront=&av7110->hw_frontend;
struct dvb_demux *dvbdemux=&av7110->demux;
DEB_EE(("av7110: %p\n",av7110));
@@ -3883,8 +3882,6 @@ int av7110_register(av7110_t *av7110)
av7110->videostate.display_format=VIDEO_CENTER_CUT_OUT;
av7110->display_ar=VIDEO_FORMAT_4_3;
- memcpy(av7110->demux_id, "demux0_0", 9);
- av7110->demux_id[5] = av7110->dvb_adapter->num + '0';
dvbdemux->priv = (void *) av7110;
for (i=0; i<32; i++)
@@ -3895,34 +3892,25 @@ int av7110_register(av7110_t *av7110)
dvbdemux->start_feed = av7110_start_feed;
dvbdemux->stop_feed = av7110_stop_feed;
dvbdemux->write_to_decoder = av7110_write_to_decoder;
- dvbdemux->dmx.vendor = "TI";
- dvbdemux->dmx.model = "AV7110";
- dvbdemux->dmx.id = av7110->demux_id;
dvbdemux->dmx.capabilities = (DMX_TS_FILTERING | DMX_SECTION_FILTERING |
DMX_MEMORY_BASED_FILTERING);
dvb_dmx_init(&av7110->demux);
av7110->demux.dmx.get_stc = dvb_get_stc;
- dvbfront->id = "hw_frontend";
- dvbfront->vendor = "VLSI";
- dvbfront->model = "DVB Frontend";
- dvbfront->source = DMX_FRONTEND_0;
-
av7110->dmxdev.filternum = 32;
av7110->dmxdev.demux = &dvbdemux->dmx;
av7110->dmxdev.capabilities = 0;
dvb_dmxdev_init(&av7110->dmxdev, av7110->dvb_adapter);
- ret = dvbdemux->dmx.add_frontend(&dvbdemux->dmx,
- &av7110->hw_frontend);
- if (ret < 0)
+ av7110->hw_frontend.source = DMX_FRONTEND_0;
+
+ ret = dvbdemux->dmx.add_frontend(&dvbdemux->dmx, &av7110->hw_frontend);
+
+ if (ret < 0)
return ret;
- av7110->mem_frontend.id = "mem_frontend";
- av7110->mem_frontend.vendor = "memory";
- av7110->mem_frontend.model = "sw";
av7110->mem_frontend.source = DMX_MEMORY_FE;
ret = dvbdemux->dmx.add_frontend(&dvbdemux->dmx, &av7110->mem_frontend);
diff --git a/linux/drivers/media/dvb/ttpci/av7110.h b/linux/drivers/media/dvb/ttpci/av7110.h
index 22ef8fcae..bea411146 100644
--- a/linux/drivers/media/dvb/ttpci/av7110.h
+++ b/linux/drivers/media/dvb/ttpci/av7110.h
@@ -525,8 +525,7 @@ typedef struct av7110_s {
int vidmode;
dmxdev_t dmxdev;
- struct dvb_demux demux;
- char demux_id[16];
+ struct dvb_demux demux;
dmx_frontend_t hw_frontend;
dmx_frontend_t mem_frontend;
diff --git a/linux/drivers/media/dvb/ttpci/budget-core.c b/linux/drivers/media/dvb/ttpci/budget-core.c
index bdf81a82e..e1a606c65 100644
--- a/linux/drivers/media/dvb/ttpci/budget-core.c
+++ b/linux/drivers/media/dvb/ttpci/budget-core.c
@@ -129,14 +129,11 @@ int budget_stop_feed(struct dvb_demux_feed *feed)
static
int budget_register(struct budget *budget)
{
+ struct dvb_demux *dvbdemux = &budget->demux;
int ret;
- dmx_frontend_t *dvbfront=&budget->hw_frontend;
- struct dvb_demux *dvbdemux=&budget->demux;
DEB_EE(("budget: %p\n",budget));
- memcpy(budget->demux_id, "demux0_0", 9);
- budget->demux_id[5] = budget->dvb_adapter->num + '0';
dvbdemux->priv = (void *) budget;
dvbdemux->filternum = 256;
@@ -145,33 +142,24 @@ int budget_register(struct budget *budget)
dvbdemux->stop_feed = budget_stop_feed;
dvbdemux->write_to_decoder = NULL;
- dvbdemux->dmx.vendor = "CIM";
- dvbdemux->dmx.model = "sw";
- dvbdemux->dmx.id = budget->demux_id;
dvbdemux->dmx.capabilities = (DMX_TS_FILTERING | DMX_SECTION_FILTERING |
DMX_MEMORY_BASED_FILTERING);
dvb_dmx_init(&budget->demux);
- dvbfront->id = "hw_frontend";
- dvbfront->vendor = "VLSI";
- dvbfront->model = "DVB Frontend";
- dvbfront->source = DMX_FRONTEND_0;
-
budget->dmxdev.filternum = 256;
budget->dmxdev.demux = &dvbdemux->dmx;
budget->dmxdev.capabilities = 0;
dvb_dmxdev_init(&budget->dmxdev, budget->dvb_adapter);
- ret=dvbdemux->dmx.add_frontend (&dvbdemux->dmx,
- &budget->hw_frontend);
- if (ret < 0)
+ budget->hw_frontend.source = DMX_FRONTEND_0;
+
+ ret = dvbdemux->dmx.add_frontend(&dvbdemux->dmx, &budget->hw_frontend);
+
+ if (ret < 0)
return ret;
- budget->mem_frontend.id = "mem_frontend";
- budget->mem_frontend.vendor = "memory";
- budget->mem_frontend.model = "sw";
budget->mem_frontend.source = DMX_MEMORY_FE;
ret=dvbdemux->dmx.add_frontend (&dvbdemux->dmx,
&budget->mem_frontend);
diff --git a/linux/drivers/media/dvb/ttpci/budget.h b/linux/drivers/media/dvb/ttpci/budget.h
index 1aaae11c6..f3f10f604 100644
--- a/linux/drivers/media/dvb/ttpci/budget.h
+++ b/linux/drivers/media/dvb/ttpci/budget.h
@@ -39,7 +39,6 @@ struct budget {
dmxdev_t dmxdev;
struct dvb_demux demux;
- char demux_id[16];
dmx_frontend_t hw_frontend;
dmx_frontend_t mem_frontend;
diff --git a/linux/drivers/media/dvb/ttusb-budget/dvb-ttusb-budget.c b/linux/drivers/media/dvb/ttusb-budget/dvb-ttusb-budget.c
index 8b110fb16..f3f06bebb 100644
--- a/linux/drivers/media/dvb/ttusb-budget/dvb-ttusb-budget.c
+++ b/linux/drivers/media/dvb/ttusb-budget/dvb-ttusb-budget.c
@@ -1095,20 +1095,16 @@ void* ttusb_probe (struct usb_device *udev, unsigned int ifnum,
if (ttusb_init_controller (ttusb))
printk("ttusb_init_controller: error\n");
- up (&ttusb->sem);
+ up(&ttusb->sem);
- dvb_register_adapter (&ttusb->adapter,
- "Technotrend/Hauppauge Nova-USB");
+ dvb_register_adapter(&ttusb->adapter, "Technotrend/Hauppauge Nova-USB");
- dvb_register_i2c_bus (ttusb_i2c_xfer, ttusb, ttusb->adapter, 0);
- dvb_add_frontend_ioctls (ttusb->adapter, ttusb_lnb_ioctl, NULL, ttusb);
+ dvb_register_i2c_bus(ttusb_i2c_xfer, ttusb, ttusb->adapter, 0);
+ dvb_add_frontend_ioctls(ttusb->adapter, ttusb_lnb_ioctl, NULL, ttusb);
memset(&ttusb->dvb_demux, 0, sizeof(ttusb->dvb_demux));
- ttusb->dvb_demux.dmx.vendor = "Technotrend/Hauppauge";
- ttusb->dvb_demux.dmx.model = "USB-Nova";
- ttusb->dvb_demux.dmx.id = "xyz";
- ttusb->dvb_demux.dmx.capabilities = DMX_TS_FILTERING | DMX_SECTION_FILTERING;
+ ttusb->dvb_demux.dmx.capabilities = DMX_TS_FILTERING | DMX_SECTION_FILTERING;
ttusb->dvb_demux.priv = 0;
#ifdef TTUSB_HWSECTIONS
ttusb->dvb_demux.filternum = TTUSB_MAXFILTER;
diff --git a/linux/drivers/media/dvb/ttusb-dec/ttusb_dec.c b/linux/drivers/media/dvb/ttusb-dec/ttusb_dec.c
index 7bdc8a611..bb1d30644 100644
--- a/linux/drivers/media/dvb/ttusb-dec/ttusb_dec.c
+++ b/linux/drivers/media/dvb/ttusb-dec/ttusb_dec.c
@@ -897,9 +897,6 @@ ttusb_dec_init_dvb(ttusb_dec_t * dec)
}
- dec->demux.dmx.vendor = "Technotrend/Hauppauge";
- dec->demux.dmx.model = "DEC-2000-t";
- dec->demux.dmx.id = "demux0_0";
dec->demux.dmx.capabilities = DMX_TS_FILTERING | DMX_SECTION_FILTERING;
dec->demux.priv = (void *) dec;
@@ -940,9 +937,6 @@ ttusb_dec_init_dvb(ttusb_dec_t * dec)
}
- dec->frontend.id = "tda10045";
- dec->frontend.vendor = "TechnoTrend/Hauppauge";
- dec->frontend.model = "DEC";
dec->frontend.source = DMX_FRONTEND_0;
if ((result =