Ident for Bt848 card
Hi, the old Bt848 card (no tuner, no audio - just composite + s-video) I'm using isn't picked up by kernel 2.6.24 properly causing a 30 second delay at bootup to find audio chips and EEPROMS that aren't there.
I've been trying to put together a patch against hg to fix it, but am a little confused.
The card is definitely a BTTV_BOARD_GRANDTEC since the structure is correct and this comment [1] is right on the money:
/* This is the ultimate cheapo capture card
* just a BT848A on a small PCB!
* Steve Hosgood <[email protected]> */
However there seems to be a confusion because the PCI ID of my card is 109e:0350 (which is not defined anywhere in hg) yet BTTV_BOARD_GRANDTEC is defined as
{ 0x41424344, BTTV_BOARD_GRANDTEC, "GrandTec Multi Capture" },
This appears to be bogus, and that PCI ID should instead be pointing at BTTV_BOARD_GRANDTEC_MULTI (which does indeed define 4 composite inputs correct for a 'multi' card). The _MULTI one is currently not associated with any PCI ID.
I believe the correct definitions should therefore be:
{ 0x109e0350, BTTV_BOARD_GRANDTEC, "GrandTec Grand Video Capture" }, { 0x41424344, BTTV_BOARD_GRANDTEC_MULTI, "GrandTec Multi Capture" },
Could someone take a quick look over this and tell me if I've made some awful assumption?
Cheers,
Gavin.
[1] Line 1346 bttv-cards.c
--
video4linux-list mailing list
Unsubscribe mailto:[email protected]?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/video4linux-list
Quoted 10 lines · Gavin Hamill
Hi, the old Bt848 card (no tuner, no audio - just composite + s-video) I'm using isn't picked up by kernel 2.6.24 properly causing a 30 second delay at bootup to find audio chips and EEPROMS that aren't there.
I've been trying to put together a patch against hg to fix it, but am a little confused.
The card is definitely a
BTTV_BOARD_GRANDTECsince the structure is correct and this comment [1] is right on the money:
Quoted 8 lines
/* This is the ultimate cheapo capture card
* just a BT848A on a small PCB!
* Steve Hosgood <[email protected]> */However there seems to be a confusion because the PCI ID of my card is 109e:0350 (which is not defined anywhere in hg) yet
BTTV_BOARD_GRANDTECis defined as
109e is BrookTree's vendor id and 0350 is the id for the BT848. Many different BT848 based cards could have this vendor id:device id combination.
What does "lspci -nv" give as the subsystem ID for this card? You may find it matches up with with one of the entries in in bttv-cards.c.
Quoted 7 lines
{
0x41424344,BTTV_BOARD_GRANDTEC, "GrandTec Multi Capture" },This appears to be bogus, and that PCI ID should instead be pointing at
BTTV_BOARD_GRANDTEC_MULTI(which does indeed define 4 composite inputs correct for a 'multi' card). The_MULTIone is currently not associated with any PCI ID.
Quoted 7 lines
I believe the correct definitions should therefore be:
{
0x109e0350,BTTV_BOARD_GRANDTEC, "GrandTec Grand Video Capture" }, {0x41424344,BTTV_BOARD_GRANDTEC_MULTI, "GrandTec Multi Capture" },Could someone take a quick look over this and tell me if I've made some awful assumption?
A PCI Device ID is not a Subsystem ID.
Regards,
Andy
Quoted 10 lines
Cheers,
Gavin.[1] Line 1346
bttv-cards.c--
video4linux-list mailing list
Unsubscribe mailto:[email protected]?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/video4linux-list
--
video4linux-list mailing list
Unsubscribe mailto:[email protected]?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/video4linux-list
Quoted 4 lines · Andy Walls
109e is BrookTree's vendor id and 0350 is the id for the BT848. Many different BT848 based cards could have this vendor id:device id combination.
I see. So at the moment although mine is detected as:
bttv0: Bt848 (rev 18) at 0000:03:03.0, irq: 22, latency: 64, mmio:0xee000000
bttv0: using: *** UNKNOWN/GENERIC *** [card=0,autodetected]
bttv0: gpio: en=00000000, out=00000000 in=00ffffff [init]
.. setting this PCI ID to be a very cut down card would possibly kill support for the tuner/audio on other cheapo cards out there which are only working by way of probing by the driver?
Quoted 2 lines
What does "lspci -nv" give as the subsystem ID for this card? You may find it matches up with with one of the entries in in
bttv-cards.c.
It doesn't:
03:03.0 0400: 109e:0350 (rev 12)
Flags: bus master, medium devsel, latency 64, IRQ 22 Memory at ee000000 (32-bit, prefetchable) [size=4K]
Almost every other device from lspci -vn has a Subsystem, but not this one. Sounds like I'm out of luck, then. Ah well :/
Cheers,
Gavin.
--
video4linux-list mailing list
Unsubscribe mailto:[email protected]?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/video4linux-list
Quoted 20 lines · Gavin Hamill
Quoted 4 lines · Andy Walls
109e is BrookTree's vendor id and 0350 is the id for the BT848. Many different BT848 based cards could have this vendor id:device id combination.
I see. So at the moment although mine is detected as:
bttv0: Bt848 (rev 18) at 0000:03:03.0, irq: 22, latency: 64, mmio:
0xee000000
bttv0: using: *** UNKNOWN/GENERIC *** [card=0,autodetected]
bttv0: gpio: en=00000000, out=00000000 in=00ffffff [init].. setting this PCI ID to be a very cut down card would possibly kill support for the tuner/audio on other cheapo cards out there which are only working by way of probing by the driver?
Quoted 2 lines
What does "lspci -nv" give as the subsystem ID for this card? You may find it matches up with with one of the entries in in
bttv-cards.c.
Quoted 8 lines
It doesn't:
03:03.0 0400: 109e:0350 (rev 12)
Flags: bus master, medium devsel, latency 64, IRQ 22 Memory at ee000000 (32-bit, prefetchable) [size=4K]Almost every other device from lspci -vn has a Subsystem, but not this one. Sounds like I'm out of luck, then. Ah well :/
Not yet.
1. Check the bttv-cards.c file for the description that best matches your card based on what you can physically inspect on the card: chips traces, input and antenna jacks, etc.
2. Look up the card # in bttv.h. For example:
...
#define BTTV_BOARD_GRANDTEC 0x39 (== 57)
...
#define BTTV_BOARD_GRANDTEC_MULTI 0x4d (== 77)
3. Try modprobing with the card option, for example:
# modprobe -r bttv # modprobe bttv card=57
Regards,
Andy
--
video4linux-list mailing list
Unsubscribe mailto:[email protected]?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/video4linux-list
Quoted 2 lines · Andy Walls
# modprobe -r bttv # modprobe bttv card=57
Ah cool - that seems to have done the trick - no delay at all on modprobe now - a pity the cheapass way the card was manufactured prevented a fix that could benefit other people. Oh well. <shrug>
Cheers,
Gavin.
--
video4linux-list mailing list
Unsubscribe mailto:[email protected]?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/video4linux-list