From owner-freebsd-multimedia@FreeBSD.ORG Mon Feb 5 11:25:59 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 1ACF616A4C7 for ; Mon, 5 Feb 2007 11:25:58 +0000 (UTC) (envelope-from usleepless@gmail.com) Received: from wr-out-0506.google.com (wr-out-0506.google.com [64.233.184.239]) by mx1.freebsd.org (Postfix) with ESMTP id A75DD13C4C7 for ; Mon, 5 Feb 2007 11:25:57 +0000 (UTC) (envelope-from usleepless@gmail.com) Received: by wr-out-0506.google.com with SMTP id 71so1242378wri for ; Mon, 05 Feb 2007 03:25:57 -0800 (PST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=QBOxcCEwYZZSMVeIm8MSx1oDLE1KxLHSv+KxRALPqMua0IbiRMx0gsTUWbX955r5yVMBZvSSTewUoq2vecZQWk/IFCiBwdfsxloxZ5obq3ZECdo47Z/Z/8QLAOFiwMrqqnEw0EO/S2MmnJzxhrqHnAMVvNQCGYa1AvFfnoxgvMM= Received: by 10.78.201.2 with SMTP id y2mr1059994huf.1170674755512; Mon, 05 Feb 2007 03:25:55 -0800 (PST) Received: by 10.78.121.6 with HTTP; Mon, 5 Feb 2007 03:25:55 -0800 (PST) Message-ID: Date: Mon, 5 Feb 2007 12:25:55 +0100 From: usleepless@gmail.com To: "Simon Thoustrup" In-Reply-To: <45C70562.5040308@thoustrup.dk> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <45B91790.9080206@thoustrup.dk> <200701281627.23403.josh@tcbug.org> <45C60C4D.7030500@thoustrup.dk> <45C70562.5040308@thoustrup.dk> Cc: freebsd-multimedia@freebsd.org 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: Mon, 05 Feb 2007 11:25:59 -0000 Simon, On 2/5/07, Simon Thoustrup wrote: > usleepless@gmail.com wrote: > >> 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 > >> 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? > # pvr250-setchannel -a on -m 4 231.25 > ioctl( tfd, BT848_GAUDIO ) failed.: Device not configured > ioctl( tfd, TVTUNER_SETTYPE ) failed.: Invalid argument > > # pvr250-setchannel -m 4 231.25 > ioctl( tfd, BT848_GAUDIO ) failed.: Device not configured > ioctl( tfd, TVTUNER_SETTYPE ) failed.: Invalid argument > > # pvr250-setchannel 231.25 > ioctl( tfd, BT848_GAUDIO ) failed.: Device not configured > > > # pvr250-setchannel -a on -m 4 11 > ioctl( tfd, BT848_GAUDIO ) failed.: Device not configured > ioctl( tfd, TVTUNER_SETTYPE ) failed.: Invalid argument > ioctl( tfd, TVTUNER_SETCHNL ) failed.: Invalid argument > > # pvr250-setchannel -m 4 11 > ioctl( tfd, BT848_GAUDIO ) failed.: Device not configured > ioctl( tfd, TVTUNER_SETTYPE ) failed.: Invalid argument > ioctl( tfd, TVTUNER_SETCHNL ) failed.: Invalid argument > > # pvr250-setchannel 11 > ioctl( tfd, BT848_GAUDIO ) failed.: Device not configured > ioctl( tfd, TVTUNER_SETCHNL ) failed.: Invalid argument > > As Dan also points out in his mail, I didn't expect pvr250-setchannel to > work as it should with the i2c bus not starting correctly, but tried it > out in case it was just a "print-error"/warning.. well, the error messages are a bit too "serious". not all is broken. i investigated and your tuner has is not configured for properly. i am working on a proper fix for it at the moment, but in the meantime, you could try: 1. edit cxm_tuner.c, find "TCL 2002N-6A" 2. change "CXM_TUNER_TV_SYSTEM_MN, cxm_none_system_code_style" into: "CXM_TUNER_TV_SYSTEM_MN | CXM_TUNER_TV_SYSTEM_BG | CXM_TUNER_TV_SYSTEM_DK, cxm_none_system_code_style" 3. recompile, reinstall and retry. 4. let me know. regards, usleep