From owner-freebsd-multimedia@FreeBSD.ORG Sun Mar 21 14:18:49 2004 Return-Path: Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7B05D16A4CE for ; Sun, 21 Mar 2004 14:18:49 -0800 (PST) Received: from teena.dahlen.ws (h96n2fls33o990.telia.com [213.67.6.96]) by mx1.FreeBSD.org (Postfix) with ESMTP id 87FB043D2D for ; Sun, 21 Mar 2004 14:18:48 -0800 (PST) (envelope-from andreas@dahlen.ws) Received: from mikaela (mikaela.dahlen.ws [10.0.1.100]) by teena.dahlen.ws (8.12.9p2/8.12.8) with ESMTP id i2LMIrKL071291 for ; Sun, 21 Mar 2004 23:18:53 +0100 (CET) (envelope-from andreas@dahlen.ws) From: =?iso-8859-1?Q?Andreas_Dahl=E9n?= To: Date: Sun, 21 Mar 2004 23:17:00 +0100 Message-ID: <005401c40f92$3b0f0b20$6401000a@mikaela> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.4024 Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 In-Reply-To: <405DA3E1.2070805@navab.net> X-AntiVirus: checked by AntiVir Milter 1.0.6; AVE 6.24.0.7; VDF 6.24.0.64 Subject: RE: Hauppauge WinTV PVR 250 for FreeBSD 5.2 X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 21 Mar 2004 22:18:49 -0000 Hi! I got the same problem, i.e. loading of the driver (LG Innotek tuner) works fine, but when I try to do "cat /dev/cxm0 > file.mpeg", I get the same error; "cat: /dev/cxm0: Device not configured" and dmesg says "cxm0: video decoder isn't locked". I investigated it a bit further and found that it is the function "cxm_saa7115_detected_fps" in cxm_video.c that the error is raised. /Andreas -----Original Message----- From: owner-freebsd-multimedia@freebsd.org [mailto:owner-freebsd-multimedia@freebsd.org] On Behalf Of u431839553@navab.net Sent: den 21 mars 2004 15:17 To: freebsd-multimedia@freebsd.org Subject: Re: Hauppauge WinTV PVR 250 for FreeBSD 5.2 FreeBSD 5.2-RELEASE #0: Sun Jan 11 04:21:45 GMT 2004 root@wv1u.btc.adaptec.com:/usr/obj/usr/src/sys/GENERIC Followed the steps, the patch rejected: iicbb.c.rej: *************** *** 340,344 **** } DRIVER_MODULE(iicbb, bti2c, iicbb_driver, iicbb_devclass, 0, 0); DRIVER_MODULE(iicbb, lpbb, iicbb_driver, iicbb_devclass, 0, 0); DRIVER_MODULE(iicbb, viapm, iicbb_driver, iicbb_devclass, 0, 0); --- 361,366 ---- } DRIVER_MODULE(iicbb, bti2c, iicbb_driver, iicbb_devclass, 0, 0); + DRIVER_MODULE(iicbb, cxm_iic, iicbb_driver, iicbb_devclass, 0, 0); DRIVER_MODULE(iicbb, lpbb, iicbb_driver, iicbb_devclass, 0, 0); DRIVER_MODULE(iicbb, viapm, iicbb_driver, iicbb_devclass, 0, 0); I replaced the three DRIVER_MODULE lines in iicbb.c with the four DRIVER_MODULE lines from iicbb.c.rej, did the cxm_extract_fm stuff, rebuilt the kernel etc. When I load the modules, I get: cxm0: mem 0xc8000000-0xcbffffff irq 21 at device 11.0 on pci3 cxm_iic0: on cxm0 iicbb0: on cxm_iic0 iicbus0: on iicbb0 master-only cxm0: LG Innotek TPI8PSB11D tuner cxm0: SAA7115 rev 1 video decoder cxm0: MSP3415G-B8 audio decoder cxm0: IR Remote cxm0: encoder firmware version 0x2040011 No decoder firmware version. When I try cat /dev/cxm0 > file.mpg I get "cat: /dev/cxm0: Device not configured" and dmesg says "cxm0: video decoder isn't locked". From my Linux box: tvee: Hauppauge: model=32034, rev=B148, serial#=6914446 tvee: tuner=LG TP18PSB11D (idx=48, type=29) tvee: tuner fmt=PAL(B/G) (eeprom=0x04, v4l2=0x00000007) tvee: audio_processor=MSP3415 (type=6) >[ This is the Mar 20, 2004 snapshot of my source tree. Included are > changes to support some more ioctls and various PAL tuners. ] > >To use the Hauppauge PVR-250 / 350 on FreeBSD 4.9 / 5.2: > > 1) Use patch to apply Patch.iicbb so cxm can use the i2c bus and > avoid a crash when unloading. > > 2) Unshar the enclosed archive into /sys. > > 3) Place a current version of hcwpvrp2.sys from the > Hauppauge drivers into /sys/dev/cxm. Extract the > the firmware by: > > # cd /sys/dev/cxm > # cc -o cxm_extract_fw cxm_extract_fw.c > # ./cxm_extract_fw hcwpvrp2.sys > > 4) Rebuilt your kernel with: > > device iicbus > device iicbb > > as part of the configuration. > > 5) Install the new kernel and reboot. > > 6) Make and install the cxm driver by: > > # cd /sys/modules/cxm > # make > # cp cxm/cxm.ko cxm_iic/cxm_iic.ko /modules > # kldload cxm_iic > # kldload cxm > > At which point your console should say something like: > > cxm0: mem 0xd8000000-0xdbffffff irq 12 > at device 10 .0 on pci0 > cxm_iic0: on cxm0 > iicbb0: on cxm_iic0 > cxm0: Philips FI1236 MK2 tuner > cxm0: SAA7115 rev 1 video decoder > cxm0: MSP3435G-B6 audio decoder > cxm0: IR Remote > cxm0: encoder firmware version 0x2040011 > cxm0: decoder firmware version 0x2020023 > _______________________________________________ freebsd-multimedia@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-multimedia To unsubscribe, send any mail to "freebsd-multimedia-unsubscribe@freebsd.org"