sound/soc/meson/meson-card.h
Source file repositories/reference/linux-study-clean/sound/soc/meson/meson-card.h
File Facts
- System
- Linux kernel
- Corpus path
sound/soc/meson/meson-card.h- Extension
.h- Size
- 1450 bytes
- Lines
- 55
- Domain
- Driver Families
- Bucket
- sound/soc
- 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
- No C-style include directives detected by the generator.
Detected Declarations
struct device_nodestruct platform_devicestruct snd_soc_cardstruct snd_pcm_substreamstruct snd_pcm_hw_paramsstruct meson_card_match_datastruct meson_card
Annotated Snippet
struct meson_card_match_data {
int (*add_link)(struct snd_soc_card *card,
struct device_node *node,
int *index);
};
struct meson_card {
const struct meson_card_match_data *match_data;
struct snd_soc_card card;
void **link_data;
};
unsigned int meson_card_parse_daifmt(struct device_node *node,
struct device_node *cpu_node);
int meson_card_i2s_set_sysclk(struct snd_pcm_substream *substream,
struct snd_pcm_hw_params *params,
unsigned int mclk_fs);
int meson_card_reallocate_links(struct snd_soc_card *card,
unsigned int num_links);
int meson_card_parse_dai(struct snd_soc_card *card,
struct device_node *node,
struct snd_soc_dai_link_component *dlc);
int meson_card_set_be_link(struct snd_soc_card *card,
struct snd_soc_dai_link *link,
struct device_node *node);
int meson_card_set_fe_link(struct snd_soc_card *card,
struct snd_soc_dai_link *link,
struct device_node *node,
bool is_playback);
int meson_card_probe(struct platform_device *pdev);
void meson_card_remove(struct platform_device *pdev);
#endif /* _MESON_SND_CARD_H */
Annotation
- Detected declarations: `struct device_node`, `struct platform_device`, `struct snd_soc_card`, `struct snd_pcm_substream`, `struct snd_pcm_hw_params`, `struct meson_card_match_data`, `struct meson_card`.
- Atlas domain: Driver Families / sound/soc.
- 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.