sound/soc/mediatek/mt2701/mt2701-afe-common.h
Source file repositories/reference/linux-study-clean/sound/soc/mediatek/mt2701/mt2701-afe-common.h
File Facts
- System
- Linux kernel
- Corpus path
sound/soc/mediatek/mt2701/mt2701-afe-common.h- Extension
.h- Size
- 2154 bytes
- Lines
- 105
- 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
sound/soc.hlinux/clk.hlinux/regmap.hmt2701-reg.h../common/mtk-base-afe.h
Detected Declarations
struct mt2701_i2s_datastruct mt2701_i2s_pathstruct mt2701_soc_variantsstruct mt2701_afe_privateenum audio_base_clock
Annotated Snippet
struct mt2701_i2s_data {
int i2s_ctrl_reg;
int i2s_asrc_fs_shift;
int i2s_asrc_fs_mask;
};
struct mt2701_i2s_path {
int mclk_rate;
int on[MTK_STREAM_NUM];
int occupied[MTK_STREAM_NUM];
const struct mt2701_i2s_data *i2s_data[MTK_STREAM_NUM];
struct clk *hop_ck[MTK_STREAM_NUM];
struct clk *sel_ck;
struct clk *div_ck;
struct clk *mclk_ck;
struct clk *asrco_ck;
};
struct mt2701_soc_variants {
bool has_one_heart_mode;
int i2s_num;
};
struct mt2701_afe_private {
struct clk *base_ck[MT2701_BASE_CLK_NUM];
struct clk *mrgif_ck;
struct clk *hadds2pll_ck;
struct clk *audio_hdmi_ck;
struct clk *audio_spdf_ck;
struct clk *audio_apll_ck;
bool mrg_enable[MTK_STREAM_NUM];
const struct mt2701_soc_variants *soc;
struct mt2701_i2s_path i2s_path[];
};
#endif
Annotation
- Immediate include surface: `sound/soc.h`, `linux/clk.h`, `linux/regmap.h`, `mt2701-reg.h`, `../common/mtk-base-afe.h`.
- Detected declarations: `struct mt2701_i2s_data`, `struct mt2701_i2s_path`, `struct mt2701_soc_variants`, `struct mt2701_afe_private`, `enum audio_base_clock`.
- 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.