New dvb-s2 tuner, and a hack to get remaining remotes working

Hans Petter Selasky hselasky at freebsd.org
Tue Feb 1 13:01:25 UTC 2011


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;
        }


More information about the freebsd-multimedia mailing list