RE: Bug In V4L2? How to I access video of a second PV148 Card in Linux?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



Thanks for your reply.
Sorry about the delay in may reply but I had some Mail problems.


I have tried your solution making:

mknod video4 c 81 4
chown root.root video4
chmod 600 video4

mknod video5 c 81 5
chown root.root video5
chmod 600 video5

mknod video6 c 81 6
chown root.root video6
chmod 600 video6

mknod video7 c 81 7
chown root.root video7
chmod 600 video7

mknod video8 c 81 8
chown root.root video8
chmod 600 video8

or running the script :)

su
cd /dev
for ii in 4 5 6 7 8 9 10 11 12 13 14 15 16 ; do 
mknod video$ii c 81 $ii # char-major-81-[4-16]
chown root.root video$ii # owned by root
chmod 600 video$ii # read/writable by root only 
done 

I have also altered the bttvp.h file in the driver to:

#define BTTV_MAX 8 // old value was 4
...
#define MAX_OPENS 8 // old value was 4
#define MAX_VBI_OPENS 8 // old value was 4



my dmesg is:

Linux version 2.4.7-10 (bhcompile@xxxxxxxxxxxxxxxxxxxxxxxxxx) (gcc
version 2.96 20000731 (Red Hat Linux 7.1 2.96-98)) #1 Thu Sep 6 17:27:27
ED
T 2001
BIOS-provided physical RAM map:
 BIOS-e820: 0000000000000000 - 000000000009fc00 (usable)
 BIOS-e820: 000000000009fc00 - 00000000000a0000 (reserved)
 BIOS-e820: 00000000000f0000 - 0000000000100000 (reserved)
 BIOS-e820: 0000000000100000 - 0000000007ff0000 (usable)
 BIOS-e820: 0000000007ff0000 - 0000000007ff3000 (ACPI NVS)
 BIOS-e820: 0000000007ff3000 - 0000000008000000 (ACPI data)
 BIOS-e820: 00000000ffb00000 - 0000000100000000 (reserved)
