From owner-freebsd-multimedia@FreeBSD.ORG Wed Feb 28 08:51:53 2007 Return-Path: X-Original-To: freebsd-multimedia@freebsd.org Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id BC43816A409 for ; Wed, 28 Feb 2007 08:51:53 +0000 (UTC) (envelope-from lirc@mikhailov.org) Received: from sccrmhc15.comcast.net (sccrmhc15.comcast.net [63.240.77.85]) by mx1.freebsd.org (Postfix) with ESMTP id 86AAF13C481 for ; Wed, 28 Feb 2007 08:51:53 +0000 (UTC) (envelope-from lirc@mikhailov.org) Received: from [10.0.0.20] (unknown[76.21.1.1]) by comcast.net (sccrmhc15) with ESMTP id <2007022808383901500j74u8e>; Wed, 28 Feb 2007 08:38:53 +0000 Message-ID: <45E53F89.70803@mikhailov.org> Date: Wed, 28 Feb 2007 00:38:33 -0800 From: Vadim Mikhailov User-Agent: Thunderbird 1.5.0.9 (Windows/20061207) MIME-Version: 1.0 To: freebsd-multimedia@freebsd.org References: <45E50C32.9090703@puresimplicity.net> In-Reply-To: <45E50C32.9090703@puresimplicity.net> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: matt@mattsteg.com Subject: Re: Problems with PVR 250 and MythTV 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: Wed, 28 Feb 2007 08:51:53 -0000 Matt Stegmeir wrote: > Joe. As far as I know no one has done the work to make the remote work > with lirc (but I may be wrong) > > This guy's code will show you if the remote hardware is working and > provide a starting point if you want to roll your own remote code. It > works with my pvr-350. > > http://www.arcknowledge.com/gmane.comp.hardware.lirc/2006-03/msg00018.html Yes, that was me - I made LIRC work with PVR350 on FreeBSD back in March 2006. I have never published my work because my approach was rather crude and remote was not very responsive - it used polling. You can get my old patched port here: http://mikhailov.org/files/lirc-0.7.2-cxm-patched-port.tar.gz I never got to create full patch against LIRC though, so use at your own risk. Few months ago I decided to stop fighting windmills and converted FreeBSD MythTV box to Linux, and boy, how much better experience it is! Everything just works out of the box - no patching of cxm driver to bring V4L2 ioctls, MythTV never crashes, tuner appears to get much better picture - I have no idea why. I love FreeBSD a lot, but in multimedia it lags behind Linux considerably. It's pleasure to see that you guys trying to change it to the better. Talking about REAL fix for PVR350 remote: I believe the only good solution to this is to enhance cxm kernel driver to create another device like /dev/cxmr0 (in addition to /dev/cxm0) for remote control, so select() on it could be used by LIRC and avoid polling. This will also make creating LIRC driver extremely simple. In fact, hw_cxm may become simplest driver of all LIRC drivers - almost all heavy lifting will happen in kernel. Actually, such heavy lifting is already done by bktr (and REMOTE_GETKEY ioctl can use it as is), it only needs to do it via device other than tuner device, and should support read() and select(). Good luck! Vadim Mikhailov