Re: [ivtv-devel] Problems with PVR500

2005-11-28 Thread Andrew Plumb
On 11/27/05, Christian Iversen [EMAIL PROTECTED] wrote:
On Sunday 27 November 2005 21:53, Andrew Plumb wrote: On 11/2/05, Christian Iversen [EMAIL PROTECTED] wrote:  On Tuesday 01 November 2005 18:10, Ray Lehtiniemi wrote:
   On Tue, Nov 01, 2005 at 03:39:55PM +0100, Christian Iversen wrote:On Sunday 30 October 2005 22:41, Christian Iversen wrote:   Can anybody help me here?
 well, drawing upon my 8 hours or so of experience with this card... :-)   Thank you so much for replying! I'll get back to you and Hans Verkuil  with more information about the problems, as soon as my exams are done
  (in a few  days) Hi Christian, Did you have any luck with this?I'm running into the same problem with a PVR500 and VIA EPIA VT-310DP (dual-proc mini-itx) in a 1U Travla C146 case
 (which comes with a dual-PCI riser card).No, sorry. I had to send the card back for a refund, because of all thistrouble. The shop sent me an email stating that they had sent the card backto the distributor, so it might actually have been broken. Seems odd with a
brand new card, though.Have you tried moving the card to another slot?
Thanks for the reply. Not yet, but before I do that I have a
spare PVR350 I'm going to try. The problem could be with the
riser card or the VT-310DP, so I'll start with the PVR350 plugged
directly into the VT-310DP, then into riser card, then the PVR500
direct.

But before I do any of that I'll have to reset the CMOS. I
accidently disabled the VGA output in BIOS last night. D'oh!

Andrew.
-- If you don't know what to do, do something.
___
ivtv-devel mailing list
ivtv-devel@ivtvdriver.org
http://ivtvdriver.org/mailman/listinfo/ivtv-devel

Re: [ivtv-devel] Problems with PVR500

2005-11-28 Thread Andrew Plumb
On 11/28/05, Andrew Plumb [EMAIL PROTECTED] wrote:

On 11/27/05, Christian Iversen [EMAIL PROTECTED]
 wrote:
On Sunday 27 November 2005 21:53, Andrew Plumb wrote:[deletia] Hi Christian, Did you have any luck with this?I'm running into the same problem with a PVR500 and VIA EPIA VT-310DP (dual-proc mini-itx) in a 1U Travla C146 case
 (which comes with a dual-PCI riser card).No, sorry. I had to send the card back for a refund, because of all thistrouble. The shop sent me an email stating that they had sent the card backto the distributor, so it might actually have been broken. Seems odd with a
brand new card, though.Have you tried moving the card to another slot?
Thanks for the reply. Not yet, but before I do that I have a
spare PVR350 I'm going to try. The problem could be with the
riser card or the VT-310DP, so I'll start with the PVR350 plugged
directly into the VT-310DP, then into riser card, then the PVR500
direct.

But before I do any of that I'll have to reset the CMOS. I
accidently disabled the VGA output in BIOS last night. D'oh!

Andrew.
...and the answer appears to be a little of all of the above.

I had seen a little PCI2 stencilled above one slot and assumed
I had put the card into PCI1, when in fact I had put it in
PCI3. Putting either the PCR350 or PVR500 in PCI2 works, but
can't have both cards in (one in each slot) at the same time.
There's a little jumper on the C146's dual-slot riser card, but
absolutely no documentation as to what it's supposed to do. The
default setting is AD30 (AD20-31 are the options). Some
alternate settings boot with two cards in place, others don't.
Adding a second jumper acts like a bad idea; HDD LED stays on wy
too long as you wait for bios setup prompt to come up - no damage
done. Might as well stick with the default.

Given the existance of active v.s. passive riser cards (see
http://mini-itx.com/store/?c=8#p1902) I suspect the C146 ships with a
passive and that's why I'm running into problems.

Unfortunately, the PVR500 board is a shade too long to use in the lower
PCI2 position in the C146 so I'm stuck using the PVR350 only.
Oh well, can't win 'em all!

Aside: IVTV 0.4.1 seems to initialize fine with either board (in
PCI2) as long as one remembers to copy firmware into the new
/lib/firmware location.

Andrew.
-- If you don't know what to do, do something.

___
ivtv-devel mailing list
ivtv-devel@ivtvdriver.org
http://ivtvdriver.org/mailman/listinfo/ivtv-devel

Re: [ivtv-devel] Problems with PVR500

2005-11-27 Thread Andrew Plumb
On 11/2/05, Christian Iversen [EMAIL PROTECTED] wrote:
On Tuesday 01 November 2005 18:10, Ray Lehtiniemi wrote: On Tue, Nov 01, 2005 at 03:39:55PM +0100, Christian Iversen wrote:  On Sunday 30 October 2005 22:41, Christian Iversen wrote:   Can anybody help me here?
 well, drawing upon my 8 hours or so of experience with this card... :-)Thank you so much for replying! I'll get back to you and Hans Verkuil withmore information about the problems, as soon as my exams are done (in a few
