Hi!

Since r3404 (ivtv-0.4 branch / DMA fix), I have the following problem: 
Every time I want to set a new channel (hmmm... I don't remember if I 
have tried to set the current channel again via ivtv-tune... will try 
tonight...) via mythtv or via ivtv-tune -c,  my PVR 350 (NTSC) output 
(/dev/video0 or the tuner?) hangs if the output/tuner is already in use. 
Here my step by step testcases:

~~~~~~~~~~~~~~~~~~~~~
Testcase 1 (no problem)
~~~~~~~~~~~~~~~~~~~~~
ivtv-tune -c (any channel)
/dev/video0: xxx MHz  (Signal Detected)
cat /dev/video0 > /tmp/test1.mpg (dump tuner output as expected)
ctrl+C
ivtv-tune -c (any other channel)
/dev/video0: zzz MHz  (Signal Detected)
cat /dev/video0 > /tmp/test2.mpg (dump tuner output as expected)
ctrl+C
etc...

~~~~~~~~~~~~~~~~~~~~~
Testcase 2 (to reproduce the bug)
~~~~~~~~~~~~~~~~~~~~~
ivtv-tune -c (any channel)
/dev/video0: xxx MHz  (Signal Detected)
cat /dev/video0 > /tmp/test3.mpg & (dump tuner output as expected in 
background)
ivtv-tune -c (any other channel)
/dev/video0: zzz MHz  (Signal Detected)
(no more output from /dev/video0)
kill %1 (kill my background process - cat /dev/video0)
cat /dev/video0 > /tmp/test4.mpg (create a empty file)
ctrl+C

I can recover by reloading the firmware (I have not tried other means, 
suggestion?)
ivtvctl -H
ioctl IVTV_IOC_RELOAD_FW ok

Conclusion: if /dev/video0 (or the tuner?) is already in use when I set 
a new channel, the output/tuner hangs for all revisions since r3404 (I 
use r3375 but suffer of DMA errors). I see nothing from ivtv in logs 
files... so if you want more details, please let me know how to proceed.

Below the INIT IVTV log (with r3482)...

BTW... the 0.4 branch at r3482 on the make command returns an error (my 
quick and dirty workaround was to comment the if(is_pal) and related PAL 
code in cx25840-vbi.c) ...

make
<snip>
cx25840-vbi.c: In function `cx25840_vbi':
cx25840-vbi.c:175: `is_pal' undeclared (first use in this function)
cx25840-vbi.c:175: (Each undeclared identifier is reported only once
cx25840-vbi.c:175: for each function it appears in.)
make[3]: *** [cx25840-vbi.o] Error 1
<snip>

Thanks a lot for your great work..!

Ben.



ivtv:  ==================== START INIT IVTV ====================
ivtv:  version 0.4.8 (development revision 3482M) loading
ivtv:  Linux version: 2.4.32
ivtv:  In case of problems please include the debug info between
ivtv:  the START INIT IVTV and END INIT IVTV lines, along with
ivtv:  any module options, when mailing the ivtv-users mailinglist.
ivtv0: Autodetected WinTV PVR 350 card (cx23415 based)
ivtv0: Unreasonably low latency timer, setting to 64 (was 48)
tuner (ivtv): chip found at addr 0xc2 i2c-bus ivtv i2c driver #0
ivtv0: i2c attach to card #0 ok [client=(tuner unset), addr=61]
i2c-core.o: client [(tuner unset)] registered to adapter [ivtv i2c 
driver #0](pos. 0).
saa7127 0-0044: ivtv driver
saa7127 0-0044: saa7129 found @ 0x88 (ivtv i2c driver #0)
ivtv0: i2c attach to card #0 ok [client=saa7127, addr=44]
i2c-core.o: client [saa7127] registered to adapter [ivtv i2c driver 
#0](pos. 1).
saa7115 0-0021: ivtv driver
saa7115 0-0021: saa7115 found @ 0x42 (ivtv i2c driver #0)
ivtv0: i2c attach to card #0 ok [client=saa7115, addr=21]
i2c-core.o: client [saa7115] registered to adapter [ivtv i2c driver 
#0](pos. 2).
msp3400 0-0040: ivtv driver
msp3400 0-0040: chip=MSP4448G-A2 +nicam +simple +simpler +radio mode=simpler
msp3400 0-0040: msp34xxg daemon started
ivtv0: i2c attach to card #0 ok [client=MSP4448G-A2, addr=40]
i2c-core.o: client [MSP4448G-A2] registered to adapter [ivtv i2c driver 
#0](pos. 3).
i2c-core.o: adapter ivtv i2c driver #0 registered as adapter 0.
i2c-core.o: driver tveeprom registered.
tveeprom: ivtv version
tveeprom: Hauppauge: model = 48132, rev = K268, serial# = 8376256
tveeprom: tuner = LG TAPE H001F MK3 (idx = 68, type = 47)
tveeprom: tuner fmt = NTSC(M) (eeprom = 0x08, v4l2 = 0x00001000)
tveeprom: audio processor = MSP4448 (type = 1b)
tveeprom: decoder processor = SAA7115 (type = 13)
ivtv0: i2c attach to card #0 ok [client=tveeprom, addr=50]
i2c-core.o: client [tveeprom] registered to adapter [ivtv i2c driver 
#0](pos. 4).
i2c-core.o: driver i2c tda9887 driver registered.
ivtv0: loaded /lib/modules/v4l-cx2341x-enc.fw firmware (262144 bytes)
ivtv0: loaded /lib/modules/v4l-cx2341x-dec.fw firmware (262144 bytes)
ivtv0: Encoder revision: 0x02050032
ivtv0: Decoder revision: 0x02020023
ivtv0: Allocate DMA encoder MPEG stream: 128 x 32768 buffers (4096KB total)
ivtv0: Allocate DMA encoder YUV stream: 194 x 10800 buffers (2048KB total)
ivtv0: Allocate DMA encoder VBI stream: 120 x 17472 buffers (2048KB total)
ivtv0: Allocate DMA encoder PCM audio stream: 455 x 4608 buffers (2048KB 
total)
ivtv0: Create encoder radio stream
ivtv0: Allocate DMA decoder MPEG stream: 16 x 65536 buffers (1024KB total)
ivtv0: Allocate DMA decoder VBI stream: 512 x 2048 buffers (1024KB total)
ivtv0: Create decoder VOUT stream
ivtv0: Allocate DMA decoder YUV stream: 24 x 43200 buffers (1024KB total)
ivtv0: loaded /lib/modules/v4l-cx2341x-init.mpg firmware (155648 bytes)
tuner: type set to 47 (LG NTSC (TAPE series)) by ivtv i2c driver #0
ivtv0: Initialized WinTV PVR 350, card #0
ivtv:  ====================  END INIT IVTV  ====================

/etc/modules.conf

# WinTV PVR 350
alias char-major-81 ivtv
alias char-major-81-0 ivtv
alias char-major-61 lirc_i2c

options ivtv
add below ivtv msp3400 saa7115 saa7127 tuner
add above ivtv lirc_dev lirc_i2c ivtv-fb


# uname -a
Linux nfty5600-02 2.4.32 #1 SMP Tue Jun 6 23:02:26 EDT 2006 i686 i686 
i386 GNU/Linux

_______________________________________________
ivtv-devel mailing list
[email protected]
http://ivtvdriver.org/mailman/listinfo/ivtv-devel

Reply via email to