summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYoungjae Cho <y0.cho@samsung.com>2020-07-07 16:58:43 +0900
committerHyotaek Shim <hyotaek.shim@samsung.com>2020-07-07 08:49:33 +0000
commitb62768ebd0007b6ba67022a46c8037814e0ffe86 (patch)
treea36e379baea9744ad7d93c1678b3b909519e1353
parent858d8131b96b851b604002a230a693a318e0fcdc (diff)
downloadlibdevice-node-b62768ebd0007b6ba67022a46c8037814e0ffe86.tar.gz
libdevice-node-b62768ebd0007b6ba67022a46c8037814e0ffe86.tar.bz2
libdevice-node-b62768ebd0007b6ba67022a46c8037814e0ffe86.zip
Add vibration intensity controller for bezelsubmit/tizen/20200721.112435accepted/tizen/unified/20200723.161313
Change-Id: I9f59841bfeb88db49306c2e486174ad287413fac Signed-off-by: Youngjae Cho <y0.cho@samsung.com> (cherry picked from commit dad93bd939e162c95f1b1d9225cfd4a8cb2063ff)
-rw-r--r--hw/bezel.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/hw/bezel.h b/hw/bezel.h
index 93a2ba6..539af5a 100644
--- a/hw/bezel.h
+++ b/hw/bezel.h
@@ -34,6 +34,13 @@ enum bezel_state {
BEZEL_TURNON,
};
+enum bezel_vib_state {
+ BEZEL_VIB_NONE = 0,
+ BEZEL_VIB_LIGHT,
+ BEZEL_VIB_MEDIUM,
+ BEZEL_VIB_STRONG,
+};
+
struct bezel_device {
struct hw_common common;
@@ -47,6 +54,10 @@ struct bezel_device {
/* Control software bezel state */
int (*get_sw_state)(enum bezel_state *state);
int (*set_sw_state)(enum bezel_state state);
+
+ /* Control bezel vibration state */
+ int (*get_vib_state)(enum bezel_vib_state *state);
+ int (*set_vib_state)(enum bezel_vib_state state);
};
#endif