aboutsummaryrefslogtreecommitdiffstats
path: root/Documentation/ABI
diff options
context:
space:
mode:
authorJames Hogan <james.hogan@imgtec.com>2014-02-28 18:17:05 -0500
committerMauro Carvalho Chehab <m.chehab@samsung.com>2014-03-11 12:28:20 -0400
commitab88c66deace78989aa71cb139284cf7fb227ba4 (patch)
tree26f8bb54eddd1fc41ba758ab5c2c70c5ca553d53 /Documentation/ABI
parentacff5f24732acc8a55d0a0f0ee1d19442267df63 (diff)
[media] rc: add wakeup_protocols sysfs file
Add a wakeup_protocols sysfs file which controls the new rc_dev::enabled_protocols[RC_FILTER_WAKEUP], which is the mask of protocols that are used for the wakeup filter. A new RC driver callback change_wakeup_protocol() is called to change the wakeup protocol mask. Signed-off-by: James Hogan <james.hogan@imgtec.com> Reviewed-by: Antti Seppälä <a.seppala@gmail.com> Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
Diffstat (limited to 'Documentation/ABI')
-rw-r--r--Documentation/ABI/testing/sysfs-class-rc23
1 files changed, 21 insertions, 2 deletions
diff --git a/Documentation/ABI/testing/sysfs-class-rc b/Documentation/ABI/testing/sysfs-class-rc
index c0e1d14cae6e..b65674da43bb 100644
--- a/Documentation/ABI/testing/sysfs-class-rc
+++ b/Documentation/ABI/testing/sysfs-class-rc
@@ -61,6 +61,25 @@ Description:
61 an error. 61 an error.
62 This value may be reset to 0 if the current protocol is altered. 62 This value may be reset to 0 if the current protocol is altered.
63 63
64What: /sys/class/rc/rcN/wakeup_protocols
65Date: Feb 2014
66KernelVersion: 3.15
67Contact: Mauro Carvalho Chehab <m.chehab@samsung.com>
68Description:
69 Reading this file returns a list of available protocols to use
70 for the wakeup filter, something like:
71 "rc5 rc6 nec jvc [sony]"
72 The enabled wakeup protocol is shown in [] brackets.
73 Writing "+proto" will add a protocol to the list of enabled
74 wakeup protocols.
75 Writing "-proto" will remove a protocol from the list of enabled
76 wakeup protocols.
77 Writing "proto" will use "proto" for wakeup events.
78 Writing "none" will disable wakeup.
79 Write fails with EINVAL if an invalid protocol combination or
80 unknown protocol name is used, or if wakeup is not supported by
81 the hardware.
82
64What: /sys/class/rc/rcN/wakeup_filter 83What: /sys/class/rc/rcN/wakeup_filter
65Date: Jan 2014 84Date: Jan 2014
66KernelVersion: 3.15 85KernelVersion: 3.15
@@ -74,7 +93,7 @@ Description:
74 scancodes which match the filter will wake the system from e.g. 93 scancodes which match the filter will wake the system from e.g.
75 suspend to RAM or power off. 94 suspend to RAM or power off.
76 Otherwise the write will fail with an error. 95 Otherwise the write will fail with an error.
77 This value may be reset to 0 if the current protocol is altered. 96 This value may be reset to 0 if the wakeup protocol is altered.
78 97
79What: /sys/class/rc/rcN/wakeup_filter_mask 98What: /sys/class/rc/rcN/wakeup_filter_mask
80Date: Jan 2014 99Date: Jan 2014
@@ -89,4 +108,4 @@ Description:
89 scancodes which match the filter will wake the system from e.g. 108 scancodes which match the filter will wake the system from e.g.
90 suspend to RAM or power off. 109 suspend to RAM or power off.
91 Otherwise the write will fail with an error. 110 Otherwise the write will fail with an error.
92 This value may be reset to 0 if the current protocol is altered. 111 This value may be reset to 0 if the wakeup protocol is altered.