Scanning bios EBDA for MXT signature
On node 0 totalpages: 32752
zone(0): 4096 pages.
zone(1): 28656 pages.
zone(2): 0 pages.
Kernel command line: auto BOOT_IMAGE=linux ro root=303
BOOT_FILE=/boot/vmlinuz-2.4.7-10
Initializing CPU#0
Detected 1297.518 MHz processor.
Console: colour VGA+ 80x25
Calibrating delay loop... 2588.67 BogoMIPS
Memory: 125204k/131008k available (1269k kernel code, 4520k reserved,
90k data, 220k init, 0k highmem)
Dentry-cache hash table entries: 16384 (order: 5, 131072 bytes)
Inode-cache hash table entries: 8192 (order: 4, 65536 bytes)
Mount-cache hash table entries: 2048 (order: 2, 16384 bytes)
Buffer-cache hash table entries: 4096 (order: 2, 16384 bytes)
Page-cache hash table entries: 32768 (order: 6, 262144 bytes)
CPU: Before vendor init, caps: 0383f9ff 00000000 00000000, vendor = 0
CPU: L1 I cache: 16K, L1 D cache: 16K
CPU: L2 cache: 256K
Intel machine check architecture supported.
Intel machine check reporting enabled on CPU#0.
CPU: After vendor init, caps: 0383f9ff 00000000 00000000 00000000
CPU:     After generic, caps: 0383f9ff 00000000 00000000 00000000
CPU:             Common caps: 0383f9ff 00000000 00000000 00000000
CPU: Intel(R) Celeron(TM) CPU                1300MHz stepping 01
Enabling fast FPU save and restore... done.
Enabling unmasked SIMD FPU exception support... done.
Checking 'hlt' instruction... OK.
POSIX conformance testing by UNIFIX
mtrr: v1.40 (20010327) Richard Gooch (rgooch@xxxxxxxxxxxxx)
mtrr: detected mtrr type: Intel
PCI: PCI BIOS revision 2.10 entry at 0xfb190, last bus=4
PCI: Using configuration type 1
PCI: Probing PCI hardware
Unknown bridge resource 0: assuming transparent
Unknown bridge resource 0: assuming transparent
Unknown bridge resource 1: assuming transparent
Unknown bridge resource 0: assuming transparent
Unknown bridge resource 1: assuming transparent
PCI: Using IRQ router PIIX [8086/2440] at 00:1f.0
isapnp: Scanning for PnP cards...
isapnp: No Plug & Play device found
Linux NET4.0 for Linux 2.4
Based upon Swansea University Computer Society NET3.039
Initializing RT netlink socket
apm: BIOS version 1.2 Flags 0x07 (Driver version 1.14)
mxt_scan_bios: enter
Starting kswapd v1.8
VFS: Diskquotas version dquot_6.5.0 initialized
pty: 2048 Unix98 ptys configured
Serial driver version 5.05c (2001-07-08) with MANY_PORTS MULTIPORT
SHARE_IRQ SERIAL_PCI ISAPNP enabled
ttyS00 at 0x03f8 (irq = 4) is a 16550A
ttyS01 at 0x02f8 (irq = 3) is a 16550A
Real Time Clock Driver v1.10d
block: queued sectors max/low 83101kB/27700kB, 256 slots per queue
RAMDISK driver initialized: 16 RAM disks of 4096K size 1024 blocksize
Uniform Multi-Platform E-IDE driver Revision: 6.31
ide: Assuming 33MHz PCI bus speed for PIO modes; override with idebus=xx
PIIX4: IDE controller on PCI bus 00 dev f9
PIIX4: chipset revision 5
PIIX4: not 100% native mode: will probe irqs later
    ide0: BM-DMA at 0xf000-0xf007, BIOS settings: hda:DMA, hdb:pio
    ide1: BM-DMA at 0xf008-0xf00f, BIOS settings: hdc:pio, hdd:pio
hda: SAMSUNG SP4002H, ATA DISK drive
ide0 at 0x1f0-0x1f7,0x3f6 on irq 14
hda: 78242976 sectors (40060 MB) w/1824KiB Cache, CHS=4870/255/63,
UDMA(33)
ide-floppy driver 0.97
Partition check:
 hda: hda1 hda2 hda3 hda4 < hda5 >
