Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#7 Dual PVR-250 MCE Capture from second card couse DMA problems

open
nobody
None
5
2004-07-16
2004-07-16
Wilhelm
No

Hi,

I have installed ivtv-0.1.10-pre2-ck99v and
ivtv-0.1.10-pre2-ck99y. Both detect both PVR 250 MCE
cards with no problem. One as /dev/video1 and the other
as /dev/video2. I can do ivtvctl commands to both with
out a problem. Below is the IVTV init from
/var/log/messeges. Card #1 works no probelm, but the
second card seems to have probelms. This is how I setup
for capture from the second card.

ivtvctl -d /dev/video2 -u 0x3000
ivtvctl -d /dev/video2 -p 4
ivtvctl -d /dev/video2 -f width=720,height=480
ivtvctl -d /dev/video2 -v input=3,output=1

when I do "cat /dev/video2 > test.mpg" the output to
/var/log/messeges is as follows.

Jul 15 21:40:30 mythtv kernel: ivtv: DMA/YUV type
0x00000001,Ysize 0x00054600,Yoffset 0x00306b00,UVsize 0x
0002a300,UVoffset 0x0036d600,PTS 0x000bb922c
Jul 15 21:40:30 mythtv kernel: ivtv: DMA/YUV type
0x00000001,Ysize 0x00054600,Yoffset 0x003a1700,UVsize 0x
0002a300,UVoffset 0x00408200,PTS 0x000bb9de8
Jul 15 21:40:30 mythtv kernel: ivtv: DMA/YUV type
0x00000001,Ysize 0x00054600,Yoffset 0x0043c300,UVsize 0x
0002a300,UVoffset 0x004a2e00,PTS 0x000bba9a4
...
...
many more of the same lines, then...
...
...
Jul 15 21:40:30 mythtv kernel: ivtv: needed 17 bufs for
stream 1, received 15 differ by (2) bufs
Jul 15 21:40:30 mythtv kernel: ivtv: SCHED: free_q: 0
elements
Jul 15 21:40:30 mythtv kernel: ivtv: SCHED: dma_q: 0
elements
Jul 15 21:40:30 mythtv kernel: ivtv: SCHED: full_q: 17
elements
Jul 15 21:40:30 mythtv kernel: ivtv: ENC: Buffer
Overflow, no free buffers!!!
Jul 15 21:40:30 mythtv kernel: ivtv: DMA/YUV type
0x00000001,Ysize 0x00054600,Yoffset 0x003a1700,UVsize 0x
0002a300,UVoffset 0x00408200,PTS 0x000bc2aac
Jul 15 21:40:30 mythtv kernel: ivtv: needed 17 bufs for
stream 1, received 15 differ by (2) bufs
Jul 15 21:40:30 mythtv kernel: ivtv: SCHED: free_q: 0
elements
Jul 15 21:40:30 mythtv kernel: ivtv: SCHED: dma_q: 0
elements
Jul 15 21:40:30 mythtv kernel: ivtv: SCHED: full_q: 17
elements
Jul 15 21:40:30 mythtv kernel: ivtv: ENC: Buffer
Overflow, no free buffers!!!
Jul 15 21:40:30 mythtv kernel: ivtv: DMA/YUV type
0x00000001,Ysize 0x00054600,Yoffset 0x003a1700,UVsize 0x
0002a300,UVoffset 0x00408200,PTS 0x000bc2aac
Jul 15 21:40:30 mythtv kernel: ivtv: needed 17 bufs for
stream 1, received 15 differ by (2) bufs
Jul 15 21:40:30 mythtv kernel: ivtv: SCHED: free_q: 0
elements
Jul 15 21:40:30 mythtv kernel: ivtv: SCHED: dma_q: 0
elements
Jul 15 21:40:30 mythtv kernel: ivtv: SCHED: full_q: 17
elements
Jul 15 21:40:30 mythtv kernel: ivtv: ENC: Buffer
Overflow, no free buffers!!!
Jul 15 21:40:30 mythtv kernel: ivtv: DMA/YUV type
0x00000001,Ysize 0x00054600,Yoffset 0x003a1700,UVsize 0x
0002a300,UVoffset 0x00408200,PTS 0x000bc2aac
Jul 15 21:40:30 mythtv kernel: ivtv: needed 17 bufs for
stream 1, received 15 differ by (2) bufs
...
...
many more of the same lines
...
...

Any Ideas? is it a set-up issue or a driver issue?

Thanks.

Wilhelm.

