hdmi: cec: add HDMI_IOCTL_CECWAKESTATE

android HDMI CEC HAL need to know cec state when resume,
so we add the HDMI_IOCTL_CECWAKESTATE.

Change-Id: Iff942c6085d10891200cd873cc2ba53e9a2d6cad
Signed-off-by: Shen Zhenyi <szy@rock-chips.com>
This commit is contained in:
Shen Zhenyi
2015-10-30 13:59:55 +08:00
parent 40b2e9e44d
commit 22cd957182
2 changed files with 6 additions and 1 deletions

View File

@@ -226,6 +226,9 @@ static long cec_ioctl(struct file *file, unsigned int cmd, unsigned long arg)
break;
case HDMI_IOCTL_CECCLEARLA:
break;
case HDMI_IOCTL_CECWAKESTATE:
ret = copy_to_user(argp, &(cec_dev->hdmi->sleep), sizeof(int));
break;
default:
break;

View File

@@ -184,7 +184,9 @@ struct cec_device {
#define HDMI_IOCTL_CECREAD _IOR(HDMI_CEC_MAGIC, 4, struct cec_framedata)
#define HDMI_IOCTL_CECSETLA _IOW(HDMI_CEC_MAGIC, 5, int)
#define HDMI_IOCTL_CECCLEARLA _IOW(HDMI_CEC_MAGIC, 6, int)
#define HDMI_IOCTL_CECWAKESTATE _IOR(HDMI_CEC_MAGIC, 7, int)
/*for HAL ioctl end*/
int rockchip_hdmi_cec_init(struct hdmi *hdmi,
int (*sendframe)(struct hdmi *,
struct cec_framedata *),
@@ -193,4 +195,4 @@ int rockchip_hdmi_cec_init(struct hdmi *hdmi,
void (*setceclogicaddr)(struct hdmi *, int));
void rockchip_hdmi_cec_set_pa(int devpa);
void rockchip_hdmi_cec_submit_work(int event, int delay, void *data);
#endif /* __HDMI_CEC_H__ */
#endif /* __HDMI_CEC_H__ */