linux-amlogic icon indicating copy to clipboard operation
linux-amlogic copied to clipboard

Backporting lirc_odroid driver from hardkernel

Open synchrone opened this issue 7 years ago • 5 comments

Backporting the GPIO-based implementation of Lirc receiver/transmitter driver, initally contributed at https://github.com/hardkernel/linux/pull/29, but later reworked in https://github.com/hardkernel/linux/commit/ca7d83cd734d151b234a3dc6e9578d3fd733de8d#diff-a8d20779ea0c3115b28e31876ff93685

Tested this with LibreELEC 8.2.5.

synchrone avatar Apr 15 '18 13:04 synchrone

Nice! What about these changes/insertions?

CONFIG_LIRC=y
CONFIG_IR_LIRC_CODEC=y
CONFIG_LIRC_STAGING=y
CONFIG_LIRC_ODROID=m

2013 version (for X/X2) is transmitter/receiver, unfortunatelly, rework done 2016/2017 change this to only transmitter.

JimmyS83 avatar Jan 03 '19 13:01 JimmyS83

Unfortunately I do not have the X or X2 boards to try it with. I made this patch for the C2.

synchrone avatar Jan 09 '19 09:01 synchrone

Ok.. I just pointed out that the lirc_odroid as it is now, is only for transmitter.. For the receiver function gpioplug-ir-recv+gpio-ir-recv is needed :(

JimmyS83 avatar Jan 09 '19 15:01 JimmyS83

But that's exactly what I added. The GPIO Receiver functionality.

Btw, it seems like gpioplug-ir-recv was just added in a fork https://github.com/CoreELEC/CoreELEC/releases/tag/8.95.7

synchrone avatar Jan 11 '19 22:01 synchrone

But that's exactly what I added. The GPIO Receiver functionality.

I could be wrong, but submitted lirc_odroid.c:

MODULE_DESCRIPTION("GPIO based IR Transmitter driver for Odroid C/C2");
MODULE_PARM_DESC(gpio_out_pin, "GPIO output/transmitter pin number");

is transmitter, not receiver.. This works for you as receiver?

JimmyS83 avatar Jan 14 '19 09:01 JimmyS83