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-connector and tpd12s015

Add pass-through functions for set_infoframe and set_hdmi_mode to
hdmi-connector and tpd12s015 drivers.

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

+39
+19
drivers/video/fbdev/omap2/displays-new/connector-hdmi.c
··· 262 262 return 0; 263 263 } 264 264 265 + static int hdmic_set_hdmi_mode(struct omap_dss_device *dssdev, bool hdmi_mode) 266 + { 267 + struct panel_drv_data *ddata = to_panel_data(dssdev); 268 + struct omap_dss_device *in = ddata->in; 269 + 270 + return in->ops.hdmi->set_hdmi_mode(in, hdmi_mode); 271 + } 272 + 273 + static int hdmic_set_infoframe(struct omap_dss_device *dssdev, 274 + const struct hdmi_avi_infoframe *avi) 275 + { 276 + struct panel_drv_data *ddata = to_panel_data(dssdev); 277 + struct omap_dss_device *in = ddata->in; 278 + 279 + return in->ops.hdmi->set_infoframe(in, avi); 280 + } 281 + 265 282 static struct omap_dss_driver hdmic_driver = { 266 283 .connect = hdmic_connect, 267 284 .disconnect = hdmic_disconnect, ··· 294 277 295 278 .read_edid = hdmic_read_edid, 296 279 .detect = hdmic_detect, 280 + .set_hdmi_mode = hdmic_set_hdmi_mode, 281 + .set_hdmi_infoframe = hdmic_set_infoframe, 297 282 298 283 .audio_enable = hdmic_audio_enable, 299 284 .audio_disable = hdmic_audio_disable,
+20
drivers/video/fbdev/omap2/displays-new/encoder-tpd12s015.c
··· 242 242 return in->ops.hdmi->audio_config(in, audio); 243 243 } 244 244 245 + static int tpd_set_infoframe(struct omap_dss_device *dssdev, 246 + const struct hdmi_avi_infoframe *avi) 247 + { 248 + struct panel_drv_data *ddata = to_panel_data(dssdev); 249 + struct omap_dss_device *in = ddata->in; 250 + 251 + return in->ops.hdmi->set_infoframe(in, avi); 252 + } 253 + 254 + static int tpd_set_hdmi_mode(struct omap_dss_device *dssdev, 255 + bool hdmi_mode) 256 + { 257 + struct panel_drv_data *ddata = to_panel_data(dssdev); 258 + struct omap_dss_device *in = ddata->in; 259 + 260 + return in->ops.hdmi->set_hdmi_mode(in, hdmi_mode); 261 + } 262 + 245 263 static const struct omapdss_hdmi_ops tpd_hdmi_ops = { 246 264 .connect = tpd_connect, 247 265 .disconnect = tpd_disconnect, ··· 273 255 274 256 .read_edid = tpd_read_edid, 275 257 .detect = tpd_detect, 258 + .set_infoframe = tpd_set_infoframe, 259 + .set_hdmi_mode = tpd_set_hdmi_mode, 276 260 277 261 .audio_enable = tpd_audio_enable, 278 262 .audio_disable = tpd_audio_disable,