Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

OMAPDSS: add hdmi ops to hdmi_ops and omap_dss_driver

Add two new ops for HDMI: set_infoframe() and set_hdmi_mode(). The first
one can be used to specify the infoframe that should be sent to the HDMI
monitor, and the second one is used to enable HDMI mode (versus DVI
mode).

Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>

+9
+9
include/video/omapdss.h
··· 61 61 struct dss_lcd_mgr_config; 62 62 struct snd_aes_iec958; 63 63 struct snd_cea_861_aud_if; 64 + struct hdmi_avi_infoframe; 64 65 65 66 enum omap_display_type { 66 67 OMAP_DISPLAY_TYPE_NONE = 0, ··· 632 631 int (*read_edid)(struct omap_dss_device *dssdev, u8 *buf, int len); 633 632 bool (*detect)(struct omap_dss_device *dssdev); 634 633 634 + int (*set_hdmi_mode)(struct omap_dss_device *dssdev, bool hdmi_mode); 635 + int (*set_infoframe)(struct omap_dss_device *dssdev, 636 + const struct hdmi_avi_infoframe *avi); 637 + 635 638 /* 636 639 * Note: These functions might sleep. Do not call while 637 640 * holding a spinlock/readlock. ··· 854 849 855 850 int (*read_edid)(struct omap_dss_device *dssdev, u8 *buf, int len); 856 851 bool (*detect)(struct omap_dss_device *dssdev); 852 + 853 + int (*set_hdmi_mode)(struct omap_dss_device *dssdev, bool hdmi_mode); 854 + int (*set_hdmi_infoframe)(struct omap_dss_device *dssdev, 855 + const struct hdmi_avi_infoframe *avi); 857 856 858 857 /* 859 858 * For display drivers that support audio. This encompasses