git-svn-id: https://svn.o-hand.com/repos/poky@246 311d38ba-8fff-0310-9ca6-ca027cbcb966
This commit is contained in:
Richard Purdie
2006-02-02 15:56:46 +00:00
parent da8ed28828
commit bc4e7ed899
10 changed files with 2346 additions and 0 deletions

View File

@@ -0,0 +1,10 @@
--- lirc/drivers/lirc_sir/lirc_sir.c.orig 2004-11-18 17:30:17 +0100
+++ lirc/drivers/lirc_sir/lirc_sir.c 2004-11-18 17:30:21 +0100
@@ -628,6 +628,7 @@
struct timeval curr_tv;
static unsigned long deltv;
#ifdef LIRC_ON_SA1100
+ unsigned long deltintrtv;
int status;
static int n=0;

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,38 @@
#! /bin/sh
#
# This is an init script for Familiar
# Copy it to /etc/init.d/lircd and type
# > update-rc.d lircd defaults 20
#
test -f /usr/sbin/lircd || exit 0
case "$1" in
start)
echo -n "Starting lirc daemon: lircd"
start-stop-daemon --start --quiet --exec /usr/sbin/lircd -- --device=/dev/lirc
echo "."
;;
stop)
echo -n "Stopping lirc daemon: lircd"
start-stop-daemon --stop --quiet --exec /usr/sbin/lircd
echo "."
;;
reload|force-reload)
start-stop-daemon --stop --quiet --signal 1 --exec /usr/sbin/lircd
;;
restart)
echo -n "Stopping lirc daemon: lircd"
start-stop-daemon --stop --quiet --exec /usr/sbin/lircd
sleep 1
echo -n "Starting lirc daemon: lircd"
start-stop-daemon --start --quiet --exec /usr/sbin/lircd -- --device=/dev/lirc
echo "."
;;
*)
echo "Usage: /etc/init.d/lircd {start|stop|reload|restart|force-reload}"
exit 1
esac
exit 0

View File

@@ -0,0 +1,36 @@
#! /bin/sh
#
# This is an init script for Familiar
# Copy it to /etc/init.d/lircexecd and type
# > update-rc.d lircexecd defaults 20
# It must be started after lircd (and it does alphabetically :-)
# irexec reads /etc/lircrc by default
test -f /usr/bin/irexec || exit 0
case "$1" in
start)
echo -n "Starting lircexec daemon: irexec"
start-stop-daemon --start --quiet --exec /usr/bin/irexec
echo "."
;;
stop)
echo -n "Stopping lircexec daemon: irexec"
start-stop-daemon --stop --quiet --exec /usr/bin/irexec
echo "."
;;
restart|force-restart)
echo -n "Stopping lircexec daemon: irexec"
start-stop-daemon --stop --quiet --exec /usr/bin/irexec
sleep 1
echo -n "Starting lircexec daemon: irexec"
start-stop-daemon --start --quiet --exec /usr/bin/irexec
echo "."
;;
*)
echo "Usage: /etc/init.d/lircexec {start|stop|reload|restart|force-restart}"
exit 1
esac
exit 0

View File

@@ -0,0 +1,38 @@
#! /bin/sh
#
# This is an init script for Familiar
# Copy it to /etc/init.d/lirc and type
# > update-rc.d lirc defaults 20
#
test -f /usr/sbin/lircmd || exit 0
case "$1" in
start)
echo -n "Starting lirc daemon: lircmd"
start-stop-daemon --start --quiet --exec /usr/sbin/lircmd
echo "."
;;
stop)
echo -n "Stopping lirc daemon: lircmd"
start-stop-daemon --stop --quiet --exec /usr/sbin/lircmd
echo "."
;;
reload|force-reload)
start-stop-daemon --stop --quiet --signal 1 --exec /usr/sbin/lircmd
;;
restart)
echo -n "Stopping lirc daemon: lircmd"
start-stop-daemon --stop --quiet --exec /usr/sbin/lircmd
sleep 1
echo -n "Starting lirc daemon: lircmd"
start-stop-daemon --start --quiet --exec /usr/sbin/lircmd
echo "."
;;
*)
echo "Usage: /etc/init.d/lircmd {start|stop|reload|restart|force-reload}"
exit 1
esac
exit 0

View File

@@ -0,0 +1,113 @@
# This is the default files read by all lirc clients
# (see also /etc/lircd.conf)
# I run /sbin/buzzer before every command to get an audible feedback
## Here LIRC could shutdown your system
#begin
# prog = irexec
# remote = RC5
# repeat = 0
# button = vcr2-standby
# config = /sbin/buzzer; /sbin/halt
#end
## Here LIRC controls your mpd music deamon
begin
prog = irexec
remote = RC5
repeat = 0
button = vcr2-pause
config = /sbin/buzzer; mpc toggle
end
begin
prog = irexec
remote = RC5
repeat = 0
button = vcr2-step+
config = /sbin/buzzer; mpc next
end
begin
prog = irexec
remote = RC5
repeat = 0
button = vcr2-step-
config = /sbin/buzzer; mpc prev
end
begin
prog = irexec
remote = RC5
repeat = 0
button = vcr2-scan_forward
config = /sbin/buzzer; mpc seek +00:00:30
end
begin
prog = irexec
remote = RC5
repeat = 0
button = vcr2-scan_reverse
config = /sbin/buzzer; mpc seek -00:00:30
end
begin
prog = irexec
remote = RC5
repeat = 0
button = vcr2-brightness+
config = /sbin/buzzer; mpc volume +20
end
begin
prog = irexec
remote = RC5
repeat = 0
button = vcr2-brightness-
config = /sbin/buzzer; mpc volume -20
end
## Here LIRC acts as an repeater
begin
prog = irexec
remote = RC5
repeat = 0
button = vcr2-volume+
config = /sbin/buzzer; irsend SEND_ONCE RC5 amp1-volume+
end
begin
prog = irexec
remote = RC5
repeat = 0
button = vcr2-volume-
config = /sbin/buzzer; irsend SEND_ONCE RC5 amp1-volume-
end
## Here LIRC is the input device for your LC display software
begin
prog = lcdd
remote = RC5
repeat = 0
button = vcr2-1
config = A
end
begin
prog = lcdd
remote = RC5
repeat = 0
button = vcr2-2
config = B
end
begin
prog = lcdd
remote = RC5
repeat = 0
button = vcr2-3
config = C
end
begin
prog = lcdd
remote = RC5
repeat = 0
button = vcr2-4
config = D
end

