Use HDMI connection / disconnection notifications to update an ALSA
jack object.
Change-Id: Ia18537be1ddb899b7ac490560bf91d7de83eae02
Signed-off-by: Chris Zhong <zyw@rock-chips.com>
#include <linux/component.h>
#include <linux/extcon.h>
#include <linux/firmware.h>
+#include <linux/hdmi-notifier.h>
#include <linux/regmap.h>
#include <linux/reset.h>
#include <linux/mfd/syscon.h>
}
out:
mutex_unlock(&dp->lock);
+ if (!ret)
+ hdmi_event_connect(dp->dev);
}
static void cdn_dp_encoder_disable(struct drm_encoder *encoder)
}
}
mutex_unlock(&dp->lock);
+ hdmi_event_disconnect(dp->dev);
/*
* In the following 2 cases, we need to run the event_work to re-enable