From owner-freebsd-multimedia@FreeBSD.ORG Tue Mar 2 09:59:42 2010 Return-Path: Delivered-To: multimedia@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A3986106566B; Tue, 2 Mar 2010 09:59:42 +0000 (UTC) (envelope-from Joerg.Pulz@frm2.tum.de) Received: from mailhost.frm2.tum.de (mailhost.frm2.tum.de [129.187.179.12]) by mx1.freebsd.org (Postfix) with ESMTP id 13CAA8FC0C; Tue, 2 Mar 2010 09:59:41 +0000 (UTC) Received: from mailhost.frm2.tum.de (localhost [127.0.0.1]) by mailhost.frm2.tum.de (8.14.3/8.14.3) with ESMTP id o229ZiEG003760; Tue, 2 Mar 2010 10:35:44 +0100 (CET) (envelope-from jpulz@frm2.tum.de) X-Virus-Scanned: at mailhost.frm2.tum.de Received: from hades.admin.frm2 (hades.admin.frm2 [172.25.1.10]) by mailhost.frm2.tum.de (8.14.3/8.14.3) with ESMTP id o229ZdOt003756 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Tue, 2 Mar 2010 10:35:39 +0100 (CET) (envelope-from jpulz@frm2.tum.de) Received: from hades.admin.frm2 (localhost [127.0.0.1]) by hades.admin.frm2 (8.14.3/8.14.3) with ESMTP id o229ZdmQ058530; Tue, 2 Mar 2010 10:35:39 +0100 (CET) (envelope-from jpulz@frm2.tum.de) Received: (from jpulz@localhost) by hades.admin.frm2 (8.14.3/8.14.3/Submit) id o229ZdH0058529; Tue, 2 Mar 2010 10:35:39 +0100 (CET) (envelope-from jpulz) Date: Tue, 2 Mar 2010 10:35:36 +0100 (CET) From: Joerg Pulz To: multimedia@freebsd.org Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; format=flowed; charset=US-ASCII X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.2.3 (mailhost.frm2.tum.de [129.187.179.12]); Tue, 02 Mar 2010 10:35:39 +0100 (CET) Cc: Hans Petter Selasky Subject: Cuse4BSD + Webcamd + FE_GET_EVENT ioctl 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: Tue, 02 Mar 2010 09:59:42 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Dear Hans, first i want to thank you again for your hard work and your continuing fast support. I think i discoverd a problem with my siano based DVB-T stick together with Cuse4BSD and Webcamd while using VDR (http://www.tvdr.de/). VDR is using a thread for tuning to new frequencies on channel change when neccessary. This thread makes use of the FE_GET_EVENT ioctl on the frontend device to continuously empty the frontend event queue. It makes no further use of the received events it just emties the queue. As i had a problem to switch to channels with a frequency different than the one the first channel at VDR startup is on i digged deeper to find the cause. For now, i'm at the point where i can say that the thread simply hangs at the second or third FE_GET_EVENT ioctl and never returns from there. If i just comment out the FE_GET_EVENT ioctl line in VDR it works normal but i'm not sure what happens to the device when the frontend event queue reaches the maximum number of events (8 events if i got it right) and overflows. Maybe you can have a look at dvb_frontend_get_event() in v4l-dvb/linux/drivers/media/dvb/dvb-core/dvb_frontend.c to see if there is anything that blocks the ioctl forever. Or you can give me a hint how i can debug this part by myself. Thanks and kind regards Joerg - -- The beginning is the most important part of the work. -Plato -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.14 (FreeBSD) iD8DBQFLjNvrSPOsGF+KA+MRAj3QAJ0dHjRXUnqdHfnOftTv0JpNEXKBEgCgzlW2 Nn6YNCn9JVIx3GI2VfiXHbY= =VQRu -----END PGP SIGNATURE-----