drm/bridge/synopsys: Report hdmi HPD to userspace for cec
When hdmi HPD is occurred, call cec_notifier_repo_cec_hpd. Change-Id: If2047121c8ccf55e9a49fa4c3c4ec2187248a593 Signed-off-by: Algea Cao <algea.cao@rock-chips.com>
This commit is contained in:
parent
92cd6903dc
commit
824179b35e
1 changed files with 12 additions and 2 deletions
|
|
@ -319,8 +319,18 @@ static void repo_hpd_event(struct work_struct *p_work)
|
|||
{
|
||||
struct dw_hdmi *hdmi = container_of(p_work, struct dw_hdmi, work.work);
|
||||
|
||||
if (hdmi->bridge.dev)
|
||||
drm_helper_hpd_irq_event(hdmi->bridge.dev);
|
||||
if (hdmi->bridge.dev) {
|
||||
bool change;
|
||||
|
||||
change = drm_helper_hpd_irq_event(hdmi->bridge.dev);
|
||||
|
||||
#ifdef CONFIG_CEC_NOTIFIER
|
||||
if (change)
|
||||
cec_notifier_repo_cec_hpd(hdmi->cec_notifier,
|
||||
hdmi->hpd_state,
|
||||
ktime_get());
|
||||
#endif
|
||||
}
|
||||
|
||||
#ifdef CONFIG_SWITCH
|
||||
if (hdmi->hpd_state)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue