mirror of
https://github.com/torvalds/linux.git
synced 2024-11-25 05:32:00 +00:00
40167bcbd1
A lot of HDMI drivers have some variation of the formula to calculate the TMDS character rate from a mode, but few of them actually take all parameters into account. Let's create a helper to provide that rate taking all parameters into account. Reviewed-by: Dave Stevenson <dave.stevenson@raspberrypi.com> Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org> Link: https://patchwork.freedesktop.org/patch/msgid/20240527-kms-hdmi-connector-state-v15-9-c5af16c3aae2@kernel.org Signed-off-by: Maxime Ripard <mripard@kernel.org>
32 lines
840 B
C
32 lines
840 B
C
/* SPDX-License-Identifier: MIT */
|
|
|
|
#ifndef DRM_HDMI_HELPER
|
|
#define DRM_HDMI_HELPER
|
|
|
|
#include <linux/hdmi.h>
|
|
|
|
struct drm_connector;
|
|
struct drm_connector_state;
|
|
struct drm_display_mode;
|
|
|
|
void
|
|
drm_hdmi_avi_infoframe_colorimetry(struct hdmi_avi_infoframe *frame,
|
|
const struct drm_connector_state *conn_state);
|
|
|
|
void
|
|
drm_hdmi_avi_infoframe_bars(struct hdmi_avi_infoframe *frame,
|
|
const struct drm_connector_state *conn_state);
|
|
|
|
int
|
|
drm_hdmi_infoframe_set_hdr_metadata(struct hdmi_drm_infoframe *frame,
|
|
const struct drm_connector_state *conn_state);
|
|
|
|
void drm_hdmi_avi_infoframe_content_type(struct hdmi_avi_infoframe *frame,
|
|
const struct drm_connector_state *conn_state);
|
|
|
|
unsigned long long
|
|
drm_hdmi_compute_mode_clock(const struct drm_display_mode *mode,
|
|
unsigned int bpc, enum hdmi_colorspace fmt);
|
|
|
|
#endif
|