From owner-freebsd-multimedia Sat Mar 22 17:06:36 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id RAA12489 for multimedia-outgoing; Sat, 22 Mar 1997 17:06:36 -0800 (PST) Received: from whqvax.picker.com (whqvax.picker.com [144.54.1.1]) by freefall.freebsd.org (8.8.5/8.8.5) with SMTP id RAA12483 for ; Sat, 22 Mar 1997 17:06:29 -0800 (PST) Received: from ct.picker.com by whqvax.picker.com with SMTP; Sat, 22 Mar 1997 20:05:26 -0500 (EST) Received: from elmer.ct.picker.com ([144.54.57.34]) by ct.picker.com (4.1/SMI-4.1) id AA26018; Sat, 22 Mar 97 20:05:24 EST Received: by elmer.ct.picker.com (SMI-8.6/SMI-SVR4) id UAA13861; Sat, 22 Mar 1997 20:02:37 -0500 Message-Id: <19970322200237.25382@ct.picker.com> Date: Sat, 22 Mar 1997 20:02:37 -0500 From: Randall Hopper To: Amancio Hasty Cc: Steve Passe , multimedia@freebsd.org Subject: CAP_SINGLE tsleep failure (was Re: bt848 video losing sync) References: <19970322191331.35902@ct.picker.com> <199703230029.QAA00429@rah.star-gate.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.65 In-Reply-To: <199703230029.QAA00429@rah.star-gate.com>; from Amancio Hasty on Sat, Mar 22, 1997 at 04:29:18PM -0800 Sender: owner-multimedia@freebsd.org X-Loop: FreeBSD.org Precedence: bulk Amancio Hasty: |From The Desk Of Randall Hopper : |> I don't know if anyone else sees this, but when starting and stopping the |> video on the tuner, every so often (very rarely) it'll sputter, lose |> vertical sync, slip down to 2 or 3 frames a second for a second or two, and |> then just freeze with the VBI band right in the middle of the window. | |Write an ioctl or somehow trigger in the driver printing the status |registers in bktr_intr. That will give us a clue as to what is going on. Ok. Will do. BTW, hadn't checked the console in a while. I notice that I'm getting a single tsleep error from the CAP_SINGLE ioctl code each time I freeze the video. Here's all values represented in the console buffer now: bktr0: ioctl: tsleep error -1 2c0f24 bktr0: ioctl: tsleep error -1 1000f24 bktr0: ioctl: tsleep error -1 1000754 bktr0: ioctl: tsleep error -1 2c0754 bktr0: ioctl: tsleep error -1 1000624 bktr0: ioctl: tsleep error -1 2c0624 error=tsleep((caddr_t)bktr, METPRI, "capturing", hz); Since this is an ERESTART error (METPRI has PCATCH), is the right fix for this to change this line to: while ((error=tsleep((caddr_t)bktr, METPRI, "capturing", hz)) == ERESTART) ; Sounds like this may be related to my seeing the video not capture both frames on a CAP_SINGLE. Randall