void hdmi_report_hpd_work(struct work_struct *work) { char buf[16]; char *envp[2]; if(Hdmi_get_HPD_status()) { //snprintf(buf, sizeof(buf), "HDMI_PLUGIN"); #ifdef CONFIG_SWITCH switch_set_state(&hdmi_switch_dev, 1); #endif __inf("switch_set_state 1\n"); disp_set_hdmi_hpd(1); } else { //snprintf(buf, sizeof(buf), "HDMI_PLUGOUT"); #ifdef CONFIG_SWITCH switch_set_state(&hdmi_switch_dev, 0); #endif __inf("switch_set_state 0\n"); disp_set_hdmi_hpd(0); } envp[0] = buf; envp[1] = NULL; //kobject_uevent_env(&ghdmi.dev->kobj, KOBJ_CHANGE, envp); }
__s32 DRV_hdmi_get_HPD_status(void) { return Hdmi_get_HPD_status(); }