1 /* SPDX-License-Identifier: MIT */ 2 3 #ifndef DRM_HDMI_STATE_HELPER_H_ 4 #define DRM_HDMI_STATE_HELPER_H_ 5 6 struct drm_atomic_state; 7 struct drm_connector; 8 struct drm_connector_state; 9 struct drm_display_mode; 10 struct hdmi_audio_infoframe; 11 12 enum drm_connector_status; 13 14 void __drm_atomic_helper_connector_hdmi_reset(struct drm_connector *connector, 15 struct drm_connector_state *new_conn_state); 16 17 int drm_atomic_helper_connector_hdmi_check(struct drm_connector *connector, 18 struct drm_atomic_state *state); 19 20 int drm_atomic_helper_connector_hdmi_update_audio_infoframe(struct drm_connector *connector, 21 struct hdmi_audio_infoframe *frame); 22 int drm_atomic_helper_connector_hdmi_clear_audio_infoframe(struct drm_connector *connector); 23 int drm_atomic_helper_connector_hdmi_update_infoframes(struct drm_connector *connector, 24 struct drm_atomic_state *state); 25 void drm_atomic_helper_connector_hdmi_hotplug(struct drm_connector *connector, 26 enum drm_connector_status status); 27 void drm_atomic_helper_connector_hdmi_force(struct drm_connector *connector); 28 29 enum drm_mode_status 30 drm_hdmi_connector_mode_valid(struct drm_connector *connector, 31 struct drm_display_mode *mode); 32 33 #endif // DRM_HDMI_STATE_HELPER_H_ 34