On 8/26/26 8:09 AM, Julien Stephan wrote:
> Import the hdmi_colorspace and hdmi_colorimetry enumerations from Linux'
> include/linux/hdmi.h. These describe the AVI InfoFrame colorspace and
> colorimetry fields defined by the HDMI specification and are identical
> across HDMI transmitters, so keep them in a generic header rather than
> duplicating them in each driver.
> 
> Signed-off-by: Julien Stephan <[email protected]>
> ---
>  include/linux/hdmi.h | 30 ++++++++++++++++++++++++++++++
>  1 file changed, 30 insertions(+)
> 
> diff --git a/include/linux/hdmi.h b/include/linux/hdmi.h
> new file mode 100644
> index 00000000000..dee862d2a63
> --- /dev/null
> +++ b/include/linux/hdmi.h
> @@ -0,0 +1,30 @@
> +/* SPDX-License-Identifier: GPL-2.0 */

Looks like original source is MIT licensed, so `MIT AND ...`

> +/*
> + * Partial port of Linux' include/linux/hdmi.h, carrying the pieces of the
> + * HDMI specification that are common to all HDMI transmitters.
> + *
> + * Copyright (C) 2012 Avionic Design GmbH
> + */
> +
> +#ifndef __LINUX_HDMI_H_
> +#define __LINUX_HDMI_H_
> +
> +enum hdmi_colorspace {
> +     HDMI_COLORSPACE_RGB,
> +     HDMI_COLORSPACE_YUV422,
> +     HDMI_COLORSPACE_YUV444,
> +     HDMI_COLORSPACE_YUV420,
> +     HDMI_COLORSPACE_RESERVED4,
> +     HDMI_COLORSPACE_RESERVED5,
> +     HDMI_COLORSPACE_RESERVED6,
> +     HDMI_COLORSPACE_IDO_DEFINED,
> +};
> +
> +enum hdmi_colorimetry {
> +     HDMI_COLORIMETRY_NONE,
> +     HDMI_COLORIMETRY_ITU_601,
> +     HDMI_COLORIMETRY_ITU_709,
> +     HDMI_COLORIMETRY_EXTENDED,
> +};
> +
> +#endif /* __LINUX_HDMI_H_ */
> 

Reply via email to