mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-09 12:17:12 +09:00
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:
@@ -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;
|
||||
|
||||
@@ -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__ */
|
||||
|
||||
Reference in New Issue
Block a user