Getting a WinTV PVR-350 working

Aragon Gouveia aragon at phat.za.net
Thu May 15 17:17:43 UTC 2008


Hi,

I recently purchased a Hauppauge WinTV PVR-350 today.  I'm having difficulty
getting either the pvr250 or pvrxxx ports to work.

The pvr250 port compiled no problem, but it didn't support my 0x75 tuner code
out the box.  My tuner has "FM1216ME/I H-5" printed on it.  Closest I could
find to that in the driver was FM1216ME Mk3 so I added a case for 0x75 just
above 0x39 in cxm_eeprom.c and recompiled.

It now detects my tuner and the cxm driver attaches:

May 15 18:42:01 <kern.crit> geek kernel: cxm0: <Conexant iTVC15 MPEG Coder> mem 0xf4000000-0xf7ffffff irq 10 at device 4.0 on pci5
May 15 18:42:01 <kern.crit> geek kernel: cxm_iic0: <Conexant iTVC15 / iTVC16 I2C controller> on cxm0
May 15 18:42:01 <kern.crit> geek kernel: iicbb0: <I2C bit-banging driver> on cxm_iic0
May 15 18:42:01 <kern.crit> geek kernel: iicbus0: <Philips I2C bus> on iicbb0 master-only
May 15 18:42:01 <kern.crit> geek kernel: iicbus0: <unknown card> at addr 0
May 15 18:42:01 <kern.crit> geek kernel: iicbus0: <unknown card> at addr 0
May 15 18:42:01 <kern.crit> geek kernel: cxm0: Philips FM1216ME MK3 tuner
May 15 18:42:01 <kern.crit> geek kernel: cxm0: SAA7115 rev 1 video decoder
May 15 18:42:01 <kern.crit> geek kernel: cxm0: MSP4418G-B3 audio decoder
May 15 18:42:01 <kern.crit> geek kernel: cxm0: IR Remote
May 15 18:42:01 <kern.crit> geek kernel: cxm0: [GIANT-LOCKED]
May 15 18:42:01 <kern.crit> geek kernel: cxm0: [ITHREAD]
May 15 18:42:01 <kern.crit> geek kernel: cxm0: encoder firmware version 0x2050032
May 15 18:42:01 <kern.crit> geek kernel: cxm0: decoder firmware version 0x2020023

But I'm not able to read a video stream off it.  Trying to cat /dev/cxm0
causes these logged errors:

May 15 18:42:40 <kern.crit> geek kernel: cxm0: video decoder isn't locked
May 15 18:45:10 <kern.crit> geek kernel: cxm0: video decoder isn't locked

pvr250_setchannel fails to select any of the video inputs:

$ pvr250-setchannel -s   
ioctl( tfd, METEORSINPUT ) failed.: Invalid argument
$ pvr250-setchannel -c
ioctl( tfd, METEORSINPUT ) failed.: Invalid argument
$ pvr250-setchannel -r
$ pvr250-setchannel -t
ioctl( tfd, METEORSINPUT ) failed.: Invalid argument
$ pvr250-setchannel -r

and these errors are logged:

May 15 18:44:35 <kern.crit> geek kernel: cxm0: video decoder failed to lock
May 15 18:44:35 <kern.crit> geek kernel: cxm0: audio decoder failed to lock
May 15 18:44:59 <kern.crit> geek kernel: cxm0: video decoder failed to lock
May 15 18:44:59 <kern.crit> geek kernel: cxm0: audio decoder failed to lock


The pvrxxx port fails to compile.  The stock port asks for HcwMakoA.ROM from
the driver CD, but my CD only has HcwMakoB.ROM and HcwMakoC.ROM.

A pvrxxx port posted by usleepless in April last year (version 20070104)
bombs out during compile:

In file included from /usr/ports/multimedia/pvrxxx/work/modules/cxm/cxm/../../../dev/cxm/cxm.c:86:
../../../dev/cxm/cxm.h:228: error: array type has incomplete element type
In file included from ./v4l2_ioctl_hook.h:6,
                 from /usr/ports/multimedia/pvrxxx/work/modules/cxm/cxm/../../../dev/cxm/cxm.c:90:
./fbsd-compat.h:62:23: error: inttypes.h: No such file or directory
/usr/ports/multimedia/pvrxxx/work/modules/cxm/cxm/../../../dev/cxm/cxm.c: In function 'cxm_attach':
/usr/ports/multimedia/pvrxxx/work/modules/cxm/cxm/../../../dev/cxm/cxm.c:2013: warning: passing argument 4 of 'bus_setup_intr' from incompatible pointer type
/usr/ports/multimedia/pvrxxx/work/modules/cxm/cxm/../../../dev/cxm/cxm.c:2013: warning: passing argument 5 of 'bus_setup_intr' from incompatible pointer type
/usr/ports/multimedia/pvrxxx/work/modules/cxm/cxm/../../../dev/cxm/cxm.c:2013: error: too few arguments to function 'bus_setup_intr'
*** Error code 1

Stop in /usr/ports/multimedia/pvrxxx/work/modules/cxm/cxm.
*** Error code 1


I'm running 7.0-STABLE.  Anyone know how to get either port working?  Thanks
in advance!


Regards,
Aragon


More information about the freebsd-multimedia mailing list