driver init follows:
Jul 15 21:38:12 mythtv kernel: ivtv:
==================== START INIT IVTV ====================
Jul 15 21:38:12 mythtv kernel: ivtv: version 0.1.10
(0.1.10pre2-ck99y) loading
Jul 15 21:38:12 mythtv kernel: ivtv: Linux version:
2.6.5-1.358-pcHDTV 686 REGPARM 4KSTACKS gcc-3.3
Jul 15 21:38:12 mythtv kernel: ivtv: In case of
problems please include the debug info
Jul 15 21:38:12 mythtv kernel: ivtv: between the START
INIT IVTV and END INIT IVTV lines when
Jul 15 21:38:12 mythtv kernel: ivtv: mailing the
ivtv-devel mailinglist.
Jul 15 21:38:12 mythtv kernel: ivtv: Autodetected WinTV
PVR 250 card
Jul 15 21:38:12 mythtv kernel: ivtv: Found an iTVC16
based chip
Jul 15 21:38:12 mythtv kernel: ivtv: pci: PCIBUS
detected device: 0x01e0 vendor: 0x10de
Jul 15 21:38:12 mythtv kernel: tuner: chip found at
addr 0xc2 i2c-bus ivtv i2c driver #0
Jul 15 21:38:12 mythtv kernel: ivtv: i2c attach
[client=(tuner unset),ok]
Jul 15 21:38:12 mythtv kernel: tveeprom: Hauppauge:
model = 32552, rev = B123, serial# = 7162933
Jul 15 21:38:12 mythtv kernel: tveeprom: tuner =
Philips FM1236 (idx = 23, type = 2)
Jul 15 21:38:12 mythtv kernel: tveeprom: tuner fmt =
NTSC(M) (eeprom = 0x08, v4l2 = 0x00001000)
Jul 15 21:38:12 mythtv kernel: tveeprom:
audio_processor = MSP3440 (type = 11)
Jul 15 21:38:12 mythtv kernel: ivtv: i2c attach
[client=tveeprom[3],ok]
Jul 15 21:38:12 mythtv kernel: saa7115: starting probe
for adapter ivtv i2c driver #0 (0x10005)
Jul 15 21:38:12 mythtv kernel: saa7115: detecting
saa7115 client on address 0x42
Jul 15 21:38:12 mythtv kernel: saa7115: writing init values
Jul 15 21:38:12 mythtv kernel: ivtv: i2c attach
[client=saa7115[2],ok]
Jul 15 21:38:12 mythtv kernel: saa7115: status: (1E)
0x95, (1F) 0xb1
Jul 15 21:38:12 mythtv kernel: msp34xx: ivtv version
Jul 15 21:38:12 mythtv kernel: msp34xx: init:
chip=MSP3448W-A2, has NICAM support, simple (D) mode,
simple
r (G) no-thread mode
Jul 15 21:38:12 mythtv kernel: msp34xx: $Id$ compiled
on: Jul 13 2004 01:26:25
Jul 15 21:38:12 mythtv kernel: ivtv: i2c attach
[client=MSP3448W-A2,ok]
Jul 15 21:38:12 mythtv kernel: ivtv: Tuner Type 2,
Tuner formats 0x00001000, Radio: yes, Model 0x00891493,
Revision 0x00000001
Jul 15 21:38:12 mythtv kernel: ivtv: NTSC tuner detected
Jul 15 21:38:12 mythtv kernel: ivtv: Radio detected
Jul 15 21:38:13 mythtv kernel: ivtv: Encoder revision:
0x02040011
Jul 15 21:38:13 mythtv kernel: ivtv: Configuring WinTV
PVR 250 card with 5 streams
Jul 15 21:38:13 mythtv kernel: ivtv: Create DMA stream
0 using 256 buffers of size 32768
Jul 15 21:38:13 mythtv kernel: ivtv: Create DMA stream
1 using 32 buffers of size 32768
Jul 15 21:38:13 mythtv kernel: ivtv: Create stream 2
using 64 buffers of size 52224
Jul 15 21:38:13 mythtv kernel: ivtv: Create DMA stream
3 using 32 buffers of size 32768
Jul 15 21:38:13 mythtv kernel: ivtv: Create stream 4
Jul 15 21:38:13 mythtv kernel: ivtv: Setting Tuner 2
Jul 15 21:38:13 mythtv kernel: tuner: type set to 2
(Philips NTSC (FI1236,FM1236 and compatibles)) by ivtv
i2c driver #0
Jul 15 21:38:13 mythtv kernel: ivtv: Setting audio
matrix to input 3, output 1
Jul 15 21:38:13 mythtv kernel: ivtv: Switching standard
to NTSC.
Jul 15 21:38:14 mythtv kernel: saa7115: decoder set
norm NTSC
Jul 15 21:38:14 mythtv kernel: saa7115: set audio: 0x01
Jul 15 21:38:14 mythtv kernel: ivtv: Initialized WinTV
PVR 250, card #0
Jul 15 21:38:14 mythtv kernel: ivtv: Autodetected WinTV
PVR 250 card
Jul 15 21:38:14 mythtv kernel: ivtv: Found an iTVC16
based chip
Jul 15 21:38:14 mythtv kernel: ivtv: pci: PCIBUS
detected device: 0x01e0 vendor: 0x10de
Jul 15 21:38:14 mythtv kernel: tuner: chip found at
addr 0xc2 i2c-bus ivtv i2c driver #1
Jul 15 21:38:14 mythtv kernel: ivtv: i2c attach
[client=(tuner unset),ok]
Jul 15 21:38:14 mythtv kernel: tveeprom: Hauppauge:
model = 32552, rev = C168, serial# = 7276130
Jul 15 21:38:14 mythtv kernel: tveeprom: tuner =
<unknown> (idx = 68, type = -1)
Jul 15 21:38:14 mythtv kernel: tveeprom: tuner fmt =
NTSC(M) (eeprom = 0x08, v4l2 = 0x00001000)
Jul 15 21:38:14 mythtv kernel: tveeprom:
audio_processor = MSP3440 (type = 11)
Jul 15 21:38:14 mythtv kernel: ivtv: i2c attach
[client=tveeprom[4],ok]
Jul 15 21:38:14 mythtv kernel: saa7115: starting probe
for adapter ivtv i2c driver #1 (0x10005)
Jul 15 21:38:14 mythtv kernel: saa7115: detecting
saa7115 client on address 0x42
Jul 15 21:38:14 mythtv kernel: saa7115: writing init values
Jul 15 21:38:14 mythtv kernel: ivtv: i2c attach
[client=saa7115[3],ok]
Jul 15 21:38:14 mythtv kernel: saa7115: status: (1E)
0x50, (1F) 0xc0
Jul 15 21:38:14 mythtv kernel: msp34xx: ivtv version
Jul 15 21:38:14 mythtv kernel: msp34xx: init:
chip=MSP3448W-B3, has NICAM support, simple (D) mode,
simple
r (G) no-thread mode
Jul 15 21:38:14 mythtv kernel: msp34xx: $Id$ compiled
on: Jul 13 2004 01:26:25
Jul 15 21:38:14 mythtv kernel: ivtv: i2c attach
[client=MSP3448W-B3,ok]
Jul 15 21:38:14 mythtv kernel: ivtv: Tuner Type -1,
Tuner formats 0x00001000, Radio: yes, Model 0x008d1598
, Revision 0x00000001
Jul 15 21:38:14 mythtv kernel: ivtv: NTSC tuner detected
Jul 15 21:38:14 mythtv kernel: ivtv: Radio detected
Jul 15 21:38:15 mythtv kernel: ivtv: Encoder revision:
0x02040011
Jul 15 21:38:15 mythtv kernel: ivtv: Configuring WinTV
PVR 250 card with 5 streams
Jul 15 21:38:15 mythtv kernel: ivtv: Create DMA stream
0 using 256 buffers of size 32768
Jul 15 21:38:15 mythtv kernel: ivtv: Create DMA stream
1 using 32 buffers of size 32768
Jul 15 21:38:15 mythtv kernel: ivtv: Create stream 2
using 64 buffers of size 52224
Jul 15 21:38:15 mythtv kernel: ivtv: Create DMA stream
3 using 32 buffers of size 32768
Jul 15 21:38:15 mythtv kernel: ivtv: Create stream 4
Jul 15 21:38:15 mythtv kernel: tuner: tuner type not set
Jul 15 21:38:15 mythtv kernel: ivtv: Setting audio
matrix to input 3, output 1
Jul 15 21:38:15 mythtv kernel: ivtv: Switching standard
to NTSC.
Jul 15 21:38:15 mythtv kernel: tuner: tuner type not set
Jul 15 21:38:16 mythtv kernel: saa7115: decoder set
norm NTSC
Jul 15 21:38:16 mythtv kernel: saa7115: set audio: 0x01
Jul 15 21:38:16 mythtv kernel: ivtv: Initialized WinTV
PVR 250, card #1
Jul 15 21:38:16 mythtv kernel: ivtv:
==================== END INIT IVTV ====================

Discussion