sound/soc/mediatek/common/mtk-soundcard-driver.h
Source file repositories/reference/linux-study-clean/sound/soc/mediatek/common/mtk-soundcard-driver.h
File Facts
- System
- Linux kernel
- Corpus path
sound/soc/mediatek/common/mtk-soundcard-driver.h- Extension
.h- Size
- 1554 bytes
- Lines
- 57
- 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 mtk_sof_privstruct mtk_soc_card_datastruct snd_pcm_hw_constraint_liststruct mtk_pcm_constraints_datastruct mtk_platform_card_datastruct mtk_soundcard_pdataenum mtk_pcm_constraint_type
Annotated Snippet
struct mtk_pcm_constraints_data {
const struct snd_pcm_hw_constraint_list *channels;
const struct snd_pcm_hw_constraint_list *rates;
};
struct mtk_platform_card_data {
struct snd_soc_card *card;
struct snd_soc_jack *jacks;
const struct mtk_pcm_constraints_data *pcm_constraints;
u8 num_jacks;
u8 num_pcm_constraints;
u8 flags;
};
struct mtk_soundcard_pdata {
const char *card_name;
struct mtk_platform_card_data *card_data;
const struct mtk_sof_priv *sof_priv;
int (*soc_probe)(struct mtk_soc_card_data *card_data, bool legacy);
};
/* Common playback/capture card startup ops */
extern const struct snd_soc_ops mtk_soundcard_common_playback_ops;
extern const struct snd_soc_ops mtk_soundcard_common_capture_ops;
/* Exported for custom/extended soundcard startup ops */
int mtk_soundcard_startup(struct snd_pcm_substream *substream,
enum mtk_pcm_constraint_type ctype);
int parse_dai_link_info(struct snd_soc_card *card);
void clean_card_reference(struct snd_soc_card *card);
int mtk_soundcard_common_probe(struct platform_device *pdev);
#endif
Annotation
- Detected declarations: `struct mtk_sof_priv`, `struct mtk_soc_card_data`, `struct snd_pcm_hw_constraint_list`, `struct mtk_pcm_constraints_data`, `struct mtk_platform_card_data`, `struct mtk_soundcard_pdata`, `enum mtk_pcm_constraint_type`.
- 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.