From owner-freebsd-multimedia@FreeBSD.ORG Thu May 15 17:17:43 2008 Return-Path: Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A5DEF1065678 for ; Thu, 15 May 2008 17:17:43 +0000 (UTC) (envelope-from aragon@phat.za.net) Received: from mail.geek.sh (decoder.geek.sh [196.36.198.81]) by mx1.freebsd.org (Postfix) with ESMTP id E36B68FC0A for ; Thu, 15 May 2008 17:17:42 +0000 (UTC) (envelope-from aragon@phat.za.net) Received: by mail.geek.sh (Postfix, from userid 1000) id 2F7BB24D22; Thu, 15 May 2008 19:17:41 +0200 (SAST) Date: Thu, 15 May 2008 19:17:41 +0200 From: Aragon Gouveia To: freebsd-multimedia@freebsd.org Message-ID: <20080515171741.GA7870@phat.za.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4i X-Operating-System: FreeBSD 4.10-RELEASE-p2 i386 Subject: Getting a WinTV PVR-350 working X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 15 May 2008 17:17:43 -0000 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 geek kernel: cxm0: mem 0xf4000000-0xf7ffffff irq 10 at device 4.0 on pci5 May 15 18:42:01 geek kernel: cxm_iic0: on cxm0 May 15 18:42:01 geek kernel: iicbb0: on cxm_iic0 May 15 18:42:01 geek kernel: iicbus0: on iicbb0 master-only May 15 18:42:01 geek kernel: iicbus0: at addr 0 May 15 18:42:01 geek kernel: iicbus0: at addr 0 May 15 18:42:01 geek kernel: cxm0: Philips FM1216ME MK3 tuner May 15 18:42:01 geek kernel: cxm0: SAA7115 rev 1 video decoder May 15 18:42:01 geek kernel: cxm0: MSP4418G-B3 audio decoder May 15 18:42:01 geek kernel: cxm0: IR Remote May 15 18:42:01 geek kernel: cxm0: [GIANT-LOCKED] May 15 18:42:01 geek kernel: cxm0: [ITHREAD] May 15 18:42:01 geek kernel: cxm0: encoder firmware version 0x2050032 May 15 18:42:01 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 geek kernel: cxm0: video decoder isn't locked May 15 18:45:10 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 geek kernel: cxm0: video decoder failed to lock May 15 18:44:35 geek kernel: cxm0: audio decoder failed to lock May 15 18:44:59 geek kernel: cxm0: video decoder failed to lock May 15 18:44:59 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