drivers/video/fbdev/omap2/omapfb/dss/hdmi5.c
Source file repositories/reference/linux-study-clean/drivers/video/fbdev/omap2/omapfb/dss/hdmi5.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/video/fbdev/omap2/omapfb/dss/hdmi5.c- Extension
.c- Size
- 17474 bytes
- Lines
- 855
- Domain
- Driver Families
- Bucket
- drivers/video
- Inferred role
- Driver Families: implementation source
- Status
- source implementation candidate
Why This File Exists
Repeatable hardware-adapter layer. Deep compatibility for every driver is out of scope; this atlas records patterns, probe lifecycles, bus glue, IRQ/DMA usage, and links back to core abstractions.
- Repeatable hardware-adapter layer. Deep compatibility for every driver is out of scope; this atlas records patterns, probe lifecycles, bus glue, IRQ/DMA usage, and links back to core abstractions.
- Uses kernel synchronization; read lock ordering, sleepability, and interrupt context assumptions before translating.
- Touches IRQ or DMA behavior; this matters for the representative real-device path.
- Defines or uses C structs; map object ownership, embedded links, reference counts, and lock ownership.
Dependency Surface
linux/kernel.hlinux/module.hlinux/err.hlinux/io.hlinux/interrupt.hlinux/mutex.hlinux/delay.hlinux/string.hlinux/platform_device.hlinux/pm_runtime.hlinux/clk.hlinux/of.hlinux/of_graph.hlinux/regulator/consumer.hlinux/component.hvideo/omapfb_dss.hsound/omap-hdmi-audio.hhdmi5_core.hdss.hdss_features.h
Detected Declarations
function hdmi_runtime_getfunction hdmi_runtime_putfunction hdmi_irq_handlerfunction hdmi_init_regulatorfunction hdmi_power_on_corefunction hdmi_power_off_corefunction hdmi_power_on_fullfunction hdmi_power_off_fullfunction hdmi_display_check_timingfunction hdmi_display_set_timingfunction hdmi_display_get_timingsfunction hdmi_dump_regsfunction read_edidfunction hdmi_start_audio_streamfunction hdmi_stop_audio_streamfunction hdmi_display_enablefunction hdmi_display_disablefunction hdmi_core_enablefunction hdmi_core_disablefunction hdmi_connectfunction hdmi_disconnectfunction hdmi_read_edidfunction hdmi_set_infoframefunction hdmi_set_hdmi_modefunction hdmi_init_outputfunction hdmi_uninit_outputfunction hdmi_probe_offunction hdmi_audio_startupfunction hdmi_audio_shutdownfunction hdmi_audio_startfunction hdmi_audio_stopfunction hdmi_audio_configfunction hdmi_audio_registerfunction hdmi5_bindfunction hdmi5_unbindfunction hdmi5_probefunction hdmi5_removefunction hdmi_runtime_suspendfunction hdmi_runtime_resumefunction hdmi5_init_platform_driverfunction hdmi5_uninit_platform_driver
Annotated Snippet
if (r) {
DSSERR("Error restoring audio configuration: %d", r);
hdmi.audio_abort_cb(&hdmi.pdev->dev);
hdmi.audio_configured = false;
}
}
spin_lock_irqsave(&hdmi.audio_playing_lock, flags);
if (hdmi.audio_configured && hdmi.audio_playing)
hdmi_start_audio_stream(&hdmi);
hdmi.display_enabled = true;
spin_unlock_irqrestore(&hdmi.audio_playing_lock, flags);
mutex_unlock(&hdmi.lock);
return 0;
err0:
mutex_unlock(&hdmi.lock);
return r;
}
static void hdmi_display_disable(struct omap_dss_device *dssdev)
{
unsigned long flags;
DSSDBG("Enter hdmi_display_disable\n");
mutex_lock(&hdmi.lock);
spin_lock_irqsave(&hdmi.audio_playing_lock, flags);
hdmi_stop_audio_stream(&hdmi);
hdmi.display_enabled = false;
spin_unlock_irqrestore(&hdmi.audio_playing_lock, flags);
hdmi_power_off_full(dssdev);
mutex_unlock(&hdmi.lock);
}
static int hdmi_core_enable(struct omap_dss_device *dssdev)
{
int r = 0;
DSSDBG("ENTER omapdss_hdmi_core_enable\n");
mutex_lock(&hdmi.lock);
r = hdmi_power_on_core(dssdev);
if (r) {
DSSERR("failed to power on device\n");
goto err0;
}
mutex_unlock(&hdmi.lock);
return 0;
err0:
mutex_unlock(&hdmi.lock);
return r;
}
static void hdmi_core_disable(struct omap_dss_device *dssdev)
{
DSSDBG("Enter omapdss_hdmi_core_disable\n");
mutex_lock(&hdmi.lock);
hdmi_power_off_core(dssdev);
mutex_unlock(&hdmi.lock);
}
static int hdmi_connect(struct omap_dss_device *dssdev,
struct omap_dss_device *dst)
{
struct omap_overlay_manager *mgr;
int r;
r = hdmi_init_regulator();
if (r)
return r;
mgr = omap_dss_get_overlay_manager(dssdev->dispc_channel);
if (!mgr)
return -ENODEV;
r = dss_mgr_connect(mgr, dssdev);
if (r)
return r;
Annotation
- Immediate include surface: `linux/kernel.h`, `linux/module.h`, `linux/err.h`, `linux/io.h`, `linux/interrupt.h`, `linux/mutex.h`, `linux/delay.h`, `linux/string.h`.
- Detected declarations: `function hdmi_runtime_get`, `function hdmi_runtime_put`, `function hdmi_irq_handler`, `function hdmi_init_regulator`, `function hdmi_power_on_core`, `function hdmi_power_off_core`, `function hdmi_power_on_full`, `function hdmi_power_off_full`, `function hdmi_display_check_timing`, `function hdmi_display_set_timing`.
- Atlas domain: Driver Families / drivers/video.
- Implementation status: source implementation candidate.
- Synchronization appears in or near this file; preserve lock ordering, sleepability, and interrupt-context constraints.
- IRQ or DMA behavior appears here, which is relevant to the selected PCIe/NVMe device path.
Implementation Notes
- This generated page is the file-by-file coverage layer; curated subsystem chapters should link here when they synthesize a multi-file control flow.
- Core OS pages should be promoted from atlas-only to deep-reviewed when they explain data structures, invariants, locking, lifecycle, and C implementation snippets.
- Driver-family pages are intentionally pattern-oriented unless they are part of the selected PCIe/NVMe representative device path.