Mailing List archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[linux-dvb] Re: Several Problems with driver 0.9.4
Hello!
Am Sonntag, 10. März 2002 20:30 schrieb Tim Evers:
> Am Son, 2002-03-10 um 16.06 schrieb Andreas Roedl:
> > The reason I asked for the output is the so called "subsystem_device id"
> > which must be added to get_card_type() in dvb.c. Without that procedure
> > the second card won't be recognized.
> 00:0a.0 Class 0480: 1131:7146 (rev 01)
> 00:0c.0 Class 0480: 1131:7146 (rev 01)
I'm sorry but the more interesting output will be given by "lspci -vn" :-)
These are my DVB cards:
01:00.0 Class 0480: 1131:7146 (rev 01)
Subsystem: 13c2:0008
Flags: bus master, medium devsel, latency 128, IRQ 9
Memory at efc00000 (32-bit, non-prefetchable) [size=512]
01:01.0 Class 0480: 1131:7146 (rev 01)
Subsystem: 13c2:0002
Flags: bus master, medium devsel, latency 128, IRQ 11
Memory at efb00000 (32-bit, non-prefetchable) [size=512]
In dvb.c of the DVB driver you'll find a function calld get_card_type() (see
below). There must be a "case" for your "subsystem_vendor" (my cards are both
0x13c2) and a case for "subsystem_device" below (my cards are 0x0002 and
0x0008).
static int __init
get_card_type(struct pci_dev *dev)
{
int type=-1;
switch (dev->subsystem_vendor) {
case 0x110a: /* Siemens cable card */
type=DVB_CARD_TT_SIEMENS;
break;
case 0x13c2:
switch (dev->subsystem_device) {
case 0x1003: /* TT-Budget and WinTV-NOVA-S, both tuner types
*/
case 0x1013: /* also TT-Budget ("SATELCO Multimedia card") */
case 0x1004: /* WinTV-NOVA-C */
case 0x1005: /* WinTV-NOVA-T */
type=DVB_CARD_TT_BUDGET;
break;
case 0x0000: /* Siemens cable and sat card (maybe older
version?) */
case 0x0001: /* Technotrend, Hauppauge (maybe retail version
?) */
case 0x0002: /* dito */
case 0x1002: /* dito */
case 0x0003: /* Hauppauge/TT V2.1, new design and new tuner */
case 0x0004: /* new type but with old tuner ? */
case 0x0008: /* TT DVB-T */
type=DVB_CARD_TT_SIEMENS;
break;
}
break;
default:
break;
}
return type;
}
Andi
--
Web: http://www.flood-net.de/
Mail: flood@flood-net.de
Phone: +49-(0)-30-680577-44
Linux opens doors, not windows!
http://www.bundestux.de/ http://counter.li.org/
--
Info:
To unsubscribe send a mail to listar@linuxtv.org with "unsubscribe linux-dvb" as subject.
Home |
Main Index |
Thread Index