weston: LVDS mode use outputmode [1/1]

PD#SWPL-177667

Problem:
LVDS mode set fail

Solution:
get LVDS mode use outputmode env

Verify:
t7

Change-Id: I22da9108b9319b82880d6f2ee85055cb9be5c70c
Signed-off-by: leng.fang <leng.fang@amlogic.com>
diff --git a/libweston/backend-drm/drm.c b/libweston/backend-drm/drm.c
index ebf1509..013fa47 100644
--- a/libweston/backend-drm/drm.c
+++ b/libweston/backend-drm/drm.c
@@ -2106,12 +2106,12 @@
 					drm_head_get_current_protection(head));
 
 #ifdef ENABLE_MODE_POLICY
-	if (head->base.connected)
-		init_mode_policy_without_mode(&head->base,
-				head->backend->drm.fd, head->connector.conn);
+	init_mode_policy_without_mode(&head->base,
+			head->backend->drm.fd, head->connector.conn);
+
 	if (head->base.device_changed) {
 		mode_policy_set_head(&head->base);
-		mode_policy_set_hotplug(head->base.connected ?
+		mode_policy_set_state(&head->base, head->base.connected ?
 				AML_WESTON_HOTPLUG_PLUG : AML_WESTON_HOTPLUG_UNPLUG, false);
 	}
 #endif
@@ -3183,7 +3183,7 @@
 #endif
 
 #ifdef ENABLE_MODE_POLICY
-	mode_policy_set_hotplug(AML_WESTON_HOTPLUG_BOOT, true);
+	mode_policy_set_state(NULL, AML_WESTON_HOTPLUG_BOOT, true);
 #endif
 
 	wl_list_init(&b->writeback_connector_list);