View File

@@ -0,0 +1,141 @@
--- lirc/remotes/hauppauge/lircd.conf.hauppauge~ 2003-05-03 15:42:30.000000000 +0100
+++ lirc/remotes/hauppauge/lircd.conf.hauppauge 2004-10-10 20:14:14.000000000 +0100
@@ -51,71 +51,3 @@
end codes
end remote
-
-
-#
-# this config file was automatically generated
-# using lirc-0.6.6(animax) on Tue Apr 15 19:50:27 2003
-#
-# contributed by
-#
-# brand: Hauppauge
-# model no. of remote control:
-# devices being controlled by this remote: PVR 2/350
-#
-
-begin remote
-
- name hauppauge_pvr
- bits 13
- flags RC5|CONST_LENGTH
- eps 30
- aeps 100
-
- one 969 811
- zero 969 811
- plead 1097
- gap 114605
- toggle_bit 2
-
-
- begin codes
- Power 0x00000000000017FD
- Go 0x00000000000017FB
- 1 0x00000000000017C1
- 2 0x00000000000017C2
- 3 0x00000000000017C3
- 4 0x00000000000017C4
- 5 0x00000000000017C5
- 6 0x00000000000017C6
- 7 0x00000000000017C7
- 8 0x00000000000017C8
- 9 0x00000000000017C9
- Back/Exit 0x00000000000017DF
- 0 0x00000000000017C0
- Menu 0x00000000000017CD
- Red 0x00000000000017CB
- Green 0x00000000000017EE
- Yellow 0x00000000000017F8
- Blue 0x00000000000017E9
- Ch+ 0x00000000000017E0
- Ch- 0x00000000000017E1
- Vol- 0x00000000000017D1
- Vol+ 0x00000000000017D0
- Ok 0x00000000000017E5
- Mute 0x00000000000017CF
- Blank 0x00000000000017CC
- Full 0x00000000000017FC
- Rewind 0x00000000000017F2
- Play 0x00000000000017F5
- Forward 0x00000000000017F4
- Record 0x00000000000017F7
- Stop 0x00000000000017F6
- Pause 0x00000000000017F0
- Replay 0x00000000000017E4
- Skip 0x00000000000017DE
- end codes
-
-end remote
-
-
--- /dev/null 2004-06-13 02:32:19.000000000 +0100
+++ lirc/remotes/hauppauge/lircd.conf.hauppauge-pvr 2004-10-10 20:14:05.000000000 +0100
@@ -0,0 +1,64 @@
+#
+# this config file was automatically generated
+# using lirc-0.6.6(animax) on Tue Apr 15 19:50:27 2003
+#
+# contributed by
+#
+# brand: Hauppauge
+# model no. of remote control:
+# devices being controlled by this remote: PVR 2/350
+#
+
+begin remote
+
+ name hauppauge_pvr
+ bits 13
+ flags RC5|CONST_LENGTH
+ eps 30
+ aeps 100
+
+ one 969 811
+ zero 969 811
+ plead 1097
+ gap 114605
+ toggle_bit 2
+
+
+ begin codes
+ Power 0x00000000000017FD
+ Go 0x00000000000017FB
+ 1 0x00000000000017C1
+ 2 0x00000000000017C2
+ 3 0x00000000000017C3
+ 4 0x00000000000017C4
+ 5 0x00000000000017C5
+ 6 0x00000000000017C6
+ 7 0x00000000000017C7
+ 8 0x00000000000017C8
+ 9 0x00000000000017C9
+ Back/Exit 0x00000000000017DF
+ 0 0x00000000000017C0
+ Menu 0x00000000000017CD
+ Red 0x00000000000017CB
+ Green 0x00000000000017EE
+ Yellow 0x00000000000017F8
+ Blue 0x00000000000017E9
+ Ch+ 0x00000000000017E0
+ Ch- 0x00000000000017E1
+ Vol- 0x00000000000017D1
+ Vol+ 0x00000000000017D0
+ Ok 0x00000000000017E5
+ Mute 0x00000000000017CF
+ Blank 0x00000000000017CC
+ Full 0x00000000000017FC
+ Rewind 0x00000000000017F2
+ Play 0x00000000000017F5
+ Forward 0x00000000000017F4
+ Record 0x00000000000017F7
+ Stop 0x00000000000017F6
+ Pause 0x00000000000017F0
+ Replay 0x00000000000017E4
+ Skip 0x00000000000017DE
+ end codes
+
+end remote