Re: [PATCH v2 01/25] media: lirc: implement scancode sending

2017-10-09 Thread Hans Verkuil
On 09/10/17 17:11, Sean Young wrote: > On Mon, Oct 09, 2017 at 11:14:28AM +0200, Hans Verkuil wrote: >> On 05/10/17 10:45, Sean Young wrote: > -snip- >>> +/* >>> + * struct lirc_scancode - decoded scancode with protocol for use with >>> + * LIRC_MODE_SCANCODE >>> + * >>> + * @timestamp: Timestamp

Re: [PATCH v2 01/25] media: lirc: implement scancode sending

2017-10-09 Thread Sean Young
On Mon, Oct 09, 2017 at 11:14:28AM +0200, Hans Verkuil wrote: > On 05/10/17 10:45, Sean Young wrote: -snip- > > +/* > > + * struct lirc_scancode - decoded scancode with protocol for use with > > + * LIRC_MODE_SCANCODE > > + * > > + * @timestamp: Timestamp in nanoseconds using CLOCK_MONOTONIC when

Re: [PATCH v2 01/25] media: lirc: implement scancode sending

2017-10-09 Thread Hans Verkuil
On 05/10/17 10:45, Sean Young wrote: > This introduces a new lirc mode: scancode. Any device which can send raw IR > can now also send scancodes. > > int main() > { > int mode, fd = open("/dev/lirc0", O_RDWR); > > mode = LIRC_MODE_SCANCODE; > if (ioctl(fd, LIRC_SET_SEND_MODE,