lirc: update irtoy support patch, thanks to vdrfan, eventlicd: update and fix udev rule to support irtoy ir receivers

Signed-off-by: Stephan Raue <stephan@openelec.tv>
This commit is contained in:
Stephan Raue 2013-06-01 05:23:10 +02:00
parent 8204bfb0d6
commit 8e6ee90308
2 changed files with 48 additions and 35 deletions

View File

@ -6,6 +6,7 @@
ACTION!="add|remove", GOTO="end" ACTION!="add|remove", GOTO="end"
KERNEL=="hiddev[0-9]*", SUBSYSTEM=="usb", SUBSYSTEMS=="usb", GOTO="begin" KERNEL=="hiddev[0-9]*", SUBSYSTEM=="usb", SUBSYSTEMS=="usb", GOTO="begin"
KERNEL=="ttyACM[0-9]*", SUBSYSTEM=="tty", SUBSYSTEMS=="usb", GOTO="begin"
KERNEL=="lirc[0-9]*", SUBSYSTEM=="lirc", SUBSYSTEMS=="i2c", GOTO="begin" KERNEL=="lirc[0-9]*", SUBSYSTEM=="lirc", SUBSYSTEMS=="i2c", GOTO="begin"
KERNEL=="lirc[0-9]*", SUBSYSTEM=="lirc", SUBSYSTEMS=="usb", GOTO="begin" KERNEL=="lirc[0-9]*", SUBSYSTEM=="lirc", SUBSYSTEMS=="usb", GOTO="begin"
KERNEL=="lirc[0-9]*", SUBSYSTEM=="lirc", SUBSYSTEMS=="platform", GOTO="begin" KERNEL=="lirc[0-9]*", SUBSYSTEM=="lirc", SUBSYSTEMS=="platform", GOTO="begin"
@ -36,7 +37,6 @@ SUBSYSTEM=="lirc", DRIVERS=="lirc_rpi", \
# up as event devices are not included as as they are handled by eventlircd. # up as event devices are not included as as they are handled by eventlircd.
#------------------------------------------------------------------------------- #-------------------------------------------------------------------------------
SUBSYSTEMS=="usb", GOTO="begin-usb" SUBSYSTEMS=="usb", GOTO="begin-usb"
SUBSYSTEMS=="usb", GOTO="begin-usb"
GOTO="end-usb" GOTO="end-usb"
LABEL="begin-usb" LABEL="begin-usb"

View File

