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

Juergen Lock nox at jelal.kn-bremen.de
Tue Feb 1 12:51:02 UTC 2011


On Tue, Feb 01, 2011 at 01:30:54PM +0100, 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:
>[...]

> That allowed the ioctl to complete and irrecord to wait for the
> first button press, but then select() seems to misbehave:  (I get an
> endless loop of "Really read -1 bytes from '/dev/lirc0', expected 3"
> until I hit ^c.)
> 
> [...]
>  10950 irrecord CALL  select(0x5,0x7fffffffe5d0,0,0,0x7fffffffe650)
>  10950 irrecord RET   select 1
>  10950 irrecord CALL  read(0x4,0x7fffffffe660,0x3)
>  10950 irrecord RET   read -1 errno 22 Invalid argument

Actually probably not select() but the read() itself, if it would
be select()'s fault alone the read() would more likely return
EAGAIN instead of EINVAL...

	Juergen


More information about the freebsd-multimedia mailing list