From owner-freebsd-multimedia@FreeBSD.ORG Tue Feb 1 13:01:25 2011 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 6D838106564A for ; Tue, 1 Feb 2011 13:01:25 +0000 (UTC) (envelope-from hselasky@freebsd.org) Received: from swip.net (mailfe07.c2i.net [212.247.154.194]) by mx1.freebsd.org (Postfix) with ESMTP id EFBD68FC08 for ; Tue, 1 Feb 2011 13:01:24 +0000 (UTC) X-Cloudmark-Score: 0.000000 [] X-Cloudmark-Analysis: v=1.1 cv=118a5bn0tGnRZbUa9ClBty6BTuM1bA5mUZqmf2RHYp4= c=1 sm=1 a=qO45us2aTv8A:10 a=N659UExz7-8A:10 a=CL8lFSKtTFcA:10 a=i9M/sDlu2rpZ9XS819oYzg==:17 a=VE1mWGqVxsXeHqV8T9MA:9 a=EoInkP08hcVZ7cG-HywA:7 a=_ga9uBJp8RRr7rGnotpCTB9MjawA:4 a=pILNOxqGKmIA:10 a=T2aOlJTp339uduyS:21 a=z1nHle4aP59GBr4B:21 a=i9M/sDlu2rpZ9XS819oYzg==:117 Received: from [188.126.198.129] (account mc467741@c2i.net HELO laptop002.hselasky.homeunix.org) by mailfe07.swip.net (CommuniGate Pro SMTP 5.2.19) with ESMTPA id 82027578; Tue, 01 Feb 2011 14:01:22 +0100 Received-SPF: softfail receiver=mailfe07.swip.net; client-ip=188.126.198.129; envelope-from=hselasky@freebsd.org From: Hans Petter Selasky To: Juergen Lock Date: Tue, 1 Feb 2011 14:01:25 +0100 User-Agent: KMail/1.13.5 (FreeBSD/8.2-PRERELEASE; KDE/4.4.5; amd64; ; ) References: <201102011212.40488.hselasky@freebsd.org> <20110201123054.GA10962@triton8.kn-bremen.de> In-Reply-To: <20110201123054.GA10962@triton8.kn-bremen.de> X-Face: *nPdTl_}RuAI6^PVpA02T?$%Xa^>@hE0uyUIoiha$pC:9TVgl.Oq, NwSZ4V"|LR.+tj}g5 %V,x^qOs~mnU3]Gn; cQLv&.N>TrxmSFf+p6(30a/{)KUU!s}w\IhQBj}[g}bj0I3^glmC( :AuzV9:.hESm-x4h240C`9=w MIME-Version: 1.0 Content-Type: Text/Plain; charset="windows-1252" Content-Transfer-Encoding: 7bit Message-Id: <201102011401.26024.hselasky@freebsd.org> Cc: "freebsd-multimedia@freebsd.org" Subject: Re: New dvb-s2 tuner, and a hack to get remaining remotes working 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, 01 Feb 2011 13:01:25 -0000 On Tuesday 01 February 2011 13:30:54 Juergen Lock wrote: > On Tue, Feb 01, 2011 at 12:12:40PM +0100, Hans Petter Selasky wrote: > > On Tuesday 01 February 2011 12:08:40 Juergen Lock wrote: > > > F_SETFL > > > > Try to change FIONBIO with F_SETFL in the patch. > > Turns out FIONBIO was correct but I had to allow for FIOASYNC too: Hi, Add some printouts in "v4l-dvb/linux/drivers/media/IR/lirc_dev.c" to see if this function returns any error codes due to a read of 3 bytes. --HPS ssize_t lirc_dev_fop_read(struct file *file, char *buffer, size_t length, loff_t *ppos) { struct irctl *ir = irctls[iminor(file->f_dentry->d_inode)]; unsigned char buf[ir->chunk_size]; int ret = 0, written = 0; DECLARE_WAITQUEUE(wait, current); dev_dbg(ir->d.dev, LOGHEAD "read called\n", ir->d.name, ir->d.minor); if (mutex_lock_interruptible(&ir->irctl_lock)) return -ERESTARTSYS; if (!ir->attached) { mutex_unlock(&ir->irctl_lock); return -ENODEV; } if (length % ir->chunk_size) { dev_dbg(ir->d.dev, LOGHEAD "read result = -EINVAL\n", ir->d.name, ir->d.minor); mutex_unlock(&ir->irctl_lock); return -EINVAL; }