From owner-freebsd-multimedia@FreeBSD.ORG Fri Nov 4 19:37:47 2005 Return-Path: X-Original-To: freebsd-multimedia@freebsd.org 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 803CF16A424 for ; Fri, 4 Nov 2005 19:37:47 +0000 (GMT) (envelope-from bseib@purdue.edu) Received: from exchange.purdue.edu (1061exfe03.adpc.purdue.edu [128.210.63.225]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4850F43D68 for ; Fri, 4 Nov 2005 19:37:44 +0000 (GMT) (envelope-from bseib@purdue.edu) Received: from EXCH02.purdue.lcl ([128.210.63.235]) by exchange.purdue.edu with Microsoft SMTPSVC(6.0.3790.211); Fri, 4 Nov 2005 14:37:39 -0500 X-MimeOLE: Produced By Microsoft Exchange V6.5.7226.0 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Date: Fri, 4 Nov 2005 14:37:37 -0500 Message-ID: <80021DB9CA5EA04C8A6FBB918788EBDD02AEC478@EXCH02.purdue.lcl> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Troubleshooting cxm driver with Hauppauge 250 Thread-Index: AcXhdu/IFxDXXgGySNCwBSpAiqqjyg== From: "Seib, Broc" To: X-OriginalArrivalTime: 04 Nov 2005 19:37:39.0209 (UTC) FILETIME=[371F6790:01C5E177] Cc: Subject: Troubleshooting cxm driver with Hauppauge 250 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: Fri, 04 Nov 2005 19:37:47 -0000 Hi all, I recently discovered the cxm driver, so I moved my Hauppauge 250 tuner card to my FreeBSD 5.3 box (yay!). I built and installed the driver parts and it *almost* works, but produces empty mpg files. (BTW, this card has worked under KnoppMyth and WinXP in the past.) The console logs show successful loading of things: cxm0: mem 0xf0000000-0xf3ffffff irq 21 at device 9.0 on pci1 cxm_iic0: on cxm0 iicbb0: on cxm_iic0 iicbus0: on iicbb0 master-only cxm0: Temic 4036 FY5 tuner cxm0: SAA7115 rev 1 video decoder cxm0: MSP4448G-A2 audio decoder cxm0: IR Remote cxm0: encoder firmware version 0x2050032 I can use 'setchannel -t ' to successfully tune in a channel. (I even added some debug lines to the driver to prove this is working. Plus setchannel correctly fails when I unhook my coax line...) But when I do a 'cat /dev/cxm0 > testit.mpg' I get a zero length file. And when I interrupt this process I get (after the expected 1000ms delay) a message "cxm0: missing encoder EOS". I have debugged this enough to think that the firmware command (0x81) to "begin capture" has been properly issued, but cxm_intr() is never called thereafter. So the driver patiently sits there in tsleep (as "cmxrd") waiting for its buffer to fill, but nothing ever comes. Anyone have any tips where/how to pursue debugging this? -broc