days)
Hi Christian,

Did you have any luck with this? I'm running into the same
problem with a PVR500 and VIA EPIA VT-310DP (dual-proc mini-itx) in a
1U Travla C146 case (which comes with a dual-PCI riser card).

Andrew.
-- If you don't know what to do, do something.
___
ivtv-devel mailing list
ivtv-devel@ivtvdriver.org
http://ivtvdriver.org/mailman/listinfo/ivtv-devel

Re: [ivtv-devel] Problems with PVR500

2005-11-02 Thread Christian Iversen
On Tuesday 01 November 2005 18:10, Ray Lehtiniemi wrote:
 On Tue, Nov 01, 2005 at 03:39:55PM +0100, Christian Iversen wrote:
  On Sunday 30 October 2005 22:41, Christian Iversen wrote:
 
  Can anybody help me here?

 well, drawing upon my 8 hours or so of experience with this card... :-)

Thank you so much for replying! I'll get back to you and Hans Verkuil with 
more information about the problems, as soon as my exams are done (in a few 
days)

-- 
Regards,
Christian Iversen

___
ivtv-devel mailing list
ivtv-devel@ivtvdriver.org
http://ivtvdriver.org/mailman/listinfo/ivtv-devel


Re: [ivtv-devel] Problems with PVR500

2005-11-01 Thread Christian Iversen
On Sunday 30 October 2005 22:41, Christian Iversen wrote:

