From owner-freebsd-multimedia@FreeBSD.ORG Sun Feb 4 23:27:24 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 D0E3116A400 for ; Sun, 4 Feb 2007 23:27:23 +0000 (UTC) (envelope-from danny@ricin.com) Received: from smtpq2.tilbu1.nb.home.nl (smtpq2.tilbu1.nb.home.nl [213.51.146.201]) by mx1.freebsd.org (Postfix) with ESMTP id 6B38613C471 for ; Sun, 4 Feb 2007 23:27:23 +0000 (UTC) (envelope-from danny@ricin.com) Received: from [213.51.146.188] (port=54767 helo=smtp3.tilbu1.nb.home.nl) by smtpq2.tilbu1.nb.home.nl with esmtp (Exim 4.30) id 1HDqAz-00024r-IU; Sun, 04 Feb 2007 23:49:37 +0100 Received: from cp464173-a.dbsch1.nb.home.nl ([84.27.221.74]:59396 helo=desktop.homenet) by smtp3.tilbu1.nb.home.nl with esmtp (Exim 4.30) id 1HDqAu-0006Yk-PY; Sun, 04 Feb 2007 23:49:32 +0100 From: Danny Pansters To: freebsd-multimedia@freebsd.org Date: Sun, 4 Feb 2007 23:49:21 +0100 User-Agent: KMail/1.9.5 References: <45B91790.9080206@thoustrup.dk> <45C60C4D.7030500@thoustrup.dk> In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200702042349.22010.danny@ricin.com> X-AtHome-MailScanner-Information: Please contact support@home.nl for more information X-AtHome-MailScanner: Found to be clean Cc: Simon Thoustrup Subject: Re: Tuner code 0x71 for Hauppauge PVR-150 (pvrxxx) 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: Sun, 04 Feb 2007 23:27:24 -0000 On Sunday 04 February 2007 23:03, usleepless@gmail.com wrote: > Simon, > > On 2/4/07, Simon Thoustrup wrote: > > Josh Paetzel skrev: > > > Heh, nasty little bugger to get working isn't it? > > > > It sure is.. :) > > > > > Took me the better part of 24 hours to make mine go. > > > You have the right tuner code, the problem lies elsewhere. > > > The size of the firmware image is wired into one of the > > > files, and it's wrong for the PVR-150. In: > > > > > > work/modules/cxm/cxm/fbsd-compat.c: > > > > > > You will find: > > > > > > int request_firmware(void **fw, char *file, int dummy) > > > { static struct firmware thef; > > > *fw = &thef; > > > thef.data=cx25840_fw; > > > thef.size = 14264; > > > return 0; } > > > > > > thef.size needs to be changed to 16382 and you need to recompile. > > > > Done that. > > > > It takes a lot longer to load the cxm module now, but I still get: > > > > kernel: cxm0: mem 0xd0000000-0xd3ffffff irq > > 9 at device 13.0 on pci0 > > kernel: cxm_iic0: on cxm0 > > kernel: iicbb0: on cxm_iic0 > > kernel: iicbus0: on iicbb0 master-only > > kernel: tuner code 113 > > kernel: tuner_type = 20 > > kernel: cxm0: TCL 2002N-6A tuner > > kernel: <2>cxm 0-0000: loaded /lib/modules/v4l-cx25840.fw firmware > > (16382 bytes) > > kernel: <2>cxm debug 0-0000: decoder set input (0) > > kernel: <2>cxm debug 0-0000: now setting Tuner input > > kernel: <2>cxm debug 0-0000: set audio input (0) > > kernel: <2>cxm debug 0-0000: set audio input (0) > > kernel: cxm0: Eeprom PAL > > kernel: <2>tda 0-0000: switching to v4l2 > > kernel: <2>tda 0-0000: configure for: PAL-BG > > kernel: <2>tda 0-0000: writing: b=0xd4 c=0x70 e=0x09 > > kernel: could not start iic bus ^^^^^^^^^^^^^ It can't init the (programmable) IF thus it can't tune. I don't have a pvr and am not very familiar with v4l2 and not at all with this port, but this is a common tuner thing. At this stage carrier frequencies and the like get set depending on if you have PAL B/G or I, etc. If that fails it won't be able to tune or to get an image (carrier frequencies etc). I have similar code (only on the iic device rather than iicbb) in kbtv for tuning SAA based TV cards (analog). Maybe there's a device permission problem where the user may not write to the iic device(s)? Or (but then the port/code has a problem I'd reckon) you need to reset the bus (before start) or it doesn't have proper tda support at all. Was reading this thread, thought at least I could point to the place where things go wrong. HTH, Dan > > kernel: probed 54 > > kernel: probed 136 > > kernel: probed 160 > > kernel: probed 194 > > kernel: probed 224 > > kernel: probed 226 > > kernel: probed 228 > > kernel: probed 230 > > kernel: <2>tda 0-0000: i2c i/o error: rc == 2 (should be 4) > > kernel: read error > > kernel: <2>tda 0-0000: i2c i/o error: rc == -597317209 (should be 1) > > kernel: <2>tda 0-0000: read: 0x 0 > > kernel: <2>tda 0-0000: after power on : no > > kernel: <2>tda 0-0000: afc : - 12.5 kHz > > kernel: <2>tda 0-0000: fmif level : low > > kernel: <2>tda 0-0000: afc window : out > > kernel: <2>tda 0-0000: vfi level : low > > kernel: <2>cxm 0-0000: Video signal: not present > > kernel: <2>cxm 0-0000: Detected format: NTSC-M > > kernel: <2>cxm 0-0000: Detected audio mode: forced mode > > kernel: <2>cxm 0-0000: Detected audio standard: forced audio standard > > kernel: <2>cxm 0-0000: Audio muted: no > > kernel: <2>cxm 0-0000: Audio microcontroller: running > > kernel: <2>cxm 0-0000: Configured audio standard: A2-BG > > kernel: <2>cxm 0-0000: Configured audio mode: undefined > > kernel: <2>cxm 0-0000: Specified standard: PAL-BDGHI > > kernel: <2>cxm 0-0000: Specified input: Tuner > > kernel: <2>cxm 0-0000: Specified audio input: Tuner > > kernel: <2>cxm 0-0000: Specified audioclock freq: 48 kHz > > kernel: <2>cxm 0-0000: Preferred audio mode: stereo > > kernel: <2>cxm 0-0000: Selected 65 MHz format: system DK > > kernel: <2>cxm 0-0000: Selected 45 MHz format: chroma > > kernel: cxm0: [GIANT-LOCKED] > > bsd kernel: cxm0: encoder firmware version 0x2050032 > > > > - and still the same error messages when trying pvr250-setchannel: > > > > ioctl( tfd, BT848_GAUDIO ) failed.: Device not configured > > ioctl( tfd, TVTUNER_SETTYPE ) failed.: Invalid argument > > what are the exact parameters you are supplying to pvr250-setchannel? > > regards, > > usleep > _______________________________________________ > 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"