From: | "Ian Stakenvicius (axs)" <axs@g.o> |
---|---|
To: | gentoo-commits@l.g.o |
Subject: | [gentoo-commits] gentoo-x86 commit in app-misc/lirc/files: lirc-0.9.0-add-zotac-support.patch |
Date: | Thu, 29 Aug 2013 13:58:37 |
Message-Id: | 20130829135834.4EC5F2004C@flycatcher.gentoo.org |
1 | axs 13/08/29 13:58:34 |
2 | |
3 | Modified: lirc-0.9.0-add-zotac-support.patch |
4 | Log: |
5 | fixed bug 482826 |
6 | |
7 | (Portage version: 2.1.12.2/cvs/Linux x86_64, signed Manifest commit with key 2B6559ED) |
8 | |
9 | Revision Changes Path |
10 | 1.2 app-misc/lirc/files/lirc-0.9.0-add-zotac-support.patch |
11 | |
12 | file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-misc/lirc/files/lirc-0.9.0-add-zotac-support.patch?rev=1.2&view=markup |
13 | plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-misc/lirc/files/lirc-0.9.0-add-zotac-support.patch?rev=1.2&content-type=text/plain |
14 | diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-misc/lirc/files/lirc-0.9.0-add-zotac-support.patch?r1=1.1&r2=1.2 |
15 | |
16 | Index: lirc-0.9.0-add-zotac-support.patch |
17 | =================================================================== |
18 | RCS file: /var/cvsroot/gentoo-x86/app-misc/lirc/files/lirc-0.9.0-add-zotac-support.patch,v |
19 | retrieving revision 1.1 |
20 | retrieving revision 1.2 |
21 | diff -u -r1.1 -r1.2 |
22 | --- lirc-0.9.0-add-zotac-support.patch 27 Aug 2013 18:22:28 -0000 1.1 |
23 | +++ lirc-0.9.0-add-zotac-support.patch 29 Aug 2013 13:58:34 -0000 1.2 |
24 | @@ -155,15 +155,15 @@ |
25 | +static int zotac_getcode(); |
26 | + |
27 | +/** Max number of repetitions */ |
28 | -+const unsigned max_repeat_count = 500; |
29 | ++static unsigned max_repeat_count = 500; |
30 | +/** Code that triggers key release */ |
31 | -+const unsigned release_code = 0x00000000; |
32 | ++static unsigned release_code = 0x00000000; |
33 | +/** Code that triggers device remove */ |
34 | -+const unsigned remove_code =0x00FFFFFF; |
35 | ++static unsigned remove_code =0x00FFFFFF; |
36 | +/** Time to wait before first repetition */ |
37 | -+const unsigned repeat_time1_us = 500000; |
38 | ++static unsigned repeat_time1_us = 500000; |
39 | +/** Time to wait between two repetitions */ |
40 | -+const unsigned repeat_time2_us = 100000; |
41 | ++static unsigned repeat_time2_us = 100000; |
42 | +/** Pipe between main thread and repetition thread */ |
43 | +static int fd_pipe[2] = { -1, -1 }; |
44 | + |
45 | @@ -172,7 +172,7 @@ |
46 | +/** File descriptor for the real device */ |
47 | +static int fd_hidraw; |
48 | + |
49 | -+const int main_code_length = 32; |
50 | ++static int main_code_length = 32; |
51 | +static signed int main_code = 0; |
52 | +static struct timeval start, end, last; |
53 | +static int repeat_state = RPT_NO; |