mirror of
https://github.com/DigitalDevices/dddvb.git
synced 2023-10-10 13:37:43 +02:00
use already resolved link and info
This commit is contained in:
parent
e17abdbbb9
commit
08b3218e5a
@ -2011,14 +2011,14 @@ static void ddb_port_probe(struct ddb_port *port)
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (port->nr == 1 && dev->link[l].info->type == DDB_OCTOPUS_CI &&
|
if (port->nr == 1 && link->info->type == DDB_OCTOPUS_CI &&
|
||||||
link->info->i2c_mask == 1) {
|
link->info->i2c_mask == 1) {
|
||||||
port->name = "NO TAB";
|
port->name = "NO TAB";
|
||||||
port->class = DDB_PORT_NONE;
|
port->class = DDB_PORT_NONE;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (dev->link[l].info->type == DDB_MOD) {
|
if (link->info->type == DDB_MOD) {
|
||||||
port->name = "MOD";
|
port->name = "MOD";
|
||||||
port->class = DDB_PORT_MOD;
|
port->class = DDB_PORT_MOD;
|
||||||
return;
|
return;
|
||||||
@ -2034,9 +2034,8 @@ static void ddb_port_probe(struct ddb_port *port)
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (link->info->type == DDB_OCTOPUS_MCI) {
|
if ((link->info->type == DDB_OCTOPUS_MCI) &&
|
||||||
if (port->nr >= link->info->mci_ports)
|
(port->nr < link->info->mci_ports)) {
|
||||||
return;
|
|
||||||
port->name = "DUAL MCI";
|
port->name = "DUAL MCI";
|
||||||
port->type_name = "MCI";
|
port->type_name = "MCI";
|
||||||
port->class = DDB_PORT_TUNER;
|
port->class = DDB_PORT_TUNER;
|
||||||
@ -2580,7 +2579,7 @@ static void ddb_ports_init(struct ddb *dev)
|
|||||||
if (!rm)
|
if (!rm)
|
||||||
continue;
|
continue;
|
||||||
ports = info->port_num;
|
ports = info->port_num;
|
||||||
if ((l == 0) && (dev->link[l].info->type == DDB_MOD) &&
|
if ((l == 0) && (info->type == DDB_MOD) &&
|
||||||
(dev->link[0].ids.revision == 1)) {
|
(dev->link[0].ids.revision == 1)) {
|
||||||
ports = ddbreadl(dev, 0x260) >> 24;
|
ports = ddbreadl(dev, 0x260) >> 24;
|
||||||
}
|
}
|
||||||
@ -2628,7 +2627,7 @@ static void ddb_ports_init(struct ddb *dev)
|
|||||||
if (port->class == DDB_PORT_NONE)
|
if (port->class == DDB_PORT_NONE)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
switch (dev->link[l].info->type) {
|
switch (info->type) {
|
||||||
case DDB_OCTOPUS_CI:
|
case DDB_OCTOPUS_CI:
|
||||||
if (i >= 2) {
|
if (i >= 2) {
|
||||||
ddb_input_init(port, 2 + i, 0, 2 + i);
|
ddb_input_init(port, 2 + i, 0, 2 + i);
|
||||||
|
Loading…
Reference in New Issue
Block a user