Date: Tue, 1 Feb 2011 14:01:25 +0100 From: Hans Petter Selasky <hselasky@freebsd.org> To: Juergen Lock <nox@jelal.kn-bremen.de> Cc: "freebsd-multimedia@freebsd.org" <freebsd-multimedia@freebsd.org> Subject: Re: New dvb-s2 tuner, and a hack to get remaining remotes working Message-ID: <201102011401.26024.hselasky@freebsd.org> In-Reply-To: <20110201123054.GA10962@triton8.kn-bremen.de> References: <201102011212.40488.hselasky@freebsd.org> <20110201123054.GA10962@triton8.kn-bremen.de>
next in thread | previous in thread | raw e-mail | index | archive | help
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; }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201102011401.26024.hselasky>