Linux kernel mirror (for testing)
git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel
os
linux
1/* SPDX-License-Identifier: MIT */
2
3#ifndef DRM_HDMI_HELPER
4#define DRM_HDMI_HELPER
5
6#include <linux/hdmi.h>
7
8struct drm_connector;
9struct drm_connector_state;
10struct drm_display_mode;
11enum drm_output_color_format;
12
13void
14drm_hdmi_avi_infoframe_colorimetry(struct hdmi_avi_infoframe *frame,
15 const struct drm_connector_state *conn_state);
16
17void
18drm_hdmi_avi_infoframe_bars(struct hdmi_avi_infoframe *frame,
19 const struct drm_connector_state *conn_state);
20
21int
22drm_hdmi_infoframe_set_hdr_metadata(struct hdmi_drm_infoframe *frame,
23 const struct drm_connector_state *conn_state);
24
25void drm_hdmi_avi_infoframe_content_type(struct hdmi_avi_infoframe *frame,
26 const struct drm_connector_state *conn_state);
27
28unsigned long long
29drm_hdmi_compute_mode_clock(const struct drm_display_mode *mode,
30 unsigned int bpc, enum drm_output_color_format fmt);
31
32void
33drm_hdmi_acr_get_n_cts(unsigned long long tmds_char_rate,
34 unsigned int sample_rate,
35 unsigned int *out_n,
36 unsigned int *out_cts);
37
38#endif