mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-07 19:30:30 +09:00
uapi: rk-camera-module: add light control define and cmd
Change-Id: I2e4ded05e7eaee473a0286cdb283a46a8029f8c4 Signed-off-by: LongChang Ma <chad.ma@rock-chips.com> Signed-off-by: Zefa Chen <zefa.chen@rock-chips.com>
This commit is contained in:
@@ -191,6 +191,9 @@
|
||||
#define RKMODULE_GET_DSI_MODE \
|
||||
_IOR('V', BASE_VIDIOC_PRIVATE + 42, __u32)
|
||||
|
||||
#define RKCIS_CMD_FLASH_LIGHT_CTRL \
|
||||
_IOW('V', BASE_VIDIOC_PRIVATE + 43, struct rk_light_param)
|
||||
|
||||
struct rkmodule_i2cdev_info {
|
||||
__u8 slave_addr;
|
||||
} __attribute__ ((packed));
|
||||
@@ -827,4 +830,17 @@ struct rkmodule_capture_info {
|
||||
};
|
||||
};
|
||||
|
||||
enum rk_light_type {
|
||||
LIGHT_PWM,
|
||||
LIGHT_GPIO,
|
||||
};
|
||||
|
||||
struct rk_light_param {
|
||||
__u8 light_type;
|
||||
__u8 light_enable;
|
||||
__u64 duty_cycle;
|
||||
__u64 period;
|
||||
__u32 polarity;
|
||||
} __attribute__ ((packed));
|
||||
|
||||
#endif /* _UAPI_RKMODULE_CAMERA_H */
|
||||
|
||||
Reference in New Issue
Block a user