Can anybody help me here?

 Hi all.

 I have a brand new PVR500 (MCE) card. I have some questions in this regard.
 Please, if you can answer even just one question, I would be very grateful
 if you would take the time to answer me. If something isn't completely
 clear, please let me know and I'll improve the description in any way
 needed.

 Information first, questions later:

 lspci gives:

 :02:08.0 Multimedia video controller: Internext Compression Inc iTVC16
 (CX23416) MPEG-2 Encoder (rev 01)
 :02:09.0 Multimedia video controller: Internext Compression Inc iTVC16
 (CX23416) MPEG-2 Encoder (rev 01)

 (any idea why the PVR is on :02, when _everything_ else is on :00
 ?)

 dmesg gives:

 --

 ivtv:   START INIT IVTV 
 ivtv:  version 0.4.0 (tagged release) loading
 ivtv:  Linux version: 2.6.13-zephyr preempt K7 REGPARM gcc-3.3
 ivtv:  In case of problems please include the debug info
 ivtv:  between the START INIT IVTV and END INIT IVTV lines when
 ivtv:  mailing the ivtv-devel mailinglist.
 ivtv0: Autodetected WinTV PVR 150 card (iTVC16 based)
 ACPI: PCI Interrupt :02:08.0[A] - GSI 18 (level, low) - IRQ 21
 tuner (ivtv): chip found at addr 0xc0 i2c-bus ivtv i2c driver #0
 TEA5767 detected.
 ivtv0: i2c attach to card #0 ok [client=(tuner unset), addr=60]
 tuner: type set to 62 (Philips TEA5767HN FM Radio) by autodetect
 type set to 62 (Philips TEA5767HN FM Radio)
 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]
 cx25840 1-0044: cx25843-23 found @ 0x88 (ivtv i2c driver #0)
 cx25840 1-0044: loaded /lib/modules/HcwMakoA.ROM firmware (14264 bytes)
 ivtv0: i2c attach to card #0 ok [client=cx25840, addr=44]
 wm8775 1-001b: chip found @ 0x36 (ivtv i2c driver #0)
 ivtv0: i2c attach to card #0 ok [client=wm8775, addr=1b]
 tda9885/6/7: (ivtv) chip found @ 0x86
 ivtv0: i2c attach to card #0 ok [client=tda9887, addr=43]
 tveeprom: Second (radio) tuner idx 101
 tveeprom: ivtv version
 tveeprom: Hauppauge: model = 23659, rev = D491, serial# = 8093206
 tveeprom: tuner = Philips FQ1216AME MK4 (idx = 91, type = 56)
 tveeprom: tuner fmt = PAL(B/G) PAL(I) SECAM(L/L') PAL(D/K) (eeprom = 0x74,
 v4l2 = 0x00400e17)
 tveeprom: audio processor = CX25843 (type = 25)
 tveeprom: decoder processor = CX25843 (type = 1e)
 ivtv0: i2c attach to card #0 ok [client=tveeprom, addr=50]
 ivtv0: This is the first unit of a PVR500
 ivtv0: Detected a TEA5767 radio tuner. Enabling radio support.
 cdrom: open failed.
 ivtv0: loading /lib/modules/ivtv-fw-enc.bin
 ivtv0 warning: Encoder mailbox not found
 ivtv0 warning: Decoder mailbox not found
 ivtv0: Error locating firmware.
 ivtv0: Error -12 on initialization
 ivtv-iTVC15_16_mpg2_encoder_card: probe of :02:08.0 failed with error
 -12 ivtv0: Autodetected WinTV PVR 150 card (iTVC16 based)
 ACPI: PCI Interrupt :02:09.0[A] - GSI 19 (level, low) - IRQ 17
 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]
 cx25840 1-0044: cx25843-23 found @ 0x88 (ivtv i2c driver #0)
 cdrom: open failed.
 cx25840 1-0044: loaded /lib/modules/HcwMakoA.ROM firmware (14264 bytes)
 ivtv0: i2c attach to card #0 ok [client=cx25840, addr=44]
 wm8775 1-001b: chip found @ 0x36 (ivtv i2c driver #0)
 ivtv0: i2c attach to card #0 ok [client=wm8775, addr=1b]
 tda9885/6/7: (ivtv) chip found @ 0x86
 ivtv0: i2c attach to card #0 ok [client=tda9887, addr=43]
 tveeprom: Second (radio) tuner idx 101
 tveeprom: ivtv version
 tveeprom: Hauppauge: model = 23659, rev = D491, serial# = 8093206
 tveeprom: tuner = Philips FQ1216AME MK4 (idx = 91, type = 56)
 tveeprom: tuner fmt = PAL(B/G) PAL(I) SECAM(L/L') PAL(D/K) (eeprom = 0x74,
 v4l2 = 0x00400e17)
 tveeprom: audio processor = CX25843 (type = 25)
 tveeprom: decoder processor = CX25843 (type = 1e)
 ivtv0: i2c attach to card #0 ok [client=tveeprom, addr=50]
 ivtv0: This is the second unit of a PVR500
 ivtv0: Correcting tveeprom data: no radio present on second unit
 ivtv0: loading /lib/modules/ivtv-fw-enc.bin
 ivtv0: Encoder revision: 0x02050032
 ivtv0: Allocate DMA encoder MPEG stream: 128 x 32768 buffers (4096KB total)
 ivtv0: Allocate DMA encoder YUV stream: 161 x 12960 buffers (2048KB total)
 ivtv0: Allocate DMA encoder VBI stream: 80 x 26208 buffers (2048KB total)
 ivtv0: Allocate DMA encoder PCM audio stream: 455 x 4608 buffers (2048KB
 total)
 tuner: type set to 56 (Philips PAL/SECAM multi (FQ1216AME MK4)) by ivtv i2c
 driver #0
 ivtv0: Initialized WinTV PVR 500 (unit #2), card #0
 ivtv:    END INIT IVTV  

 --

 these lines worry me:

 ivtv0 warning: Encoder mailbox not found
 ivtv0 warning: Decoder mailbox not found
 ivtv0: Error locating firmware.
 ivtv0: Error -12 on initialization
 ivtv-iTVC15_16_mpg2_encoder_card: probe of :02:08.0 failed 

Re: [ivtv-devel] Problems with PVR500

2005-11-01 Thread Ray Lehtiniemi
On Tue, Nov 01, 2005 at 03:39:55PM +0100, Christian Iversen wrote:
 On Sunday 30 October 2005 22:41, Christian Iversen wrote:
 
 Can anybody help me here?

well, drawing upon my 8 hours or so of experience with this card... :-)


  (any idea why the PVR is on :02, when _everything_ else is on :00
  ?)

i'd guess the card has it's own PCI-PCI bridge onboard?  'lspci -t' should
draw the two decoders on their own subtree if so.



  dmesg gives:
 
  --
 
  ivtv:   START INIT IVTV 
  ivtv:  version 0.4.0 (tagged release) loading
  ivtv:  Linux version: 2.6.13-zephyr preempt K7 REGPARM gcc-3.3
  ivtv:  In case of problems please include the debug info
  ivtv:  between the START INIT IVTV and END INIT IVTV lines when
  ivtv:  mailing the ivtv-devel mailinglist.
  ivtv0: Autodetected WinTV PVR 150 card (iTVC16 based)
  ACPI: PCI Interrupt :02:08.0[A] - GSI 18 (level, low) - IRQ 21
  tuner (ivtv): chip found at addr 0xc0 i2c-bus ivtv i2c driver #0
  TEA5767 detected.
  ivtv0: i2c attach to card #0 ok [client=(tuner unset), addr=60]
  tuner: type set to 62 (Philips TEA5767HN FM Radio) by autodetect
  type set to 62 (Philips TEA5767HN FM Radio)
  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]
  cx25840 1-0044: cx25843-23 found @ 0x88 (ivtv i2c driver #0)
  cx25840 1-0044: loaded /lib/modules/HcwMakoA.ROM firmware (14264 bytes)
  ivtv0: i2c attach to card #0 ok [client=cx25840, addr=44]
  wm8775 1-001b: chip found @ 0x36 (ivtv i2c driver #0)
  ivtv0: i2c attach to card #0 ok [client=wm8775, addr=1b]
  tda9885/6/7: (ivtv) chip found @ 0x86
  ivtv0: i2c attach to card #0 ok [client=tda9887, addr=43]
  tveeprom: Second (radio) tuner idx 101
  tveeprom: ivtv version
  tveeprom: Hauppauge: model = 23659, rev = D491, serial# = 8093206
  tveeprom: tuner = Philips FQ1216AME MK4 (idx = 91, type = 56)
  tveeprom: tuner fmt = PAL(B/G) PAL(I) SECAM(L/L') PAL(D/K) (eeprom = 0x74,

mine come up NTSC, since i'm in NA.



  v4l2 = 0x00400e17)
  tveeprom: audio processor = CX25843 (type = 25)
  tveeprom: decoder processor = CX25843 (type = 1e)
  ivtv0: i2c attach to card #0 ok [client=tveeprom, addr=50]
  ivtv0: This is the first unit of a PVR500
  ivtv0: Detected a TEA5767 radio tuner. Enabling radio support.
  cdrom: open failed.

i don't recall seeing cdrom output in my dmesg, but i'm away from my machine
and working from memory here...


  ivtv0: loading /lib/modules/ivtv-fw-enc.bin
  ivtv0 warning: Encoder mailbox not found
  ivtv0 warning: Decoder mailbox not found
  ivtv0: Error locating firmware.
  ivtv0: Error -12 on initialization
  ivtv-iTVC15_16_mpg2_encoder_card: probe of :02:08.0 failed with error

it's interesting that the HcwMakoA loaded, but not the encoder are the
file permissions/ownership the same on each file?

try throwing a copy of fw-enc into /lib/firmware as well... maybe it's
getting confused about the hardcoded vs. fwloader paths?




  -12 ivtv0: Autodetected WinTV PVR 150 card (iTVC16 based)

everything below this is prefixed with ivtv0, probably because of the
failed fw-enc load.  on mine, the enc firmware loads, and everything
below is prefixed with ivtv1.



  ACPI: PCI Interrupt :02:09.0[A] - GSI 19 (level, low) - IRQ 17
  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]
  cx25840 1-0044: cx25843-23 found @ 0x88 (ivtv i2c driver #0)
  cdrom: open failed.
  cx25840 1-0044: loaded /lib/modules/HcwMakoA.ROM firmware (14264 bytes)
  ivtv0: i2c attach to card #0 ok [client=cx25840, addr=44]
  wm8775 1-001b: chip found @ 0x36 (ivtv i2c driver #0)
  ivtv0: i2c attach to card #0 ok [client=wm8775, addr=1b]
  tda9885/6/7: (ivtv) chip found @ 0x86
  ivtv0: i2c attach to card #0 ok [client=tda9887, addr=43]
  tveeprom: Second (radio) tuner idx 101
  tveeprom: ivtv version
  tveeprom: Hauppauge: model = 23659, rev = D491, serial# = 8093206
  tveeprom: tuner = Philips FQ1216AME MK4 (idx = 91, type = 56)
  tveeprom: tuner fmt = PAL(B/G) PAL(I) SECAM(L/L') PAL(D/K) (eeprom = 0x74,
  v4l2 = 0x00400e17)
  tveeprom: audio processor = CX25843 (type = 25)
  tveeprom: decoder processor = CX25843 (type = 1e)
  ivtv0: i2c attach to card #0 ok [client=tveeprom, addr=50]
  ivtv0: This is the second unit of a PVR500
  ivtv0: Correcting tveeprom data: no radio present on second unit
  ivtv0: loading /lib/modules/ivtv-fw-enc.bin

and yet here, the fw loads!  not at all sure why this one would work, but the
first time it fails!


  ivtv0: Encoder revision: 0x02050032
  ivtv0: Allocate DMA encoder MPEG stream: 128 x 32768 buffers (4096KB total)
  ivtv0: Allocate DMA encoder YUV stream: 161 x 12960 buffers (2048KB total)
  ivtv0: Allocate DMA encoder VBI stream: 80 x 26208 buffers (2048KB total)
  ivtv0: Allocate DMA encoder PCM audio stream: 455 x 4608 buffers (2048KB
  total)
  tuner: type set 

Re: [ivtv-devel] Problems with PVR500

2005-11-01 Thread Hans Verkuil
On Sunday 30 October 2005 22:41, Christian Iversen wrote:
 Hi all.

 I have a brand new PVR500 (MCE) card. I have some questions in this
 regard. Please, if you can answer even just one question, I would be
 very grateful if you would take the time to answer me. If something
 isn't completely clear, please let me know and I'll improve the
 description in any way needed.

 Information first, questions later:

 lspci gives:

 :02:08.0 Multimedia video controller: Internext Compression Inc
 iTVC16 (CX23416) MPEG-2 Encoder (rev 01)
 :02:09.0 Multimedia video controller: Internext Compression Inc
 iTVC16 (CX23416) MPEG-2 Encoder (rev 01)

 (any idea why the PVR is on :02, when _everything_ else is on
 :00 ?)

These PVR500 cards have some sort of internal PCI bridge because it is 
really two PCI cards on one single PCI board.


 dmesg gives:

snip


 these lines worry me:

 ivtv0 warning: Encoder mailbox not found
 ivtv0 warning: Decoder mailbox not found
 ivtv0: Error locating firmware.
 ivtv0: Error -12 on initialization
 ivtv-iTVC15_16_mpg2_encoder_card: probe of :02:08.0 failed with
 error -12

Me too. The first unit can read the firmware but when the driver looks 
for a specific magic number (the mailbox address) it cannot find it. 
The same action works fine for the other unit. I recommend that you try 
to test this PVR500 card in a Windows PC. If I had to hazard a guess 
I'd say that the memory to which the firmware is uploaded is possibly 
broken.

 it seems that something fails, yet I can still watch television on at
 least one head. But maybe this error message is not the real problem?

 firmware md5:
 3a4803384f749d644ee1f1ca9dcb12fa  /lib/modules/HcwMakoA.ROM
 5f5fa240ada73c3565f5f7de4c7b5138  /lib/modules/ivtv-fw-enc.bin



 1) Is there any important difference between the regular version and
 the MCE version? - i.e, are they both supported?

both are supported.


 2) Shouldn't the two heads on the PVR500 register as video0 and
 video1? I currently only get video0 (+ 24/32)

Yes, but the first unit cannot be initialized and so does not appear.


 3) Is it possible to use one or both heads as plain YUV grabbers? Is
 that what video24/32 is for? I can't get it to work. Here's how it
 fails:

 ioctl(6, VIDIOC_REQBUFS or VT_DISALLOCATE, 0xbfb841d0) = -1 EINVAL
 (Invalid argument)

 (I get now that video24 has RAW audio. But what's video32 for then?)

video32 is for raw YUV but the V4L buffer API (VIDIOC_REQBUFS) is not 
implemented. 

 4) How come the card seems to stop or go into some kind of idle
 mode when not used for a while? For instance, if I haven't watched
 anything on it in a days time or so, I can do this:

 $ ivtv-tune -f831.25
 /dev/video0: 831.250 MHz

 No signal it seems. Indeed, mplayer /dev/video0 gives 100% black
 frames, without sound. If I do

 # modprobe -r ivtv  modprobe ivtv
 $ ivtv-tune -f831.25
 /dev/video0: 831.250 MHz  (Signal Detected)

 It reports that there IS a signal on the very same frequency, and
 mplayer gives a pretty good picture with sound and perfect sync.

 Isn't that some kind of error?

Never seen this before. Can someone reproduce this?

I don't know enough to answer the remaining two questions, so I leave 
them to someone else.

Hans

 5) What are the possibilities for using transcode to further compress
 the stream, perhaps into mpeg4? I'm having trouble finding an input
 plugin that can grok the video and audio delivered by the PVR500
 card.

 6) Is it correct that the DNR filter either does nothing much if
 dnr_temporal is low, or creates weird artefacts if dnr_temporal is
 high? Shouldn't it do some sort of smoothing?

 Thanks for reading the whole mail :-)

___
ivtv-devel mailing list
ivtv-devel@ivtvdriver.org
http://ivtvdriver.org/mailman/listinfo/ivtv-devel