Floppy drive(s): fd0 is 1.44M
FDC 0 is a post-1991 82077
ide-floppy driver 0.97
md: md driver 0.90.0 MAX_MD_DEVS=256, MD_SB_DISKS=27
md: Autodetecting RAID arrays.
md: autorun ...
md: ... autorun DONE.
NET4: Linux TCP/IP 1.0 for NET4.0
IP Protocols: ICMP, UDP, TCP, IGMP
IP: routing cache hash table of 512 buckets, 4Kbytes
TCP: Hash tables configured (established 8192 bind 8192)
Linux IP multicast router 0.06 plus PIM-SM
NET4: Unix domain sockets 1.0/SMP for Linux NET4.0.
RAMDISK: Compressed image found at block 0
Freeing initrd memory: 321k freed
VFS: Mounted root (ext2 filesystem).
Journalled Block Device driver loaded
kjournald starting.  Commit interval 5 seconds
EXT3-fs: mounted filesystem with ordered data mode.
Freeing unused kernel memory: 220k freed
Adding Swap: 265032k swap-space (priority -1)
usb.c: registered new driver usbdevfs
usb.c: registered new driver hub
usb-uhci.c: $Revision: 1.259 $ time 17:36:49 Sep  6 2001
usb-uhci.c: High bandwidth mode enabled
PCI: Found IRQ 5 for device 00:1f.2
PCI: Setting latency timer of device 00:1f.2 to 64
usb-uhci.c: USB UHCI at I/O 0xd000, IRQ 5
usb-uhci.c: Detected 2 ports
usb.c: new USB bus registered, assigned bus number 1
hub.c: USB hub found
hub.c: 2 ports detected
PCI: Found IRQ 11 for device 00:1f.4
PCI: Setting latency timer of device 00:1f.4 to 64
usb-uhci.c: USB UHCI at I/O 0xd800, IRQ 11
usb-uhci.c: Detected 2 ports
usb.c: new USB bus registered, assigned bus number 2
hub.c: USB hub found
hub.c: 2 ports detected
usb-uhci.c: v1.251:USB Universal Host Controller Interface driver
EXT3 FS 2.4-0.9.8, 25 Aug 2001 on ide0(3,3), internal journal
kjournald starting.  Commit interval 5 seconds
EXT3 FS 2.4-0.9.8, 25 Aug 2001 on ide0(3,1), internal journal
EXT3-fs: mounted filesystem with ordered data mode.
kjournald starting.  Commit interval 5 seconds
EXT3 FS 2.4-0.9.8, 25 Aug 2001 on ide0(3,2), internal journal
EXT3-fs: mounted filesystem with ordered data mode.
8139too Fast Ethernet driver 0.9.18a
PCI: Found IRQ 11 for device 02:09.0
PCI: Sharing IRQ 11 with 00:1f.3
PCI: Sharing IRQ 11 with 00:1f.5
eth0: RealTek RTL8139 Fast Ethernet at 0xc886a000, 00:4f:4e:15:24:f2,
IRQ 11
eth0:  Identified 8139 chip type 'RTL-8139C'
eth0: Setting 100mbps half-duplex based on auto-negotiated partner
ability 40a1.
i2c-core.o: i2c core module
i2c-algo-bit.o: i2c bit algorithm module
Video for Linux One (2.2.16). Major device: 81
Video for Linux Two (V0.20). Major device: 81
bttv: driver version 0.7.90 loaded
bttv: Host bridge is PCI device 8086:1130 (Intel Corporation)
bttv: Bt8xx card found (0).
bttv0: Bt878 (rev 17) at 03:08.0, irq: 9, latency: 32, memory:
0xea000000
bttv0: subsystem: aa00:1460 (UNKNOWN)
please mail id, board name and the correct card= insmod option to
kraxel@xxxxxxxxxxx
bttv0: using: BT878(Default: Placa 4Entrada) [card=0,autodetected]
i2c-core.o: adapter bt848 #0 registered as adapter 0.
bttv0: i2c: checking for TDA9875 @ 0xb0... not found
bttv0: i2c: checking for TDA7432 @ 0x8a... not found
i2c-core.o: driver i2c TV tuner driver registered.
tuner: probing bt848 #0 i2c adapter [id=0x10005]
V4L2: Registered "BT878(Default: Placa 4Entrada)" as char device 81, 0
V4L2: Registered "Bttv2 VBI device 0" as char device 81, 224
bttv0: PLL: 28636363 => 35468950 ... ok
bttv: Bt8xx card found (1).
bttv1: Bt878 (rev 17) at 03:09.0, irq: 5, latency: 32, memory:
0xea002000
bttv1: subsystem: aa01:1461 (UNKNOWN)
please mail id, board name and the correct card= insmod option to
kraxel@xxxxxxxxxxx
bttv1: using: BT878(Default: Placa 4Entrada) [card=0,autodetected]
tuner: probing bt848 #1 i2c adapter [id=0x10005]
i2c-core.o: adapter bt848 #1 registered as adapter 1.
bttv1: i2c: checking for TDA9875 @ 0xb0... not found
bttv1: i2c: checking for TDA7432 @ 0x8a... not found
V4L2: Registered "BT878(Default: Placa 4Entrada)" as char device 81, 1
V4L2: Registered "Bttv2 VBI device 1" as char device 81, 225
bttv1: PLL: 28636363 => 35468950 ... ok
bttv: Bt8xx card found (2).
bttv2: Bt878 (rev 17) at 03:0a.0, irq: 10, latency: 32, memory:
0xea004000
bttv2: subsystem: aa02:1462 (UNKNOWN)
please mail id, board name and the correct card= insmod option to
kraxel@xxxxxxxxxxx
bttv2: using: BT878(Default: Placa 4Entrada) [card=0,autodetected]
tuner: probing bt848 #2 i2c adapter [id=0x10005]
i2c-core.o: adapter bt848 #2 registered as adapter 2.
bttv2: i2c: checking for TDA9875 @ 0xb0... not found
bttv2: i2c: checking for TDA7432 @ 0x8a... not found
V4L2: Registered "BT878(Default: Placa 4Entrada)" as char device 81, 2
V4L2: Registered "Bttv2 VBI device 2" as char device 81, 226
bttv2: PLL: 28636363 => 35468950 ... ok
bttv: Bt8xx card found (3).
bttv3: Bt878 (rev 17) at 03:0b.0, irq: 11, latency: 32, memory:
0xea006000
bttv3: subsystem: aa03:1463 (UNKNOWN)
please mail id, board name and the correct card= insmod option to
kraxel@xxxxxxxxxxx
bttv3: using: BT878(Default: Placa 4Entrada) [card=0,autodetected]
tuner: probing bt848 #3 i2c adapter [id=0x10005]
i2c-core.o: adapter bt848 #3 registered as adapter 3.
bttv3: i2c: checking for TDA9875 @ 0xb0... not found
bttv3: i2c: checking for TDA7432 @ 0x8a... not found
V4L2: Registered "BT878(Default: Placa 4Entrada)" as char device 81, 3
V4L2: Registered "Bttv2 VBI device 3" as char device 81, 227
bttv3: PLL: 28636363 => 35468950 ... ok
bttv: Bt8xx card found (4).
bttv4: Bt878 (rev 17) at 04:08.0, irq: 5, latency: 32, memory:
0xea100000
bttv4: subsystem: aa04:1464 (UNKNOWN)
please mail id, board name and the correct card= insmbttv4: i2c:
checking for TDA7432 @ 0x8a... not found
V4L2: BT878(Default: Placa 4Entrada) and BT878(Default: Placa 4Entrada)
have both been assigned minor 0
V4L2: BT878(Default: Placa 4Entrada) and Bttv2 VBI device 4 have both
been assigned minor 0
bttv4: PLL: 28636363 => 35468950 ... ok
bttv: Bt8xx card found (5).
bttv5: Bt878 (rev 17) at 04:09.0, irq: 10, latency: 32, memory:
0xea102000
bttv5: subsystem: aa05:1465 (UNKNOWN)
please mail id, board name and the correct card= insmod option to
kraxel@xxxxxxxxxxx
bttv5: using: BT878(Default: Placa 4Entrada) [card=0,autodetected]
tuner: probing bt848 #5 i2c adapter [id=0x10005]
i2c-core.o: adapter bt848 #5 registered as adapter 5.
bttv5: i2c: checking for TDA9875 @ 0xb0... not found
bttv5: i2c: checking for TDA7432 @ 0x8a... not found
V4L2: BT878(Default: Placa 4Entrada) and BT878(Default: Placa 4Entrada)
have both been assigned minor 0
V4L2: BT878(Default: Placa 4Entrada) and Bttv2 VBI device 5 have both
been assigned minor 0
bttv5: PLL: 28636363 => 35468950 ... ok
bttv: Bt8xx card found (6).
bttv6: Bt878 (rev 17) at 04:0a.0, irq: 11, latency: 32, memory:
0xea104000
bttv6: subsystem: aa06:1466 (UNKNOWN)
please mail id, board name and the correct card= insmod option to
kraxel@xxxxxxxxxxx
bttv6: using: BT878(Default: Placa 4Entrada) [card=0,autodetected]
tuner: probing bt848 #6 i2c adapter [id=0x10005]
i2c-core.o: adapter bt848 #6 registered as adapter 6.
bttv6: i2c: checking for TDA9875 @ 0xb0... not found
bttv6: i2c: checking for TDA7432 @ 0x8a... not found
V4L2: BT878(Default: Placa 4Entrada) and BT878(Default: Placa 4Entrada)
have both been assigned minor 0
V4L2: BT878(Default: Placa 4Entrada) and Bttv2 VBI device 6 have both
been assigned minor 0
bttv6: PLL: 28636363 => 35468950 ... ok
bttv: Bt8xx card found (7).
bttv7: Bt878 (rev 17) at 04:0b.0, irq: 9, latency: 32, memory:
0xea106000
bttv7: subsystem: aa07:1467 (UNKNOWN)
please mail id, board name and the correct card= insmod option to
kraxel@xxxxxxxxxxx
bttv7: using: BT878(Default: Placa 4Entrada) [card=0,autodetected]
tuner: probing bt848 #7 i2c adapter [id=0x10005]
i2c-core.o: adapter bt848 #7 registered as adapter 7.
bttv7: i2c: checking for TDA9875 @ 0xb0... not found
bttv7: i2c: checking for TDA7432 @ 0x8a... not found
V4L2: BT878(Default: Placa 4Entrada) and BT878(Default: Placa 4Entrada)
have both been assigned minor 0
V4L2: BT878(Default: Placa 4Entrada) and Bttv2 VBI device 7 have both
been assigned minor 0
bttv7: PLL: 28636363 => 35468950 ... okod option to kraxel@xxxxxxxxxxx
bttv4: using: BT878(Default: Placa 4Entrada) [card=0,autodetected]
tuner: probing bt848 #4 i2c adapter [id=0x10005]
i2c-core.o: adapter bt848 #4 registered as adapter 4.
bttv4: i2c: checking for TDA9875 @ 0xb0... not found




