drivers/gpu/drm/amd/display/include/audio_types.h
Source file repositories/reference/linux-study-clean/drivers/gpu/drm/amd/display/include/audio_types.h
File Facts
- System
- Linux kernel
- Corpus path
drivers/gpu/drm/amd/display/include/audio_types.h- Extension
.h- Size
- 3339 bytes
- Lines
- 121
- 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
signal_types.hfixed31_32.hdc_dp_types.h
Detected Declarations
struct audio_dp_link_infostruct audio_crtc_infostruct azalia_clock_infostruct audio_pll_infostruct audio_channel_associate_infostruct audio_outputenum audio_dto_sourceenum audio_payload
Annotated Snippet
struct audio_dp_link_info {
uint32_t link_bandwidth_kbps;
uint32_t hblank_min_symbol_width;
enum dp_link_encoding encoding;
enum dc_link_rate link_rate;
enum dc_lane_count lane_count;
bool is_mst;
};
struct audio_crtc_info {
uint32_t h_total;
uint32_t h_active;
uint32_t v_active;
uint32_t requested_pixel_clock_100Hz; /* in 100Hz */
uint32_t calculated_pixel_clock_100Hz; /* in 100Hz */
uint32_t dsc_bits_per_pixel;
uint32_t dsc_num_slices;
enum dc_color_depth color_depth;
enum dc_pixel_encoding pixel_encoding;
uint16_t refresh_rate;
uint8_t pixel_repetition;
bool interlaced;
uint32_t frl_character_clock_kHz; /* in KHz */
};
struct azalia_clock_info {
uint32_t pixel_clock_in_10khz;
uint32_t audio_dto_phase;
uint32_t audio_dto_module;
uint32_t audio_dto_wall_clock_ratio;
};
enum audio_dto_source {
DTO_SOURCE_UNKNOWN = 0,
DTO_SOURCE_ID0,
DTO_SOURCE_ID1,
DTO_SOURCE_ID2,
DTO_SOURCE_ID3,
DTO_SOURCE_ID4,
DTO_SOURCE_ID5
};
/* PLL information required for AZALIA DTO calculation */
struct audio_pll_info {
uint32_t audio_dto_source_clock_in_khz;
uint32_t ss_percentage;
enum audio_dto_source dto_source;
bool ss_enabled;
};
struct audio_channel_associate_info {
union {
struct {
uint32_t ALL_CHANNEL_FL:4;
uint32_t ALL_CHANNEL_FR:4;
uint32_t ALL_CHANNEL_FC:4;
uint32_t ALL_CHANNEL_Sub:4;
uint32_t ALL_CHANNEL_SL:4;
uint32_t ALL_CHANNEL_SR:4;
uint32_t ALL_CHANNEL_BL:4;
uint32_t ALL_CHANNEL_BR:4;
} bits;
uint32_t u32all;
};
};
struct audio_output {
/* Front DIG id. */
enum engine_id engine_id;
/* encoder output signal */
enum signal_type signal;
/* video timing */
struct audio_crtc_info crtc_info;
/* DP link info */
struct audio_dp_link_info dp_link_info;
/* PLL for audio */
struct audio_pll_info pll_info;
};
enum audio_payload {
CHANNEL_SPLIT_MAPPINGCHANG = 0x9,
};
#endif /* __AUDIO_TYPES_H__ */
Annotation
- Immediate include surface: `signal_types.h`, `fixed31_32.h`, `dc_dp_types.h`.
- Detected declarations: `struct audio_dp_link_info`, `struct audio_crtc_info`, `struct azalia_clock_info`, `struct audio_pll_info`, `struct audio_channel_associate_info`, `struct audio_output`, `enum audio_dto_source`, `enum audio_payload`.
- 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.