From owner-freebsd-multimedia@FreeBSD.ORG Sun Apr 24 15:44:34 2005 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 F238516A4CE for ; Sun, 24 Apr 2005 15:44:33 +0000 (GMT) Received: from wproxy.gmail.com (wproxy.gmail.com [64.233.184.193]) by mx1.FreeBSD.org (Postfix) with ESMTP id 24D9643D46 for ; Sun, 24 Apr 2005 15:44:33 +0000 (GMT) (envelope-from cronopiolopez@gmail.com) Received: by wproxy.gmail.com with SMTP id 69so1060040wra for ; Sun, 24 Apr 2005 08:44:29 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:in-reply-to:mime-version:content-type:references; b=hi5+Skky3ZqYDtoHlcRla9Cxfnvo87Cuv0MbAa0UjyoqdJcLP674SIA6WtKnzKD1B+ZTfX6bIVFL7sQv+A4VX4Iqyyghp0RhaPSNo/sCmAMK/nRd0LwjT3iD1NU9g/q9VIUtYRz0V6trIxNAvwtLT3RPqGHNj8SXcOSrAkaKxIU= Received: by 10.54.10.67 with SMTP id 67mr1467430wrj; Sun, 24 Apr 2005 08:44:29 -0700 (PDT) Received: by 10.54.32.71 with HTTP; Sun, 24 Apr 2005 08:44:29 -0700 (PDT) Message-ID: <8f8eb53e0504240844220ea350@mail.gmail.com> Date: Sun, 24 Apr 2005 17:44:29 +0200 From: =?ISO-8859-1?Q?Lluis_L=F3pez?= To: freebsd-multimedia@freebsd.org In-Reply-To: <426B4876.6020307@elischer.org> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_536_15114077.1114357469568" References: <20050423225506.GA25461@puff.jakemsr.gom> <426B23BA.6060206@elischer.org> <20050424052941.GA3339@puff.jakemsr.gom> <426B4876.6020307@elischer.org> X-Content-Filtered-By: Mailman/MimeDel 2.1.1 Subject: Re: patch for bktr(4): don't reset tuner on open/close X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: =?ISO-8859-1?Q?Lluis_L=F3pez?= List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 24 Apr 2005 15:44:34 -0000 ------=_Part_536_15114077.1114357469568 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On 4/24/05, Julian Elischer wrote: > > Luis L=F3pez Sol=E9, and Tomomi Suzuki are apparently active in this fiel= d > and Stacey Son has been mentionned similarly. Answer for alusions. My work (see attach) is a port to Hauppauge pvr250/350 of work make by Tomomi Suzuki. His work is more card dependent and only work with YUAN and IO-DATA cards. This cards have more capabilities don't supported by Hauppauge cards (Ghost reducer chip, YC/3D audio and support for other devices like saa7173 video decoder and new two audio chips). Ported features are: - complete encoder interface, new (and more completed) video controls and v4l2 interface. The new controls and all ioctl interface (except v4l2) are tuned via /dev/cxm0.ctl device. - A GUI application for control all this (see in tools/cxm_controler/readme.txt in source), this allows live time switching channels, inputs or profile encoder types (only between profiles with the same resolution). -Some addeds for me: some new profiles in codec_profiles, this are based in stream types of ivtv.h, but values are me decision and accept suggestions for correct values. Two new sysctl's for fix tuner and audio chip, but I think don't work properly (need some help in tuner and audio loads). This driver is tested in my home machine. This have a pvr250 rev2 and pvr350 rev1 in both seems work well. In v4l2 question. In code (see cxm_ioctl and cxm.c -starts on line 5866-) seems this takes a Mike Son v4l2 interface wtih some addeds. This have a v4l2 interface mapped on /dev/cxm0.v4l2 device, you can enable this via sysctl command: # sysctl -w hw.cxm0.tuner.v4l2_crtl=3D1 I don't have time for testing this issues but # file -s /dev/cxm0.v4l2 reports: /dev/cxm0.v4l2: MPEG system stream data. The great problem is that all aplications don't enable v4l interface because don't find apropiate header files in path. If somebody wants to test this driver follow the next steps: 1. You need a cxm driver working on your machine. For security reason you want backup your old modules in /boot/kernel.old/ and (if yuo have) coment lines cxm_iic_load=3D"YES" cxm_load=3D"YES" in your loader.conf 2. More warnings. If you have a kernel with: device smbus device smb device iic device iicsmb Coment this lines and recompiles and loads a new kernel (if take this option backup of modules are automatic). If not, if some of devices isn't supported expects hangs and dirty reboots. In this case (or if simple don't work) you can send me a dmesg -a|grep cxm and pciconf -lv output of the old driver (multimedia/pvr250) and If I can, add support for you. In this moment only PHILIPS FQ1216ME and Microtune 4049 FM5 are unsupported. Finally if all works you can uncomment this lines and recompile again. 3. Compile and test: # cd /tmp #tar zxvf /path/to/ivtv4bsd-alpha.tar.gz #cd ivtv4bsd/ #make #cp modules/cxm/cxm/cxm.ko modules/cxm/cxm_iic/cxm_iic.ko /boot/kernel/ #kldunload cxm #kldunload cxm_iic #kldload cxm_iic #kldload cxm And next type dmesg|grep cxm and you see something like this: cxm0: mem 0xd8000000-0xdbffffff irq 18 at device 2.0 on pci2 cxm0: pcib2: device cxm0 requested decoded memory range 0xd8000000-0xdbffffff cxm_iic0: on cxm0 iicbb0: on cxm_iic0 cxm0: Philips FM1216 tuner cxm0: SAA7115 rev 1 video decoder cxm0: MSP4418G-A2 audio decoder cxm0: IR Remote cxm0: [GIANT-LOCKED] cxm0: encoder firmware version 0x2040024 cxm0: decoder firmware version 0x2020023 cxm1: mem 0xd4000000-0xd7ffffff irq 19 at device 3.0 on pci2 cxm1: pcib2: device cxm1 requested decoded memory range 0xd4000000-0xd7ffffff cxm_iic1: on cxm1 iicbb1: on cxm_iic1 cxm1: Philips FM1216 tuner cxm1: SAA7115 rev 1 video decoder cxm1: MSP4418G-A2 audio decoder cxm1: IR Remote cxm1: [GIANT-LOCKED] 4. Applications. cd to tools directory and type make. Only cxm_ctl, cxm_show_props and probe_saa7115 works for Hauppage. After you can cd to cxm_controler directory and see readme.txt (cxm_controler needs gtk2 libs). LAST NOTES 1. Problems with NICAM supports. I need remove NICAM audio support in cxm_audio.c, if not live switch between channels don't works properly and all tuner stations don't have sound. When removes NICAM supports all works properly, but some channels don't have sound (for exemple 37 in bg pal standard). 2. The Default profile is dvd_s1_pal. You can change this via cxm_ctl or via cxm_controler. This profile specs: 720x576 res. 4 Mb/s video bitrate and 384 kb/s Layer II mp2 audio. 3. Number of channels of tuners needs a revision. I put 1 to 125 but I'm sure this aren't correct values. And last. I'm not a programmer only a librarian formed via RTFM and this works for me but i'm not sure if works for you. I only promise my limitaded help. Test with care. Luis L=F3pez Sol=E9. ------=_Part_536_15114077.1114357469568--