diff options
author | James Hogan <james.hogan@imgtec.com> | 2014-02-28 18:17:05 -0500 |
---|---|---|
committer | Mauro Carvalho Chehab <m.chehab@samsung.com> | 2014-03-11 12:28:20 -0400 |
commit | ab88c66deace78989aa71cb139284cf7fb227ba4 (patch) | |
tree | 26f8bb54eddd1fc41ba758ab5c2c70c5ca553d53 /Documentation/DocBook | |
parent | acff5f24732acc8a55d0a0f0ee1d19442267df63 (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/DocBook')
-rw-r--r-- | Documentation/DocBook/media/v4l/remote_controllers.xml | 20 |
1 files changed, 18 insertions, 2 deletions
diff --git a/Documentation/DocBook/media/v4l/remote_controllers.xml b/Documentation/DocBook/media/v4l/remote_controllers.xml index c440a81f14c0..5124a6c4daa8 100644 --- a/Documentation/DocBook/media/v4l/remote_controllers.xml +++ b/Documentation/DocBook/media/v4l/remote_controllers.xml | |||
@@ -102,6 +102,22 @@ an error.</para> | |||
102 | <para>This value may be reset to 0 if the current protocol is altered.</para> | 102 | <para>This value may be reset to 0 if the current protocol is altered.</para> |
103 | 103 | ||
104 | </section> | 104 | </section> |
105 | <section id="sys_class_rc_rcN_wakeup_protocols"> | ||
106 | <title>/sys/class/rc/rcN/wakeup_protocols</title> | ||
107 | <para>Reading this file returns a list of available protocols to use for the | ||
108 | wakeup filter, something like:</para> | ||
109 | <para><constant>rc5 rc6 nec jvc [sony]</constant></para> | ||
110 | <para>The enabled wakeup protocol is shown in [] brackets.</para> | ||
111 | <para>Writing "+proto" will add a protocol to the list of enabled wakeup | ||
112 | protocols.</para> | ||
113 | <para>Writing "-proto" will remove a protocol from the list of enabled wakeup | ||
114 | protocols.</para> | ||
115 | <para>Writing "proto" will use "proto" for wakeup events.</para> | ||
116 | <para>Writing "none" will disable wakeup.</para> | ||
117 | <para>Write fails with EINVAL if an invalid protocol combination or unknown | ||
118 | protocol name is used, or if wakeup is not supported by the hardware.</para> | ||
119 | |||
120 | </section> | ||
105 | <section id="sys_class_rc_rcN_wakeup_filter"> | 121 | <section id="sys_class_rc_rcN_wakeup_filter"> |
106 | <title>/sys/class/rc/rcN/wakeup_filter</title> | 122 | <title>/sys/class/rc/rcN/wakeup_filter</title> |
107 | <para>Sets the scancode wakeup filter expected value. | 123 | <para>Sets the scancode wakeup filter expected value. |
@@ -112,7 +128,7 @@ to trigger a system wake event.</para> | |||
112 | scancodes which match the filter will wake the system from e.g. | 128 | scancodes which match the filter will wake the system from e.g. |
113 | suspend to RAM or power off. | 129 | suspend to RAM or power off. |
114 | Otherwise the write will fail with an error.</para> | 130 | Otherwise the write will fail with an error.</para> |
115 | <para>This value may be reset to 0 if the current protocol is altered.</para> | 131 | <para>This value may be reset to 0 if the wakeup protocol is altered.</para> |
116 | 132 | ||
117 | </section> | 133 | </section> |
118 | <section id="sys_class_rc_rcN_wakeup_filter_mask"> | 134 | <section id="sys_class_rc_rcN_wakeup_filter_mask"> |
@@ -125,7 +141,7 @@ expected value to trigger a system wake event.</para> | |||
125 | scancodes which match the filter will wake the system from e.g. | 141 | scancodes which match the filter will wake the system from e.g. |
126 | suspend to RAM or power off. | 142 | suspend to RAM or power off. |
127 | Otherwise the write will fail with an error.</para> | 143 | Otherwise the write will fail with an error.</para> |
128 | <para>This value may be reset to 0 if the current protocol is altered.</para> | 144 | <para>This value may be reset to 0 if the wakeup protocol is altered.</para> |
129 | </section> | 145 | </section> |
130 | </section> | 146 | </section> |
131 | 147 | ||