@ -1,8 +1,7 @@
diff --git c/configure.ac w/configure.ac diff -Naur lirc-0.9.0/configure.ac lirc-0.9.0.patch/configure.ac
index 052908b..2cd46ff 100644 --- lirc-0.9.0/configure.ac 2013-06-01 05:14:37.836893013 +0200
--- c/configure.ac +++ lirc-0.9.0.patch/configure.ac 2013-06-01 05:15:53.523904976 +0200
+++ w/configure.ac @@ -154,6 +154,7 @@
@@ -154,6 +154,7 @@ possible_drivers="(none) \
(uirt2) \ (uirt2) \
(uirt2_raw) \ (uirt2_raw) \
(usb_uirt_raw) \ (usb_uirt_raw) \
@ -10,7 +9,7 @@ index 052908b..2cd46ff 100644
(usbx) \ (usbx) \
(udp)" (udp)"
@@ -446,7 +447,7 @@ AC_ARG_WITH(driver, @@ -444,7 +445,7 @@
srm7500libusb, tekram, srm7500libusb, tekram,
tekram_bt829, tira, tira_raw, ttusbir, tekram_bt829, tira, tira_raw, ttusbir,
tuxbox, udp, uirt2, uirt2_raw, tuxbox, udp, uirt2, uirt2_raw,
@ -19,7 +18,7 @@ index 052908b..2cd46ff 100644
driver=${withval}, driver=${withval},
driver="unset" driver="unset"
) )
@@ -680,6 +681,9 @@ if test "$driver" = "userspace" -o "$driver" = "all"; then @@ -675,6 +676,9 @@
uirt2_raw|usb_uirt_raw) uirt2_raw|usb_uirt_raw)
hw_module="${hw_module} hw_uirt2_raw.o hw_uirt2_common.o serial.o receive.o transmit.o" hw_module="${hw_module} hw_uirt2_raw.o hw_uirt2_common.o serial.o receive.o transmit.o"
;; ;;
@ -29,7 +28,7 @@ index 052908b..2cd46ff 100644
usbx) usbx)
hw_module="${hw_module} hw_usbx.o serial.o" hw_module="${hw_module} hw_usbx.o serial.o"
;; ;;
@@ -1391,6 +1395,11 @@ if test "$driver" = "uirt2_raw"; then @@ -1329,6 +1333,11 @@
hw_module="hw_uirt2_raw.o hw_uirt2_common.o serial.o receive.o transmit.o" hw_module="hw_uirt2_raw.o hw_uirt2_common.o serial.o receive.o transmit.o"
HW_DEFAULT="hw_uirt2_raw" HW_DEFAULT="hw_uirt2_raw"
fi fi
@ -41,11 +40,10 @@ index 052908b..2cd46ff 100644
if test "$driver" = "usb_uirt_raw"; then if test "$driver" = "usb_uirt_raw"; then
lirc_driver="none" lirc_driver="none"
hw_module="hw_uirt2_raw.o hw_uirt2_common.o serial.o receive.o transmit.o" hw_module="hw_uirt2_raw.o hw_uirt2_common.o serial.o receive.o transmit.o"
diff --git c/daemons/hw-types.c w/daemons/hw-types.c diff -Naur lirc-0.9.0/daemons/hw-types.c lirc-0.9.0.patch/daemons/hw-types.c
index 0536ea2..b11cbdf 100644 --- lirc-0.9.0/daemons/hw-types.c 2011-03-25 23:28:18.000000000 +0100
--- c/daemons/hw-types.c +++ lirc-0.9.0.patch/daemons/hw-types.c 2013-06-01 05:17:24.821961521 +0200
+++ w/daemons/hw-types.c @@ -58,6 +58,7 @@
@@ -58,6 +58,7 @@ extern struct hardware hw_udp;
extern struct hardware hw_uirt2; extern struct hardware hw_uirt2;
extern struct hardware hw_uirt2_raw; extern struct hardware hw_uirt2_raw;
extern struct hardware hw_usb_uirt_raw; extern struct hardware hw_usb_uirt_raw;
@ -53,11 +51,17 @@ index 0536ea2..b11cbdf 100644
extern struct hardware hw_usbx; extern struct hardware hw_usbx;
#ifndef HW_DEFAULT #ifndef HW_DEFAULT
diff --git c/daemons/hw_usbirtoy.c w/daemons/hw_usbirtoy.c @@ -172,6 +173,7 @@
new file mode 100644 &hw_uirt2,
index 0000000..ed2df85 &hw_uirt2_raw,
--- /dev/null &hw_usb_uirt_raw,
+++ w/daemons/hw_usbirtoy.c + &hw_usbirtoy,
&hw_usbx,
#else
&HW_DEFAULT,
diff -Naur lirc-0.9.0/daemons/hw_usbirtoy.c lirc-0.9.0.patch/daemons/hw_usbirtoy.c
--- lirc-0.9.0/daemons/hw_usbirtoy.c 1970-01-01 01:00:00.000000000 +0100
+++ lirc-0.9.0.patch/daemons/hw_usbirtoy.c 2013-06-01 05:15:53.524904977 +0200
@@ -0,0 +1,607 @@ @@ -0,0 +1,607 @@
+/**************************************************************************** +/****************************************************************************
+ ** hw_usbirtoy.c ********************************************************** + ** hw_usbirtoy.c **********************************************************
@ -666,11 +670,21 @@ index 0000000..ed2df85
+} +}
+ +
+ +
diff --git c/setup.data w/setup.data diff -Naur lirc-0.9.0/daemons/Makefile.am lirc-0.9.0.patch/daemons/Makefile.am
index 407d6b2..99be615 100644 --- lirc-0.9.0/daemons/Makefile.am 2011-03-25 23:28:18.000000000 +0100
--- c/setup.data +++ lirc-0.9.0.patch/daemons/Makefile.am 2013-06-01 05:17:24.823961522 +0200
+++ w/setup.data @@ -55,6 +55,7 @@
@@ -119,6 +119,7 @@ hw_menu_entry: @hw-usb hw_udp.c \
hw_uirt2.c hw_uirt2_raw.c \
hw_uirt2_common.c hw_uirt2_common.h \
+ hw_usbirtoy.c \
hw_usbx.c hw_usbx.h \
receive.c receive.h \
transmit.c transmit.h \
diff -Naur lirc-0.9.0/setup.data lirc-0.9.0.patch/setup.data
--- lirc-0.9.0/setup.data 2011-03-25 23:28:18.000000000 +0100
+++ lirc-0.9.0.patch/setup.data 2013-06-01 05:15:53.525904978 +0200
@@ -119,6 +119,7 @@
awlibusb: "Awox RF/IR Remote (userspace)" awlibusb: "Awox RF/IR Remote (userspace)"
sb0540: "Creative USB IR Receiver (SB0540)" sb0540: "Creative USB IR Receiver (SB0540)"
commandir: "CommandIR Multi-IR Transceiver (userspace)" commandir: "CommandIR Multi-IR Transceiver (userspace)"
@ -678,7 +692,7 @@ index 407d6b2..99be615 100644
dfclibusb: "DFC USB InfraRed Remote Control (userspace)" dfclibusb: "DFC USB InfraRed Remote Control (userspace)"
sasem: "Dign HV5 HTPC IR/VFD Module" sasem: "Dign HV5 HTPC IR/VFD Module"
dvico: "DViCO USB Remote" dvico: "DViCO USB Remote"
@@ -147,6 +148,7 @@ hw_menu_entry: @hw-usb @@ -147,6 +148,7 @@
mplay: "VLSystem MPlay Blast" mplay: "VLSystem MPlay Blast"
mplay: "VLSystem MPlay Mini" mplay: "VLSystem MPlay Mini"
@ -686,7 +700,7 @@ index 407d6b2..99be615 100644
param_type: \ param_type: \
act200l \ act200l \
act220l \ act220l \
@@ -190,6 +192,9 @@ param_type: \ @@ -190,6 +192,9 @@
usbx usbx
ttyUSB: ttyUSB:
@ -696,7 +710,7 @@ index 407d6b2..99be615 100644
param_type: \ param_type: \
adaptec \ adaptec \
alsa_usb \ alsa_usb \
@@ -390,6 +395,10 @@ default_param: \ @@ -390,6 +395,10 @@
usbx usbx
ttyUSB1: ttyUSB1:
@ -707,7 +721,7 @@ index 407d6b2..99be615 100644
remote: \ remote: \
hauppauge \ hauppauge \
hauppauge_dvb \ hauppauge_dvb \
@@ -424,6 +433,7 @@ remote: \ @@ -424,6 +433,7 @@
ttusbir \ ttusbir \
uirt2_raw \ uirt2_raw \
udp \ udp \
@ -715,11 +729,10 @@ index 407d6b2..99be615 100644
usb_uirt_raw \ usb_uirt_raw \
wpc8769l wpc8769l
any: any:
diff --git c/setup.sh w/setup.sh diff -Naur lirc-0.9.0/setup.sh lirc-0.9.0.patch/setup.sh
index 342f32d..a3546b5 100755 --- lirc-0.9.0/setup.sh 2011-03-25 23:28:18.000000000 +0100
--- c/setup.sh +++ lirc-0.9.0.patch/setup.sh 2013-06-01 05:15:53.525904978 +0200
+++ w/setup.sh @@ -65,6 +65,10 @@
@@ -65,6 +65,10 @@ GetSelectedDriver ()
elif test "$DRIVER_PARAMETER" = "ttyUSB2"; then COM2="on"; IRTTY="/dev/ttyUSB1"; LIRC_PORT="none"; LIRC_IRQ="none" elif test "$DRIVER_PARAMETER" = "ttyUSB2"; then COM2="on"; IRTTY="/dev/ttyUSB1"; LIRC_PORT="none"; LIRC_IRQ="none"
elif test "$DRIVER_PARAMETER" = "ttyUSB3"; then COM3="on"; IRTTY="/dev/ttyUSB2"; LIRC_PORT="none"; LIRC_IRQ="none" elif test "$DRIVER_PARAMETER" = "ttyUSB3"; then COM3="on"; IRTTY="/dev/ttyUSB2"; LIRC_PORT="none"; LIRC_IRQ="none"
elif test "$DRIVER_PARAMETER" = "ttyUSB4"; then COM4="on"; IRTTY="/dev/ttyUSB3"; LIRC_PORT="none"; LIRC_IRQ="none" elif test "$DRIVER_PARAMETER" = "ttyUSB4"; then COM4="on"; IRTTY="/dev/ttyUSB3"; LIRC_PORT="none"; LIRC_IRQ="none"
@ -730,7 +743,7 @@ index 342f32d..a3546b5 100755
elif test "$DRIVER_PARAMETER" = "com1"; then COM1="on"; LIRC_PORT=$COM1_PORT; LIRC_IRQ=$COM1_IRQ elif test "$DRIVER_PARAMETER" = "com1"; then COM1="on"; LIRC_PORT=$COM1_PORT; LIRC_IRQ=$COM1_IRQ
elif test "$DRIVER_PARAMETER" = "com2"; then COM2="on"; LIRC_PORT=$COM2_PORT; LIRC_IRQ=$COM2_IRQ elif test "$DRIVER_PARAMETER" = "com2"; then COM2="on"; LIRC_PORT=$COM2_PORT; LIRC_IRQ=$COM2_IRQ
elif test "$DRIVER_PARAMETER" = "com3"; then COM3="on"; LIRC_PORT=$COM3_PORT; LIRC_IRQ=$COM3_IRQ elif test "$DRIVER_PARAMETER" = "com3"; then COM3="on"; LIRC_PORT=$COM3_PORT; LIRC_IRQ=$COM3_IRQ
@@ -207,6 +211,30 @@ SetPortAndIrq () @@ -207,6 +211,30 @@
else else
return 1; return 1;
fi fi
@ -761,7 +774,7 @@ index 342f32d..a3546b5 100755
fi fi
return 0; return 0;
} }
@@ -347,7 +375,7 @@ SaveConfig () @@ -347,7 +375,7 @@
else echo "--without-timer \\" >>$START; else echo "--without-timer \\" >>$START;
fi fi
} }