|
From: Douglas F. <ds-...@co...> - 2004-01-04 22:21:29
|
Sirs: Thank-you for the suggestions on tuning the driver-zoran. I have tried different v4l_nbufs and anything else I could see but to no affect. I have included a syslog dump of one of my capture attempts, in the hope that it will point something out to the more knowledgeable. Something of note is that if I set the video input source to black or house color bars, it will capture all day long. If the source is set to live video it fails after a minute or so. Obviously black or bars will compress much better then a moving video source, so does this suggest timing, or buffer size? Could it be in the capture program (lavrec) and not the driver? Thank-you for any help Douglas Fraser #### from my last email: The system is an ASUS P4S533-MX (SIS651 chipset) with a 2gig celeron. The LML33.23 card has IRQ10 by itself. Gentoo linux 2.4.20-r9 I also have a DC10Plus card that I can swap in place of the LML33, of course it works just fine with both versions of the driver. I would like to be able to use the LML33, the DC10Plus is slated for another machine. I also tried moving the LML33 into a machine with a P3 1gig and intel chipset, failed the same way. #### lavrec -n256 -b1024 -in -d1 -fa -a0 --file-flush 1 test-%20d.avi ++ WARN: [lavrec] Unable to set negative priority for main thread ++ WARN: [lavrec] Pthread Real-time scheduling for main thread could not be enabled ++ WARN: [lavrec] Closing file(s) and exiting - Output file(s) my not be readable due to error **ERROR: [lavrec] Error syncing on a buffer: Timer expired total time open to close 01:09 driver set to debug=4 11:44:21 localhost kernel: LML33[0]: zoran_open(lavrec, pid=[1633]), users(-)=0 11:44:21 localhost kernel: LML33[0]: check_jpg_settings() - dec: 1, Hdcm: 1, Vdcm: 1, Tdcm: 1 11:44:21 localhost kernel: LML33[0]: check_jpg_settings() - x: 0, y: 0, w: 720, y: 240 11:44:21 localhost kernel: LML33[0]: lml33_init() 11:44:21 localhost kernel: LML33[0]: jpeg_codec_sleep() - sleep GPIO=0x85008888 11:44:21 localhost kernel: LML33[0]: jpeg_codec_sleep() - wake GPIO=0x87008888 11:44:21 localhost kernel: LML33[0]: jpeg_codec_sleep() - wake GPIO=0xaf008888 11:44:21 localhost kernel: LML33[0]: jpeg_codec_sleep() - sleep GPIO=0xad008888 11:44:21 localhost kernel: LML33[0]: enable_jpg(IDLE) 11:44:21 localhost kernel: LML33[0]: VIDIOCSCHAN - channel=0, norm=1 11:44:21 localhost kernel: LML33[0]: VIDIOCGCHAN - channel=0 11:44:21 localhost kernel: LML33[0]: VIDIOCGCAP 11:44:21 localhost kernel: LML33[0]: BUZIOC_G_PARAMS 11:44:21 localhost kernel: LML33[0]: BUZIOC_S_PARAMS 11:44:21 localhost kernel: LML33[0]: check_jpg_settings() - dec: 0, Hdcm: 1, Vdcm: 1, Tdcm: 1 11:44:21 localhost kernel: LML33[0]: check_jpg_settings() - x: 0, y: 0, w: 720, y: 240 ## set -n 256 -b 1024 --file-flush 1 in lavrec just to see if it made any difference 11:44:21 localhost kernel: LML33[0]: BUZIOC_REQBUFS - count=256, size=1048576 11:44:21 localhost kernel: LML33[0]: jpg_fbuffer_alloc() - 16384 KB allocated 11:44:21 localhost kernel: LML33[0]: mmap(MJPEG) of 0x40ae5000-0x41ae5000 (size=16777216) 11:44:21 localhost kernel: LML33[0]: BUZIOC_QBUF_CAPT - frame=0 11:44:21 localhost kernel: LML33[0]: jpeg_codec_sleep() - wake GPIO=0xaf008888 11:44:21 localhost kernel: LML33[0]: enable_jpg(MOTION_COMPRESS) 11:44:21 localhost kernel: LML33[0]: jpeg_start 11:44:21 localhost kernel: LML33[0]: BUZIOC_QBUF_CAPT - frame=1 11:44:21 localhost kernel: LML33[0]: BUZIOC_QBUF_CAPT - frame=2 11:44:21 localhost kernel: LML33[0]: BUZIOC_QBUF_CAPT - frame=3 11:44:21 localhost kernel: LML33[0]: BUZIOC_QBUF_CAPT - frame=4 11:44:21 localhost kernel: LML33[0]: BUZIOC_QBUF_CAPT - frame=5 11:44:21 localhost kernel: LML33[0]: BUZIOC_QBUF_CAPT - frame=6 11:44:21 localhost kernel: LML33[0]: BUZIOC_QBUF_CAPT - frame=7 11:44:21 localhost kernel: LML33[0]: BUZIOC_QBUF_CAPT - frame=8 11:44:21 localhost kernel: LML33[0]: BUZIOC_QBUF_CAPT - frame=9 11:44:21 localhost kernel: LML33[0]: BUZIOC_QBUF_CAPT - frame=10 11:44:21 localhost kernel: LML33[0]: BUZIOC_QBUF_CAPT - frame=11 11:44:21 localhost kernel: LML33[0]: BUZIOC_QBUF_CAPT - frame=12 11:44:21 localhost kernel: LML33[0]: BUZIOC_QBUF_CAPT - frame=13 11:44:21 localhost kernel: LML33[0]: BUZIOC_QBUF_CAPT - frame=14 11:44:21 localhost kernel: LML33[0]: BUZIOC_QBUF_CAPT - frame=15 11:44:21 localhost kernel: LML33[0]: BUZIOC_QBUF_CAPT - frame=16 11:44:21 localhost kernel: LML33[0]: BUZIOC_QBUF_CAPT - frame=17 11:44:21 localhost kernel: LML33[0]: BUZIOC_QBUF_CAPT - frame=18 11:44:21 localhost kernel: LML33[0]: BUZIOC_QBUF_CAPT - frame=19 11:44:21 localhost kernel: LML33[0]: BUZIOC_QBUF_CAPT - frame=20 11:44:21 localhost kernel: LML33[0]: BUZIOC_QBUF_CAPT - frame=21 11:44:21 localhost kernel: LML33[0]: BUZIOC_QBUF_CAPT - frame=22 11:44:21 localhost kernel: LML33[0]: BUZIOC_QBUF_CAPT - frame=23 11:44:21 localhost kernel: LML33[0]: BUZIOC_QBUF_CAPT - frame=24 11:44:21 localhost kernel: LML33[0]: BUZIOC_QBUF_CAPT - frame=25 11:44:21 localhost kernel: LML33[0]: BUZIOC_QBUF_CAPT - frame=26 11:44:21 localhost kernel: LML33[0]: BUZIOC_QBUF_CAPT - frame=27 11:44:21 localhost kernel: LML33[0]: BUZIOC_QBUF_CAPT - frame=28 11:44:21 localhost kernel: LML33[0]: BUZIOC_QBUF_CAPT - frame=29 11:44:21 localhost kernel: LML33[0]: BUZIOC_QBUF_CAPT - frame=30 11:44:21 localhost kernel: LML33[0]: BUZIOC_QBUF_CAPT - frame=31 11:44:21 localhost kernel: LML33[0]: BUZIOC_SYNC ## seems to capture 32 frames (0-31), then start over. Is this normal for NTSC ?? 11:44:21 localhost kernel: zoran_irq: astat: 0x28000000, mask: 0x49000000 11:44:21 localhost kernel: LML33[0]: first frame ready: state=0x28000000 odd_even=1 field_per_buff=2 delay=1 11:44:21 localhost kernel: LML33[0]: stat_com=1000 queue_state=0/0/4/32 11:44:21 localhost kernel: LML33[0]: seq=0 stat_com: 03052c41 0bba9000 0c028000 0bf27000 11:44:21 localhost kernel: LML33[0]: BUZIOC_QBUF_CAPT - frame=0 11:44:21 localhost kernel: LML33[0]: BUZIOC_SYNC 11:44:21 localhost kernel: zoran_irq: astat: 0x28000000, mask: 0x49000000 11:44:21 localhost kernel: LML33[0]: seq=3 stat_com: 0bb26000 04054459 0c028000 0bf27000 11:44:21 localhost kernel: LML33[0]: BUZIOC_QBUF_CAPT - frame=1 11:44:21 localhost kernel: LML33[0]: BUZIOC_SYNC 11:44:21 localhost kernel: zoran_irq: astat: 0x28000000, mask: 0x49000000 11:44:21 localhost kernel: LML33[0]: seq=4 stat_com: 0bb26000 0baa5000 05054251 0bf27000 11:44:21 localhost kernel: LML33[0]: BUZIOC_QBUF_CAPT - frame=2 11:44:21 localhost kernel: LML33[0]: BUZIOC_SYNC 11:44:21 localhost kernel: zoran_irq: astat: 0x28000000, mask: 0x49000000 11:44:21 localhost kernel: LML33[0]: seq=5 stat_com: 0bb26000 0baa5000 0ba24000 060545e1 11:44:21 localhost kernel: LML33[0]: BUZIOC_QBUF_CAPT - frame=3 11:44:21 localhost kernel: LML33[0]: BUZIOC_SYNC 11:44:21 localhost kernel: zoran_irq: astat: 0x28000000, mask: 0x49000000 11:44:21 localhost kernel: LML33[0]: seq=6 stat_com: 070547c9 0baa5000 0ba24000 0b9a3000 11:44:21 localhost kernel: LML33[0]: BUZIOC_QBUF_CAPT - frame=4 11:44:21 localhost kernel: LML33[0]: BUZIOC_SYNC 11:44:21 localhost kernel: zoran_irq: astat: 0x28000000, mask: 0x49000000 11:44:21 localhost kernel: LML33[0]: seq=7 stat_com: 0b922000 08053a69 0ba24000 0b9a3000 ## last log of seq stat_com: ?? 11:44:21 localhost kernel: LML33[0]: BUZIOC_QBUF_CAPT - frame=5 11:44:21 localhost kernel: LML33[0]: BUZIOC_SYNC 11:44:21 localhost kernel: zoran_irq: astat: 0x28000000, mask: 0x49000000 11:44:21 localhost kernel: LML33[0]: BUZIOC_QBUF_CAPT - frame=6 11:44:21 localhost kernel: LML33[0]: BUZIOC_SYNC 11:44:21 localhost kernel: zoran_irq: astat: 0x28000000, mask: 0x49000000 11:44:21 localhost kernel: LML33[0]: BUZIOC_QBUF_CAPT - frame=7 11:44:21 localhost kernel: LML33[0]: BUZIOC_SYNC 11:44:21 localhost kernel: zoran_irq: astat: 0x28000000, mask: 0x49000000 11:44:21 localhost kernel: LML33[0]: BUZIOC_QBUF_CAPT - frame=8 11:44:21 localhost kernel: LML33[0]: BUZIOC_SYNC 11:44:21 localhost kernel: zoran_irq: astat: 0x28000000, mask: 0x49000000 11:44:21 localhost kernel: LML33[0]: BUZIOC_QBUF_CAPT - frame=9 11:44:21 localhost kernel: LML33[0]: BUZIOC_SYNC 11:44:21 localhost kernel: zoran_irq: astat: 0x28000000, mask: 0x49000000 11:44:21 localhost kernel: LML33[0]: BUZIOC_QBUF_CAPT - frame=10 11:44:21 localhost kernel: LML33[0]: BUZIOC_SYNC 11:44:21 localhost kernel: zoran_irq: astat: 0x28000000, mask: 0x49000000 11:44:21 localhost kernel: LML33[0]: BUZIOC_QBUF_CAPT - frame=11 11:44:21 localhost kernel: LML33[0]: BUZIOC_SYNC 11:44:21 localhost kernel: zoran_irq: astat: 0x28000000, mask: 0x49000000 11:44:21 localhost kernel: LML33[0]: BUZIOC_QBUF_CAPT - frame=12 11:44:21 localhost kernel: LML33[0]: BUZIOC_SYNC 11:44:21 localhost kernel: zoran_irq: astat: 0x28000000, mask: 0x49000000 11:44:21 localhost kernel: LML33[0]: BUZIOC_QBUF_CAPT - frame=13 11:44:21 localhost kernel: LML33[0]: BUZIOC_SYNC 11:44:21 localhost kernel: zoran_irq: astat: 0x28000000, mask: 0x49000000 11:44:21 localhost kernel: LML33[0]: BUZIOC_QBUF_CAPT - frame=14 11:44:21 localhost kernel: LML33[0]: BUZIOC_SYNC 11:44:21 localhost kernel: zoran_irq: astat: 0x28000000, mask: 0x49000000 11:44:21 localhost kernel: LML33[0]: BUZIOC_QBUF_CAPT - frame=15 11:44:21 localhost kernel: LML33[0]: BUZIOC_SYNC 11:44:21 localhost kernel: zoran_irq: astat: 0x28000000, mask: 0x49000000 11:44:21 localhost kernel: LML33[0]: BUZIOC_QBUF_CAPT - frame=16 11:44:21 localhost kernel: LML33[0]: BUZIOC_SYNC 11:44:21 localhost kernel: zoran_irq: astat: 0x28000000, mask: 0x49000000 11:44:21 localhost kernel: LML33[0]: BUZIOC_QBUF_CAPT - frame=17 11:44:21 localhost kernel: LML33[0]: BUZIOC_SYNC 11:44:21 localhost kernel: zoran_irq: astat: 0x28000000, mask: 0x49000000 11:44:21 localhost kernel: LML33[0]: BUZIOC_QBUF_CAPT - frame=18 11:44:21 localhost kernel: LML33[0]: BUZIOC_SYNC 11:44:21 localhost kernel: zoran_irq: astat: 0x28000000, mask: 0x49000000 11:44:21 localhost kernel: LML33[0]: BUZIOC_QBUF_CAPT - frame=19 11:44:21 localhost kernel: LML33[0]: BUZIOC_SYNC 11:44:21 localhost kernel: zoran_irq: astat: 0x28000000, mask: 0x49000000 11:44:21 localhost kernel: LML33[0]: BUZIOC_QBUF_CAPT - frame=20 11:44:21 localhost kernel: LML33[0]: BUZIOC_SYNC 11:44:22 localhost kernel: zoran_irq: astat: 0x28000000, mask: 0x49000000 11:44:22 localhost kernel: LML33[0]: BUZIOC_QBUF_CAPT - frame=21 11:44:22 localhost kernel: LML33[0]: BUZIOC_SYNC 11:44:22 localhost kernel: zoran_irq: astat: 0x28000000, mask: 0x49000000 11:44:22 localhost kernel: LML33[0]: BUZIOC_QBUF_CAPT - frame=22 11:44:22 localhost kernel: LML33[0]: BUZIOC_SYNC 11:44:22 localhost kernel: zoran_irq: astat: 0x28000000, mask: 0x49000000 11:44:22 localhost kernel: LML33[0]: BUZIOC_QBUF_CAPT - frame=23 11:44:22 localhost kernel: LML33[0]: BUZIOC_SYNC 11:44:22 localhost kernel: zoran_irq: astat: 0x28000000, mask: 0x49000000 11:44:22 localhost kernel: LML33[0]: BUZIOC_QBUF_CAPT - frame=24 11:44:22 localhost kernel: LML33[0]: BUZIOC_SYNC 11:44:22 localhost kernel: zoran_irq: astat: 0x28000000, mask: 0x49000000 11:44:22 localhost kernel: LML33[0]: BUZIOC_QBUF_CAPT - frame=25 11:44:22 localhost kernel: LML33[0]: BUZIOC_SYNC 11:44:22 localhost kernel: zoran_irq: astat: 0x28000000, mask: 0x49000000 11:44:22 localhost kernel: LML33[0]: BUZIOC_QBUF_CAPT - frame=26 11:44:22 localhost kernel: LML33[0]: BUZIOC_SYNC 11:44:22 localhost kernel: zoran_irq: astat: 0x28000000, mask: 0x49000000 11:44:22 localhost kernel: LML33[0]: BUZIOC_QBUF_CAPT - frame=27 11:44:22 localhost kernel: LML33[0]: BUZIOC_SYNC 11:44:22 localhost kernel: zoran_irq: astat: 0x28000000, mask: 0x49000000 11:44:22 localhost kernel: LML33[0]: BUZIOC_QBUF_CAPT - frame=28 11:44:22 localhost kernel: LML33[0]: BUZIOC_SYNC 11:44:22 localhost kernel: zoran_irq: astat: 0x28000000, mask: 0x49000000 11:44:22 localhost kernel: LML33[0]: BUZIOC_QBUF_CAPT - frame=29 11:44:22 localhost kernel: LML33[0]: BUZIOC_SYNC 11:44:22 localhost kernel: zoran_irq: astat: 0x28000000, mask: 0x49000000 11:44:22 localhost kernel: LML33[0]: BUZIOC_QBUF_CAPT - frame=30 11:44:22 localhost kernel: LML33[0]: BUZIOC_SYNC 11:44:22 localhost kernel: zoran_irq: astat: 0x28000000, mask: 0x49000000 11:44:22 localhost kernel: LML33[0]: BUZIOC_QBUF_CAPT - frame=31 11:44:22 localhost kernel: LML33[0]: BUZIOC_SYNC ## change in logging pattern ?? 11:45:06 localhost kernel: zoran_irq: astat: 0x28000000, mask: 0x49000000 11:45:06 localhost kernel: zoran_irq: astat: 0x28000000, mask: 0x49000000 11:45:06 localhost kernel: LML33[0]: BUZIOC_QBUF_CAPT - frame=17 11:45:06 localhost kernel: LML33[0]: BUZIOC_SYNC 11:45:06 localhost kernel: LML33[0]: BUZIOC_QBUF_CAPT - frame=18 11:45:06 localhost kernel: LML33[0]: BUZIOC_SYNC 11:45:06 localhost kernel: zoran_irq: astat: 0x28000000, mask: 0x49000000 11:45:06 localhost kernel: LML33[0]: BUZIOC_QBUF_CAPT - frame=19 11:45:06 localhost kernel: LML33[0]: BUZIOC_SYNC 11:45:06 localhost kernel: zoran_irq: astat: 0x28000000, mask: 0x49000000 11:45:06 localhost last message repeated 2 times 11:45:06 localhost kernel: LML33[0]: BUZIOC_QBUF_CAPT - frame=20 11:45:06 localhost kernel: LML33[0]: BUZIOC_SYNC 11:45:06 localhost kernel: LML33[0]: BUZIOC_QBUF_CAPT - frame=21 11:45:06 localhost kernel: LML33[0]: BUZIOC_SYNC 11:45:06 localhost kernel: LML33[0]: BUZIOC_QBUF_CAPT - frame=22 11:45:06 localhost kernel: LML33[0]: BUZIOC_SYNC 11:45:06 localhost kernel: zoran_irq: astat: 0x28000000, mask: 0x49000000 11:45:06 localhost kernel: LML33[0]: BUZIOC_QBUF_CAPT - frame=23 11:45:06 localhost kernel: LML33[0]: BUZIOC_SYNC ## keeps recording each frame but with hiccups in logging 11:45:18 localhost kernel: zoran_irq: astat: 0x28000000, mask: 0x49000000 11:45:18 localhost kernel: LML33[0]: BUZIOC_QBUF_CAPT - frame=28 11:45:18 localhost kernel: LML33[0]: BUZIOC_SYNC 11:45:18 localhost kernel: zoran_irq: astat: 0x28000000, mask: 0x49000000 11:45:18 localhost kernel: LML33[0]: BUZIOC_QBUF_CAPT - frame=29 11:45:18 localhost kernel: LML33[0]: BUZIOC_SYNC ## note 10 sec gap 11:45:28 localhost kernel: LML33[0]: jpg_sync() - timeout: codec isr=0x00 11:45:28 localhost kernel: LML33[0]: BUZIOC_QBUF_CAPT - frame=-1 11:45:28 localhost kernel: LML33[0]: jpeg_codec_sleep() - wake GPIO=0xaf008888 11:45:28 localhost kernel: LML33[0]: jpeg_codec_sleep() - sleep GPIO=0xad008888 11:45:28 localhost kernel: LML33[0]: enable_jpg(IDLE) 11:45:28 localhost kernel: LML33[0]: munmap(MJPEG) 11:45:28 localhost kernel: LML33[0]: zoran_close(lavrec, pid=[1633]), users(+)=1 11:45:28 localhost kernel: LML33[0]: jpg_fbuffer_free() 11:45:29 localhost kernel: LML33[0]: jpeg_codec_sleep() - wake GPIO=0xaf008888 11:45:29 localhost kernel: LML33[0]: jpeg_codec_sleep() - sleep GPIO=0xad008888 11:45:29 localhost kernel: LML33[0]: enable_jpg(IDLE) 11:45:29 localhost kernel: LML33[0]: interrupts received: GIRQ0:1726 JPEGRepIRQ:1726 JPEG delays: max=1 min=1 queue_state=1726/1726/1730/1758 11:45:29 localhost kernel: LML33[0]: zoran_close() done |