Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 18d33652 authored by qctecmdr Service's avatar qctecmdr Service Committed by Gerrit - the friendly Code Review server
Browse files

Merge "msm: mdss: hdmi: handle hpd uevents notifications gracefully"

parents 4741e685 d7017bf5
Loading
Loading
Loading
Loading
+8 −1
Original line number Diff line number Diff line
@@ -434,7 +434,7 @@ static inline void hdmi_tx_audio_notify(
}

static void hdmi_tx_send_cable_notification(
		struct hdmi_tx_ctrl *hdmi_ctrl, int val)
		struct hdmi_tx_ctrl *hdmi_ctrl, bool val)
{
	char name[HPD_STRING_SIZE], status[HPD_STRING_SIZE];
	char *envp[3];
@@ -444,6 +444,13 @@ static void hdmi_tx_send_cable_notification(
		return;
	}

	if (hdmi_ctrl->hpd_notif_state == !!val) {
		pr_debug("%s: no change in HPD state\n", __func__);
		return;
	}

	hdmi_ctrl->hpd_notif_state = !!val;

	snprintf(name, HPD_STRING_SIZE, "name=%s", "HDMI");
	snprintf(status, HPD_STRING_SIZE, "status=%s",
			val ? "connected" : "disconnected");
+1 −0
Original line number Diff line number Diff line
@@ -102,6 +102,7 @@ struct hdmi_tx_ctrl {
	u32 hdmi_tx_major_version;
	u32 max_pclk_khz;
	u32 hpd_state;
	bool hpd_notif_state;
	u32 hpd_off_pending;
	u32 hpd_feature_on;
	u32 hpd_initialized;