mirror of
https://github.com/torvalds/linux.git
synced 2026-06-04 20:46:48 +02:00
The hdmi_colorspace enum was defined to represent the colorspace value of the HDMI infoframes. It was later used by some HDMI drivers to express the output format they should be setting up. During the introduction of the HDMI helpers, it then was used to represent it in the drm_connector_hdmi_state structure. However, it's always been somewhat redundant with the DRM_COLOR_FORMAT_* defines, and now with the drm_output_color_format enum. Let's consolidate around drm_output_color_format in drm_connector_hdmi_state to facilitate the current effort to provide a global output format selection mechanism. Acked-by: Jani Nikula <jani.nikula@intel.com> Reviewed-by: Nicolas Frattaroli <nicolas.frattaroli@collabora.com> Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com> Link: https://lore.kernel.org/r/20260305-drm-rework-color-formats-v3-14-f3935f6db579@kernel.org Signed-off-by: Maxime Ripard <mripard@kernel.org>
39 lines
1.0 KiB
C
39 lines
1.0 KiB
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;
|
|
enum drm_output_color_format;
|
|
|
|
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 drm_output_color_format fmt);
|
|
|
|
void
|
|
drm_hdmi_acr_get_n_cts(unsigned long long tmds_char_rate,
|
|
unsigned int sample_rate,
|
|
unsigned int *out_n,
|
|
unsigned int *out_cts);
|
|
|
|
#endif
|