From owner-freebsd-multimedia@FreeBSD.ORG Fri Apr 4 18:42:16 2008 Return-Path: Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 88E14106566C for ; Fri, 4 Apr 2008 18:42:16 +0000 (UTC) (envelope-from jeff@doeshosting.com) Received: from hemp.ircpimps.org (hemp.ircpimps.org [66.11.114.212]) by mx1.freebsd.org (Postfix) with ESMTP id 53AD28FC15 for ; Fri, 4 Apr 2008 18:42:16 +0000 (UTC) (envelope-from jeff@doeshosting.com) Received: (qmail 70592 invoked from network); 4 Apr 2008 10:41:32 -0800 Received: from you.cantbe.us (HELO ?127.0.0.1?) (jeff@doeshosting.com@8.10.120.61) by hemp.ircpimps.org with SMTP; 4 Apr 2008 10:41:32 -0800 Mime-Version: 1.0 (Apple Message framework v753) In-Reply-To: <20080403234507.GA143@keira.kiwi-computer.com> References: <200804020250.m322o2H0084089@freefall.freebsd.org> <988B4C30-C985-4194-AC0F-1C6A18AE3E0E@doeshosting.com> <84CC803B-5D7F-4633-9764-C0ACEAD12035@doeshosting.com> <20080403234507.GA143@keira.kiwi-computer.com> Message-Id: From: Jeff Date: Fri, 4 Apr 2008 14:41:48 -0400 To: freebsd-multimedia@freebsd.org X-Mailer: Apple Mail (2.753) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: Re: PVR-250 on freebsd 7.0-release 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 Apr 2008 18:42:16 -0000 On Apr 3, 2008, at 7:45 PM, Rick C. Petty wrote: > On Thu, Apr 03, 2008 at 06:54:12PM -0400, Jeff wrote: >> >> Yes, here is how that went: >> [root@nfs ~]# cat /dev/cxm0 > test.mpg >> cat: /dev/cxm0: Device not configured >> Apr 3 09:59:20 nfs kernel: cxm0: video decoder isn't locked >> >> I decided to run trace on pvr250-setchannel, >> >> ktrace pvr250-setchannel -g 720x480 -s >> kdump -f ktrace.out >> >> I believe this is the relevant part, but what it is saying and how to >> fix is over my head: >> >> 83386 pvr250-setchannel CALL open >> (0x804915a,O_RDONLY,0x804914f) >> 83386 pvr250-setchannel NAMI "/dev/cxm0" >> 83386 pvr250-setchannel RET open 3 >> 83386 pvr250-setchannel CALL ioctl(0x3,SERIAL_SETINVCLK,0xbfbfe8b4) >> 83386 pvr250-setchannel RET ioctl -1 errno 22 Invalid argument >> 83386 pvr250-setchannel CALL writev(0x2,0xbfbfe84c,0x4) >> 83386 pvr250-setchannel GIO fd 2 wrote 53 bytes >> "ioctl( tfd, METEORSINPUT ) failed.: Invalid argument > > Did you apply the iicbb patches to your kernel? My dump is similar > but the > call works: > > 11090 pvr250-setchannel NAMI "/dev/cxm0" > 11090 pvr250-setchannel RET open 3 > 11090 pvr250-setchannel CALL ioctl(0x3,SERIAL_SETINVCLK,0xbfbfea2c) > 11090 pvr250-setchannel RET ioctl 0 > 11090 pvr250-setchannel CALL ioctl(0x3,BT848_GAUDIO,0xbfbfea28) > 11090 pvr250-setchannel RET ioctl -1 errno 6 Device not configured > 11090 pvr250-setchannel CALL writev(0x2,0xbfbfe1b0,0x4) > 11090 pvr250-setchannel GIO fd 2 wrote 58 bytes > "ioctl( tfd, BT848_GAUDIO ) failed.: Device not configured > " > 11090 pvr250-setchannel RET writev 58/0x3a > 11090 pvr250-setchannel CALL ioctl(0x3,BT848_SCAPAREA,0xbfbfeb40) > 11090 pvr250-setchannel RET ioctl 0 > 11090 pvr250-setchannel CALL close(0x3) > 11090 pvr250-setchannel RET close 0 > 11090 pvr250-setchannel CALL exit(0x1) > [root@nfs /usr/ports/multimedia/pvr250]# make patch-iicbb /usr/src/sys/dev/iicbus/iicbb.c was already patched I just looked through the patch at pvr250/work//dev/cxm/Patch.iicbb- fbsd5 and the files it patched, all patches were done as the patch file says they should be. I do have the following in the kernel which I am currently running: # For my PVR-250 tv tuner device iicbus device iicbb Rick: Are you also using freebsd7?