Lines Matching full:hdmi
10 #include <linux/hdmi.h>
21 #include <sound/hdmi-codec.h>
159 struct sti_hdmi *hdmi; member
166 u32 hdmi_read(struct sti_hdmi *hdmi, int offset) in hdmi_read() argument
168 return readl(hdmi->regs + offset); in hdmi_read()
171 void hdmi_write(struct sti_hdmi *hdmi, u32 val, int offset) in hdmi_write() argument
173 writel(val, hdmi->regs + offset); in hdmi_write()
177 * HDMI interrupt handler threaded
184 struct sti_hdmi *hdmi = arg; in hdmi_irq_thread() local
187 if (hdmi->irq_status & HDMI_INT_HOT_PLUG) { in hdmi_irq_thread()
188 hdmi->hpd = readl(hdmi->regs + HDMI_STA) & HDMI_STA_HOT_PLUG; in hdmi_irq_thread()
189 if (hdmi->drm_dev) in hdmi_irq_thread()
190 drm_helper_hpd_irq_event(hdmi->drm_dev); in hdmi_irq_thread()
196 if (hdmi->irq_status & (HDMI_INT_SW_RST | HDMI_INT_DLL_LCK)) { in hdmi_irq_thread()
197 hdmi->event_received = true; in hdmi_irq_thread()
198 wake_up_interruptible(&hdmi->wait_event); in hdmi_irq_thread()
202 if (hdmi->irq_status & HDMI_INT_AUDIO_FIFO_XRUN) in hdmi_irq_thread()
209 * HDMI interrupt handler
216 struct sti_hdmi *hdmi = arg; in hdmi_irq() local
219 hdmi->irq_status = hdmi_read(hdmi, HDMI_INT_STA); in hdmi_irq()
222 hdmi_write(hdmi, hdmi->irq_status, HDMI_INT_CLR); in hdmi_irq()
225 hdmi_read(hdmi, HDMI_INT_STA); in hdmi_irq()
231 * Set hdmi active area depending on the drm display mode selected
233 * @hdmi: pointer on the hdmi internal structure
235 static void hdmi_active_area(struct sti_hdmi *hdmi) in hdmi_active_area() argument
240 xmin = sti_vtg_get_pixel_number(hdmi->mode, 1); in hdmi_active_area()
241 xmax = sti_vtg_get_pixel_number(hdmi->mode, hdmi->mode.hdisplay); in hdmi_active_area()
242 ymin = sti_vtg_get_line_number(hdmi->mode, 0); in hdmi_active_area()
243 ymax = sti_vtg_get_line_number(hdmi->mode, hdmi->mode.vdisplay - 1); in hdmi_active_area()
245 hdmi_write(hdmi, xmin, HDMI_ACTIVE_VID_XMIN); in hdmi_active_area()
246 hdmi_write(hdmi, xmax, HDMI_ACTIVE_VID_XMAX); in hdmi_active_area()
247 hdmi_write(hdmi, ymin, HDMI_ACTIVE_VID_YMIN); in hdmi_active_area()
248 hdmi_write(hdmi, ymax, HDMI_ACTIVE_VID_YMAX); in hdmi_active_area()
252 * Overall hdmi configuration
254 * @hdmi: pointer on the hdmi internal structure
256 static void hdmi_config(struct sti_hdmi *hdmi) in hdmi_config() argument
267 if (hdmi->hdmi_monitor) in hdmi_config()
271 if (hdmi->mode.flags & DRM_MODE_FLAG_NHSYNC) { in hdmi_config()
277 if (hdmi->mode.flags & DRM_MODE_FLAG_NVSYNC) { in hdmi_config()
282 /* Enable HDMI */ in hdmi_config()
285 hdmi_write(hdmi, conf, HDMI_CFG); in hdmi_config()
291 * @hdmi: pointer on the hdmi internal structure
294 static void hdmi_infoframe_reset(struct sti_hdmi *hdmi, in hdmi_infoframe_reset() argument
319 val = hdmi_read(hdmi, HDMI_SW_DI_CFG); in hdmi_infoframe_reset()
321 hdmi_write(hdmi, val, HDMI_SW_DI_CFG); in hdmi_infoframe_reset()
324 hdmi_write(hdmi, 0x0, head_offset); in hdmi_infoframe_reset()
326 hdmi_write(hdmi, 0x0, pack_offset + i); in hdmi_infoframe_reset()
332 * @ptr: pointer on the hdmi internal structure
350 * @hdmi: pointer on the hdmi internal structure
354 static void hdmi_infoframe_write_infopack(struct sti_hdmi *hdmi, in hdmi_infoframe_write_infopack() argument
387 val = hdmi_read(hdmi, HDMI_SW_DI_CFG); in hdmi_infoframe_write_infopack()
389 hdmi_write(hdmi, val, HDMI_SW_DI_CFG); in hdmi_infoframe_write_infopack()
394 writel(val, hdmi->regs + head_offset); in hdmi_infoframe_write_infopack()
408 writel(val, hdmi->regs + pack_offset + i); in hdmi_infoframe_write_infopack()
412 val = hdmi_read(hdmi, HDMI_SW_DI_CFG); in hdmi_infoframe_write_infopack()
414 hdmi_write(hdmi, val, HDMI_SW_DI_CFG); in hdmi_infoframe_write_infopack()
421 * contains information about HDMI transmission mode such as color space,
424 * @hdmi: pointer on the hdmi internal structure
428 static int hdmi_avi_infoframe_config(struct sti_hdmi *hdmi) in hdmi_avi_infoframe_config() argument
430 struct drm_display_mode *mode = &hdmi->mode; in hdmi_avi_infoframe_config()
444 infoframe.colorspace = hdmi->colorspace; in hdmi_avi_infoframe_config()
454 hdmi_infoframe_write_infopack(hdmi, buffer, ret); in hdmi_avi_infoframe_config()
463 * contains information about HDMI transmission mode such as audio codec,
466 * @hdmi: pointer on the hdmi internal structure
470 static int hdmi_audio_infoframe_config(struct sti_hdmi *hdmi) in hdmi_audio_infoframe_config() argument
472 struct hdmi_audio_params *audio = &hdmi->audio; in hdmi_audio_infoframe_config()
486 hdmi_infoframe_write_infopack(hdmi, buffer, ret); in hdmi_audio_infoframe_config()
489 val = hdmi_read(hdmi, HDMI_SW_DI_CFG); in hdmi_audio_infoframe_config()
492 hdmi_write(hdmi, val, HDMI_SW_DI_CFG); in hdmi_audio_infoframe_config()
504 * @hdmi: pointer on the hdmi internal structure
509 static int hdmi_vendor_infoframe_config(struct sti_hdmi *hdmi) in hdmi_vendor_infoframe_config() argument
511 struct drm_display_mode *mode = &hdmi->mode; in hdmi_vendor_infoframe_config()
519 hdmi->drm_connector, in hdmi_vendor_infoframe_config()
537 hdmi_infoframe_write_infopack(hdmi, buffer, ret); in hdmi_vendor_infoframe_config()
543 * Software reset of the hdmi subsystem
545 * @hdmi: pointer on the hdmi internal structure
549 static void hdmi_swreset(struct sti_hdmi *hdmi) in hdmi_swreset() argument
555 /* Enable hdmi_audio clock only during hdmi reset */ in hdmi_swreset()
556 if (clk_prepare_enable(hdmi->clk_audio)) in hdmi_swreset()
560 hdmi->event_received = false; in hdmi_swreset()
562 val = hdmi_read(hdmi, HDMI_CFG); in hdmi_swreset()
564 hdmi_write(hdmi, val, HDMI_CFG); in hdmi_swreset()
567 wait_event_interruptible_timeout(hdmi->wait_event, in hdmi_swreset()
568 hdmi->event_received, in hdmi_swreset()
576 if ((hdmi_read(hdmi, HDMI_STA) & HDMI_STA_SW_RST) == 0) in hdmi_swreset()
577 DRM_DEBUG_DRIVER("Warning: HDMI sw reset timeout occurs\n"); in hdmi_swreset()
579 val = hdmi_read(hdmi, HDMI_CFG); in hdmi_swreset()
581 hdmi_write(hdmi, val, HDMI_CFG); in hdmi_swreset()
584 clk_disable_unprepare(hdmi->clk_audio); in hdmi_swreset()
590 hdmi_read(hdmi, reg))
599 DBGFS_PRINT_STR("mode:", tmp ? "HDMI" : "DVI"); in hdmi_dbg_cfg()
626 DBGFS_PRINT_STR("hdmi cable:", tmp ? "connected" : "not connected"); in hdmi_dbg_sta()
660 struct sti_hdmi *hdmi = (struct sti_hdmi *)node->info_ent->data; in hdmi_dbg_show() local
662 seq_printf(s, "HDMI: (vaddr = 0x%p)", hdmi->regs); in hdmi_dbg_show()
664 hdmi_dbg_cfg(s, hdmi_read(hdmi, HDMI_CFG)); in hdmi_dbg_show()
667 hdmi_dbg_sta(s, hdmi_read(hdmi, HDMI_STA)); in hdmi_dbg_show()
670 DBGFS_PRINT_INT("Xmin:", hdmi_read(hdmi, HDMI_ACTIVE_VID_XMIN)); in hdmi_dbg_show()
673 DBGFS_PRINT_INT("Xmax:", hdmi_read(hdmi, HDMI_ACTIVE_VID_XMAX)); in hdmi_dbg_show()
676 DBGFS_PRINT_INT("Ymin:", hdmi_read(hdmi, HDMI_ACTIVE_VID_YMIN)); in hdmi_dbg_show()
679 DBGFS_PRINT_INT("Ymax:", hdmi_read(hdmi, HDMI_ACTIVE_VID_YMAX)); in hdmi_dbg_show()
681 hdmi_dbg_sw_di_cfg(s, hdmi_read(hdmi, HDMI_SW_DI_CFG)); in hdmi_dbg_show()
722 { "hdmi", hdmi_dbg_show, 0, NULL },
725 static int hdmi_debugfs_init(struct sti_hdmi *hdmi, struct drm_minor *minor) in hdmi_debugfs_init() argument
730 hdmi_debugfs_files[i].data = hdmi; in hdmi_debugfs_init()
739 struct sti_hdmi *hdmi = bridge->driver_private; in sti_hdmi_disable() local
741 u32 val = hdmi_read(hdmi, HDMI_CFG); in sti_hdmi_disable()
743 if (!hdmi->enabled) in sti_hdmi_disable()
748 /* Disable HDMI */ in sti_hdmi_disable()
750 hdmi_write(hdmi, val, HDMI_CFG); in sti_hdmi_disable()
752 hdmi_write(hdmi, 0xffffffff, HDMI_INT_CLR); in sti_hdmi_disable()
755 hdmi->phy_ops->stop(hdmi); in sti_hdmi_disable()
758 hdmi_infoframe_reset(hdmi, HDMI_IFRAME_SLOT_AVI); in sti_hdmi_disable()
759 hdmi_infoframe_reset(hdmi, HDMI_IFRAME_SLOT_AUDIO); in sti_hdmi_disable()
760 hdmi_infoframe_reset(hdmi, HDMI_IFRAME_SLOT_VENDOR); in sti_hdmi_disable()
763 hdmi_write(hdmi, 0x0000, HDMI_DFLT_CHL0_DAT); in sti_hdmi_disable()
764 hdmi_write(hdmi, 0x0000, HDMI_DFLT_CHL1_DAT); in sti_hdmi_disable()
765 hdmi_write(hdmi, 0x0060, HDMI_DFLT_CHL2_DAT); in sti_hdmi_disable()
767 /* Disable/unprepare hdmi clock */ in sti_hdmi_disable()
768 clk_disable_unprepare(hdmi->clk_phy); in sti_hdmi_disable()
769 clk_disable_unprepare(hdmi->clk_tmds); in sti_hdmi_disable()
770 clk_disable_unprepare(hdmi->clk_pix); in sti_hdmi_disable()
772 hdmi->enabled = false; in sti_hdmi_disable()
774 cec_notifier_set_phys_addr(hdmi->notifier, CEC_PHYS_ADDR_INVALID); in sti_hdmi_disable()
785 * Values computed are based on table described in HDMI specification 1.4b
823 static int hdmi_audio_configure(struct sti_hdmi *hdmi) in hdmi_audio_configure() argument
826 struct hdmi_audio_params *params = &hdmi->audio; in hdmi_audio_configure()
831 if (!hdmi->enabled) in hdmi_audio_configure()
838 params->sample_rate, hdmi->mode.clock * 1000, n); in hdmi_audio_configure()
839 hdmi_write(hdmi, n, HDMI_AUDN); in hdmi_audio_configure()
841 /* update HDMI registers according to configuration */ in hdmi_audio_configure()
861 hdmi_write(hdmi, audio_cfg, HDMI_AUDIO_CFG); in hdmi_audio_configure()
863 return hdmi_audio_infoframe_config(hdmi); in hdmi_audio_configure()
868 struct sti_hdmi *hdmi = bridge->driver_private; in sti_hdmi_pre_enable() local
872 if (hdmi->enabled) in sti_hdmi_pre_enable()
876 if (clk_prepare_enable(hdmi->clk_pix)) in sti_hdmi_pre_enable()
878 if (clk_prepare_enable(hdmi->clk_tmds)) in sti_hdmi_pre_enable()
880 if (clk_prepare_enable(hdmi->clk_phy)) in sti_hdmi_pre_enable()
883 hdmi->enabled = true; in sti_hdmi_pre_enable()
885 /* Program hdmi serializer and start phy */ in sti_hdmi_pre_enable()
886 if (!hdmi->phy_ops->start(hdmi)) { in sti_hdmi_pre_enable()
887 DRM_ERROR("Unable to start hdmi phy\n"); in sti_hdmi_pre_enable()
891 /* Program hdmi active area */ in sti_hdmi_pre_enable()
892 hdmi_active_area(hdmi); in sti_hdmi_pre_enable()
895 hdmi_write(hdmi, HDMI_WORKING_INT, HDMI_INT_EN); in sti_hdmi_pre_enable()
897 /* Program hdmi config */ in sti_hdmi_pre_enable()
898 hdmi_config(hdmi); in sti_hdmi_pre_enable()
901 if (hdmi_avi_infoframe_config(hdmi)) in sti_hdmi_pre_enable()
904 if (hdmi->audio.enabled) { in sti_hdmi_pre_enable()
905 if (hdmi_audio_configure(hdmi)) in sti_hdmi_pre_enable()
908 hdmi_audio_infoframe_config(hdmi); in sti_hdmi_pre_enable()
912 if (hdmi_vendor_infoframe_config(hdmi)) in sti_hdmi_pre_enable()
916 hdmi_swreset(hdmi); in sti_hdmi_pre_enable()
923 struct sti_hdmi *hdmi = bridge->driver_private; in sti_hdmi_set_mode() local
929 memcpy(&hdmi->mode, mode, sizeof(struct drm_display_mode)); in sti_hdmi_set_mode()
932 ret = clk_set_rate(hdmi->clk_pix, mode->clock * 1000); in sti_hdmi_set_mode()
938 ret = clk_set_rate(hdmi->clk_phy, mode->clock * 1000); in sti_hdmi_set_mode()
963 struct sti_hdmi *hdmi = hdmi_connector->hdmi; in sti_hdmi_connector_get_modes() local
969 edid = drm_get_edid(connector, hdmi->ddc_adapt); in sti_hdmi_connector_get_modes()
973 hdmi->hdmi_monitor = drm_detect_hdmi_monitor(edid); in sti_hdmi_connector_get_modes()
975 (hdmi->hdmi_monitor ? "hdmi monitor" : "dvi monitor"), in sti_hdmi_connector_get_modes()
977 cec_notifier_set_phys_addr_from_edid(hdmi->notifier, edid); in sti_hdmi_connector_get_modes()
986 DRM_ERROR("Can't read HDMI EDID\n"); in sti_hdmi_connector_get_modes()
1001 struct sti_hdmi *hdmi = hdmi_connector->hdmi; in sti_hdmi_connector_mode_valid() local
1004 result = clk_round_rate(hdmi->clk_pix, target); in sti_hdmi_connector_mode_valid()
1010 DRM_DEBUG_DRIVER("hdmi pixclk=%d not supported\n", target); in sti_hdmi_connector_mode_valid()
1029 struct sti_hdmi *hdmi = hdmi_connector->hdmi; in sti_hdmi_connector_detect() local
1033 if (hdmi->hpd) { in sti_hdmi_connector_detect()
1034 DRM_DEBUG_DRIVER("hdmi cable connected\n"); in sti_hdmi_connector_detect()
1038 DRM_DEBUG_DRIVER("hdmi cable disconnected\n"); in sti_hdmi_connector_detect()
1039 cec_notifier_set_phys_addr(hdmi->notifier, CEC_PHYS_ADDR_INVALID); in sti_hdmi_connector_detect()
1048 struct sti_hdmi *hdmi = hdmi_connector->hdmi; in sti_hdmi_connector_init_property() local
1052 hdmi->colorspace = DEFAULT_COLORSPACE_MODE; in sti_hdmi_connector_init_property()
1061 drm_object_attach_property(&connector->base, prop, hdmi->colorspace); in sti_hdmi_connector_init_property()
1072 struct sti_hdmi *hdmi = hdmi_connector->hdmi; in sti_hdmi_connector_set_property() local
1075 hdmi->colorspace = val; in sti_hdmi_connector_set_property()
1079 DRM_ERROR("failed to set hdmi connector property\n"); in sti_hdmi_connector_set_property()
1091 struct sti_hdmi *hdmi = hdmi_connector->hdmi; in sti_hdmi_connector_get_property() local
1094 *val = hdmi->colorspace; in sti_hdmi_connector_get_property()
1098 DRM_ERROR("failed to get hdmi connector property\n"); in sti_hdmi_connector_get_property()
1106 struct sti_hdmi *hdmi = hdmi_connector->hdmi; in sti_hdmi_late_register() local
1108 if (hdmi_debugfs_init(hdmi, hdmi->drm_dev->primary)) { in sti_hdmi_late_register()
1109 DRM_ERROR("HDMI debugfs setup failed\n"); in sti_hdmi_late_register()
1142 struct sti_hdmi *hdmi = dev_get_drvdata(dev); in hdmi_audio_shutdown() local
1150 hdmi_write(hdmi, audio_cfg, HDMI_AUDIO_CFG); in hdmi_audio_shutdown()
1152 hdmi->audio.enabled = false; in hdmi_audio_shutdown()
1153 hdmi_audio_infoframe_config(hdmi); in hdmi_audio_shutdown()
1161 struct sti_hdmi *hdmi = dev_get_drvdata(dev); in hdmi_audio_hw_params() local
1176 hdmi->audio.sample_width = params->sample_width; in hdmi_audio_hw_params()
1177 hdmi->audio.sample_rate = params->sample_rate; in hdmi_audio_hw_params()
1178 hdmi->audio.cea = params->cea; in hdmi_audio_hw_params()
1180 hdmi->audio.enabled = true; in hdmi_audio_hw_params()
1182 ret = hdmi_audio_configure(hdmi); in hdmi_audio_hw_params()
1191 struct sti_hdmi *hdmi = dev_get_drvdata(dev); in hdmi_audio_digital_mute() local
1196 hdmi_write(hdmi, HDMI_SAMPLE_FLAT_ALL, HDMI_SAMPLE_FLAT_MASK); in hdmi_audio_digital_mute()
1198 hdmi_write(hdmi, HDMI_SAMPLE_FLAT_NO, HDMI_SAMPLE_FLAT_MASK); in hdmi_audio_digital_mute()
1205 struct sti_hdmi *hdmi = dev_get_drvdata(dev); in hdmi_audio_get_eld() local
1206 struct drm_connector *connector = hdmi->drm_connector; in hdmi_audio_get_eld()
1222 struct sti_hdmi *hdmi) in sti_hdmi_register_audio_driver() argument
1232 hdmi->audio.enabled = false; in sti_hdmi_register_audio_driver()
1234 hdmi->audio_pdev = platform_device_register_data( in sti_hdmi_register_audio_driver()
1238 if (IS_ERR(hdmi->audio_pdev)) in sti_hdmi_register_audio_driver()
1239 return PTR_ERR(hdmi->audio_pdev); in sti_hdmi_register_audio_driver()
1248 struct sti_hdmi *hdmi = dev_get_drvdata(dev); in sti_hdmi_bind() local
1257 hdmi->drm_dev = drm_dev; in sti_hdmi_bind()
1267 connector->hdmi = hdmi; in sti_hdmi_bind()
1273 bridge->driver_private = hdmi; in sti_hdmi_bind()
1291 hdmi->drm_connector = drm_connector; in sti_hdmi_bind()
1299 err = sti_hdmi_register_audio_driver(dev, hdmi); in sti_hdmi_bind()
1306 err = hdmi_audio_infoframe_init(&hdmi->audio.cea); in sti_hdmi_bind()
1313 hdmi_write(hdmi, HDMI_DEFAULT_INT, HDMI_INT_EN); in sti_hdmi_bind()
1318 hdmi->drm_connector = NULL; in sti_hdmi_bind()
1334 .compatible = "st,stih407-hdmi",
1345 struct sti_hdmi *hdmi; in sti_hdmi_probe() local
1353 hdmi = devm_kzalloc(dev, sizeof(*hdmi), GFP_KERNEL); in sti_hdmi_probe()
1354 if (!hdmi) in sti_hdmi_probe()
1359 hdmi->ddc_adapt = of_get_i2c_adapter_by_node(ddc); in sti_hdmi_probe()
1361 if (!hdmi->ddc_adapt) in sti_hdmi_probe()
1365 hdmi->dev = pdev->dev; in sti_hdmi_probe()
1368 res = platform_get_resource_byname(pdev, IORESOURCE_MEM, "hdmi-reg"); in sti_hdmi_probe()
1370 DRM_ERROR("Invalid hdmi resource\n"); in sti_hdmi_probe()
1374 hdmi->regs = devm_ioremap_nocache(dev, res->start, resource_size(res)); in sti_hdmi_probe()
1375 if (!hdmi->regs) { in sti_hdmi_probe()
1380 hdmi->phy_ops = (struct hdmi_phy_ops *) in sti_hdmi_probe()
1384 hdmi->clk_pix = devm_clk_get(dev, "pix"); in sti_hdmi_probe()
1385 if (IS_ERR(hdmi->clk_pix)) { in sti_hdmi_probe()
1387 ret = PTR_ERR(hdmi->clk_pix); in sti_hdmi_probe()
1391 hdmi->clk_tmds = devm_clk_get(dev, "tmds"); in sti_hdmi_probe()
1392 if (IS_ERR(hdmi->clk_tmds)) { in sti_hdmi_probe()
1394 ret = PTR_ERR(hdmi->clk_tmds); in sti_hdmi_probe()
1398 hdmi->clk_phy = devm_clk_get(dev, "phy"); in sti_hdmi_probe()
1399 if (IS_ERR(hdmi->clk_phy)) { in sti_hdmi_probe()
1401 ret = PTR_ERR(hdmi->clk_phy); in sti_hdmi_probe()
1405 hdmi->clk_audio = devm_clk_get(dev, "audio"); in sti_hdmi_probe()
1406 if (IS_ERR(hdmi->clk_audio)) { in sti_hdmi_probe()
1408 ret = PTR_ERR(hdmi->clk_audio); in sti_hdmi_probe()
1412 hdmi->hpd = readl(hdmi->regs + HDMI_STA) & HDMI_STA_HOT_PLUG; in sti_hdmi_probe()
1414 init_waitqueue_head(&hdmi->wait_event); in sti_hdmi_probe()
1416 hdmi->irq = platform_get_irq_byname(pdev, "irq"); in sti_hdmi_probe()
1417 if (hdmi->irq < 0) { in sti_hdmi_probe()
1418 DRM_ERROR("Cannot get HDMI irq\n"); in sti_hdmi_probe()
1419 ret = hdmi->irq; in sti_hdmi_probe()
1423 ret = devm_request_threaded_irq(dev, hdmi->irq, hdmi_irq, in sti_hdmi_probe()
1424 hdmi_irq_thread, IRQF_ONESHOT, dev_name(dev), hdmi); in sti_hdmi_probe()
1426 DRM_ERROR("Failed to register HDMI interrupt\n"); in sti_hdmi_probe()
1430 hdmi->notifier = cec_notifier_get(&pdev->dev); in sti_hdmi_probe()
1431 if (!hdmi->notifier) in sti_hdmi_probe()
1434 hdmi->reset = devm_reset_control_get(dev, "hdmi"); in sti_hdmi_probe()
1435 /* Take hdmi out of reset */ in sti_hdmi_probe()
1436 if (!IS_ERR(hdmi->reset)) in sti_hdmi_probe()
1437 reset_control_deassert(hdmi->reset); in sti_hdmi_probe()
1439 platform_set_drvdata(pdev, hdmi); in sti_hdmi_probe()
1444 i2c_put_adapter(hdmi->ddc_adapt); in sti_hdmi_probe()
1451 struct sti_hdmi *hdmi = dev_get_drvdata(&pdev->dev); in sti_hdmi_remove() local
1453 cec_notifier_set_phys_addr(hdmi->notifier, CEC_PHYS_ADDR_INVALID); in sti_hdmi_remove()
1455 i2c_put_adapter(hdmi->ddc_adapt); in sti_hdmi_remove()
1456 if (hdmi->audio_pdev) in sti_hdmi_remove()
1457 platform_device_unregister(hdmi->audio_pdev); in sti_hdmi_remove()
1460 cec_notifier_put(hdmi->notifier); in sti_hdmi_remove()
1466 .name = "sti-hdmi",