commit 1fccd385b3a2234b62a861b387d5aa371e294fe2
Author: Adam Osuchowski <[email protected]>
Date:   Thu Oct 23 21:17:29 2014 +0200

    - mic mute button support

 acpid-micmute.patch | 14 ++++++++++++++
 acpid.spec          |  2 ++
 2 files changed, 16 insertions(+)
---
diff --git a/acpid.spec b/acpid.spec
index 7ea630f..5cdf2b2 100644
--- a/acpid.spec
+++ b/acpid.spec
@@ -27,6 +27,7 @@ Source7:      %{name}.battery.sh
 Source8:       %{name}.upstart
 Source9:       %{name}.service
 Source10:      %{name}.preconfig
+Patch1:                %{name}-micmute.patch
 URL:           http://tedfelix.com/linux/acpid-netlink.html
 BuildRequires: rpmbuild(macros) >= 1.647
 Requires(post,preun):  /sbin/chkconfig
@@ -77,6 +78,7 @@ wyłącznie jako dyspozytor wiadomości.
 
 %prep
 %setup -q
+%patch1 -p1
 
 %build
 %{__make} \
diff --git a/acpid-micmute.patch b/acpid-micmute.patch
new file mode 100644
index 0000000..7a2e69c
--- /dev/null
+++ b/acpid-micmute.patch
@@ -0,0 +1,14 @@
+diff -ruNp acpid-2.0.10.orig/input_layer.c acpid-2.0.10/input_layer.c
+--- acpid-2.0.10.orig/input_layer.c    2011-03-12 17:22:34.000000000 +0100
++++ acpid-2.0.10/input_layer.c 2014-10-23 21:15:00.054570789 +0200
+@@ -115,6 +115,10 @@ static struct evtab_entry evtab[] = {
+               "button/volumeup VOLUP 00000080 00000000"},
+       {{{0,0}, EV_KEY, KEY_MUTE, 1}, 
+               "button/mute MUTE 00000080 00000000"},
++      {{{0,0}, EV_KEY, KEY_MICMUTE, 1}, 
++              "button/micmute MICMUTE 00000080 00000000"},
++      {{{0,0}, EV_KEY, KEY_F20, 1}, 
++              "ibm/hotkey HKEY 00000080 0000101b"},
+       /* cd play/pause buttons */
+       {{{0,0}, EV_KEY, KEY_NEXTSONG, 1}, 
+               "cd/next CDNEXT 00000080 00000000"},
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/acpid.git/commitdiff/1fccd385b3a2234b62a861b387d5aa371e294fe2

_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to