summaryrefslogtreecommitdiffstats
path: root/include/hardware/power.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/hardware/power.h')
-rw-r--r--include/hardware/power.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/include/hardware/power.h b/include/hardware/power.h
index 6c55061..b3724f0 100644
--- a/include/hardware/power.h
+++ b/include/hardware/power.h
@@ -41,6 +41,8 @@ __BEGIN_DECLS
typedef enum {
POWER_HINT_VSYNC = 0x00000001,
POWER_HINT_INTERACTION = 0x00000002,
+ POWER_HINT_VIDEO_ENCODE = 0x00000003,
+ POWER_HINT_CPU_BOOST = 0x00000004,
} power_hint_t;
/**
@@ -108,6 +110,23 @@ typedef struct power_module {
* and it may be appropriate to raise speeds of CPU, memory bus,
* etc. The data parameter is unused.
*
+ * POWER_HINT_VIDEO_ENCODE
+ *
+ * The user just started or stopped recording video. When encode
+ * begins, large writes to the SD card will be done and this may
+ * cause CPU frequency to increase. The data parameter is a string
+ * with semicolon-separated 'key:value' pairs. The most common key is
+ * 'state', which takes 0 or 1 as its value. For instance, To
+ * indicate that recording is beginning, the string "state:1" would
+ * need to be used. More keys can be provided depending on the data
+ * that is to be passed.
+ *
+ * POWER_HINT_CPU_BOOST
+ *
+ * An operation is happening where it would be ideal for the CPU to
+ * be boosted for a specific duration. The data parameter is an
+ * integer value of the boost duration in microseconds.
+ *
* A particular platform may choose to ignore any hint.
*
* availability: version 0.2