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.

Dependency Surface

Detected Declarations

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

Implementation Notes