The driver default values are:

        name:           "Default: Placa 4Entradas (Fast)",
        video_inputs:   4,
        audio_inputs:   1,
        tuner:          0,
        svhs:           -1,
        gpiomask:       0x03000F,
        muxsel:         { 2, 3, 1, 0},
        audiomux:       { 2,0,0,0,1 },
        no_msp34xx:     1,
        pll:            PLL_28,
        tuner_type:     4,



But I still can´t open the created /dev/video4, /dev/video5, /dev/video6
or /dev/video7
The function OPEN fail's.
It gives "No such device". What can be wrong?

Thanks in advance
Jorge Rodrigues


-----Mensagem original-----
De: video4linux-list-admin@xxxxxxxxxx
[mailto:video4linux-list-admin@xxxxxxxxxx]Em nome de Gerd Knorr
Enviada: quinta-feira, 5 de Dezembro de 2002 17:47
Para: video4linux-list@xxxxxxxxxx
Assunto: Re: Bug In V4L2? How to I access video of a second PV148 Card
in Linux?


>  My problem is:
>  I have two cards PV148H, one PV148HA and another PV148HB, each one
has 4
>  bt878 chips and allows video capture at 25 fps on each video input.

>  Currenty i use the VIDIOC_S_INPUT in order to change channel,

Wrong.  You get a /dev/video<n> device per bt878 chip.

You also have to build your own bttv with BTTV_MAX set to 8 to get
actually both cards running.

  Gerd







[Index of Archives]     [Linux DVB]     [Video Disk Recorder]     [Asterisk]     [Photo]     [DCCP]     [Netdev]     [Xorg]     [Util Linux NG]     [Xfree86]     [Free Photo Albums]     [Fedora Users]     [Fedora Women]     [ALSA Users]     [ALSA Devel]     [Linux USB]

Powered by Linux