summaryrefslogtreecommitdiff
Diffstat
-rw-r--r--hdmi_cec.c5
-rw-r--r--hdmi_cec.h1
2 files changed, 6 insertions, 0 deletions
diff --git a/hdmi_cec.c b/hdmi_cec.c
index 98d43f0..a8d292d 100644
--- a/hdmi_cec.c
+++ b/hdmi_cec.c
@@ -511,6 +511,11 @@ static void cec_set_option(const struct hdmi_cec_device* dev, int flag, int valu
hal_info->flag &= ~(1 << HDMI_OPTION_SYSTEM_CEC_CONTROL);
break;
+ /* set device auto-power off by uboot */
+ case HDMI_OPTION_CEC_AUTO_DEVICE_OFF:
+ ret = ioctl(hal_info->fd, CEC_IOC_SET_AUTO_DEVICE_OFF, value);
+ break;
+
case HDMI_OPTION_SET_LANG:
ret = ioctl(hal_info->fd, CEC_IOC_SET_OPTION_SET_LANG, value);
break;
diff --git a/hdmi_cec.h b/hdmi_cec.h
index 46b5563..b9681a2 100644
--- a/hdmi_cec.h
+++ b/hdmi_cec.h
@@ -17,6 +17,7 @@
#define CEC_IOC_CLR_LOGICAL_ADDR _IOW(CEC_IOC_MAGIC, 0x0C, uint32_t)
#define CEC_IOC_SET_DEV_TYPE _IOW(CEC_IOC_MAGIC, 0x0D, uint32_t)
#define CEC_IOC_SET_ARC_ENABLE _IOW(CEC_IOC_MAGIC, 0x0E, uint32_t)
+#define CEC_IOC_SET_AUTO_DEVICE_OFF _IOW(CEC_IOC_MAGIC, 0x0F, uint32_t)
#define CEC_FAIL_NONE 0
#define CEC_FAIL_NACK 1