drivers/gpu/drm/msm/dp/dp_audio.h
Source file repositories/reference/linux-study-clean/drivers/gpu/drm/msm/dp/dp_audio.h
File Facts
- System
- Linux kernel
- Corpus path
drivers/gpu/drm/msm/dp/dp_audio.h- Extension
.h- Size
- 1311 bytes
- Lines
- 58
- Domain
- Driver Families
- Bucket
- drivers/gpu
- 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.
- Defines or uses C structs; map object ownership, embedded links, reference counts, and lock ownership.
Dependency Surface
linux/platform_device.hsound/hdmi-codec.h
Detected Declarations
struct drm_bridgestruct msm_dp_audio
Annotated Snippet
struct msm_dp_audio {
u32 lane_count;
u32 bw_code;
};
/**
* msm_dp_audio_get()
*
* Creates and instance of dp audio.
*
* @pdev: caller's platform device instance.
* @link_base: pointer to the msm_dp_link resource.
*
* Returns the error code in case of failure, otherwize
* an instance of newly created msm_dp_module.
*/
struct msm_dp_audio *msm_dp_audio_get(struct platform_device *pdev,
void __iomem *link_base);
/**
* msm_dp_audio_put()
*
* Cleans the msm_dp_audio instance.
*
* @msm_dp_audio: an instance of msm_dp_audio.
*/
void msm_dp_audio_put(struct msm_dp_audio *msm_dp_audio);
int msm_dp_audio_prepare(struct drm_bridge *bridge,
struct drm_connector *connector,
struct hdmi_codec_daifmt *daifmt,
struct hdmi_codec_params *params);
void msm_dp_audio_shutdown(struct drm_bridge *bridge,
struct drm_connector *connector);
#endif /* _DP_AUDIO_H_ */
Annotation
- Immediate include surface: `linux/platform_device.h`, `sound/hdmi-codec.h`.
- Detected declarations: `struct drm_bridge`, `struct msm_dp_audio`.
- Atlas domain: Driver Families / drivers/gpu.
- Implementation status: source implementation candidate.
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.