Mailing List archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[mpeg2] cat /dev/video is stuck in read()
Hi guys,
The latest driver I got from the CVS server seems to load fine into my
kernel (2.4.4-ac2) and the MD5 checksums seem to be correct. I'm running a
ASUS A7M266 mobo with a VIA chipset. Since the machine doesn't freeze it
does not seem to cause trouble (I tried it on a i815 mobo, and had exactly
the same problem reading from the device).
Now, when I do a 'cat /dev/video', 'cat' seems to be stuck. Using 'strace' I
get the following:
open("/dev/video", O_RDONLY|O_LARGEFILE) = 3
fstat64(3, {st_mode=S_IFCHR|0600, st_rdev=makedev(81, 0), ...}) = 0
brk(0x804f000) = 0x804f000
read(3, <unfinished
...>
What could be the problem ?
I did a 'make insmod' first, but since I do not have a PAL signal it did not
work (also stuck in read()). Then I tried to load the driver as follows:
insmod kfir.o streamtype=4 vidrate=6000000 vidinmode=1 vidoutmode=1
vidinput=0 loaded=1
This should set the input to NTSC/Composite and put out MPEG Transport at 6
Mbit/s. (I tried different streamtypes and datarates - no luck).
My video source is a camera that seems to produce a valid NTSC signal - if I
attach it to a monitor, the picture looks ok.
Any ideas ?
Thanks,
Mathias
Some info about my machine:
[root@descant driver]# cat /proc/interrupts
CPU0
0: 304672 XT-PIC timer
1: 13382 XT-PIC keyboard
2: 0 XT-PIC cascade
8: 1 XT-PIC rtc
10: 2 XT-PIC envy24
11: 113823 XT-PIC eth0
12: 47063 XT-PIC PS/2 Mouse
14: 10346 XT-PIC aic7xxx
15: 7 XT-PIC kfir
NMI: 0
ERR:
0
[dmesg snipset]
i2c-core.o: driver SAA7113 registered.
saa7113: init_module
kfir: Kfir board revision 5e
loaded microcode with length 32385
kfir: Reset Altera
kfir: done
kfir: Reset Kfir and PLL ... done
kfir: ADSP loading successful
kfir: ADSP initialization...done
kfir: segment: 0 Done
kfir: segment: 1 Done
kfir: segment: 2 Done
kfir: segment: 3 Done
kfir: segment: 4 Done
kfir: segment: 5 Done
kfir: Download parameters...kfir: done
i2c-dev.o: Registered 'kfir #0' as minor 0
saa7113: version=11
saa7113: attaching SAA7113 at 0x4a
kfir: saa7113 decoder attached
kfir: i2c attach [SAA7113]
i2c-core.o: client [SAA7113] registered to adapter [kfir #0](pos. 0).
saa7113: status=a5
saa7113: attached to adapter kfir #0
i2c-core.o: adapter kfir #0 registered as adapter 0.
kfir: Found i2c device at: 0x4a
kfir: decoder
status=b
eready=00200001
eready=00200000
[root@descant driver]# lsmod
Module Size Used by
kfir 200688 0
saa7113 2512 0 (unused)
envy24 39984 0
audiobuf 11536 0 [envy24]
uart401 7808 0 [envy24]
pnp 49456 0 [envy24]
midi 29360 0 [uart401 pnp]
ac97 6400 0 [envy24]
soundbase 341296 0 [envy24 audiobuf uart401 pnp midi ac97]
sndshield 10704 0 [envy24 audiobuf uart401 pnp midi ac97
soundbase]
3c59x 23680 1
(autoclean)
Home |
Main Index |
Thread Index