diff options
author | Jani Nikula <jani.nikula@intel.com> | 2023-05-30 12:08:13 +0300 |
---|---|---|
committer | Jani Nikula <jani.nikula@intel.com> | 2023-06-02 13:20:47 +0300 |
commit | 0374ffa507d8106202a956f5951226f1d9eac22e (patch) | |
tree | f7bebfd139e222420ccc2e691824d4dad000004e /include/drm/drm_connector.h | |
parent | 88e9664434c994e97a9f6f8cdd1535495c660cea (diff) | |
download | linux-stable-0374ffa507d8106202a956f5951226f1d9eac22e.tar.gz linux-stable-0374ffa507d8106202a956f5951226f1d9eac22e.tar.bz2 linux-stable-0374ffa507d8106202a956f5951226f1d9eac22e.zip |
drm/edid: parse display info has_audio similar to is_hdmi
Since we already iterate everything that's needed for determining audio,
reduce the need to call drm_detect_monitor_audio() by storing has_audio
to connector info.
Reviewed-by: Ankit Nautiyal <ankit.k.nautiyal@intel.com>
Acked-by: Thomas Zimmermann <tzimmermann@suse.de>
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/391a93b25c6bcbb39854aaa2813570cfb1580ed9.1685437500.git.jani.nikula@intel.com
Diffstat (limited to 'include/drm/drm_connector.h')
-rw-r--r-- | include/drm/drm_connector.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/drm/drm_connector.h b/include/drm/drm_connector.h index e6478fafa6b0..e143fef07de9 100644 --- a/include/drm/drm_connector.h +++ b/include/drm/drm_connector.h @@ -659,6 +659,14 @@ struct drm_display_info { bool is_hdmi; /** + * @has_audio: True if the sink supports audio. + * + * This field shall be used instead of calling + * drm_detect_monitor_audio() when possible. + */ + bool has_audio; + + /** * @has_hdmi_infoframe: Does the sink support the HDMI infoframe? */ bool has_hdmi_infoframe; |