sound/soc/codecs/da7219.h

Source file repositories/reference/linux-study-clean/sound/soc/codecs/da7219.h

File Facts

System
Linux kernel
Corpus path
sound/soc/codecs/da7219.h
Extension
.h
Size
27256 bytes
Lines
840
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 da7219_priv {
	struct snd_soc_component *component;
	struct da7219_aad_priv *aad;
	struct da7219_pdata *pdata;

	bool wakeup_source;
	struct regulator_bulk_data supplies[DA7219_NUM_SUPPLIES];
	struct regmap *regmap;
	struct mutex ctrl_lock;
	struct mutex pll_lock;

#ifdef CONFIG_COMMON_CLK
	struct clk_hw dai_clks_hw[DA7219_DAI_NUM_CLKS];
	struct clk_hw_onecell_data *clk_hw_data;
#endif
	struct clk_lookup *dai_clks_lookup[DA7219_DAI_NUM_CLKS];
	struct clk *dai_clks[DA7219_DAI_NUM_CLKS];

	struct clk *mclk;
	unsigned int mclk_rate;
	int clk_src;

	bool master;
	bool tdm_en;
	bool alc_en;
	bool micbias_on_event;
	unsigned int mic_pga_delay;
	u8 gain_ramp_ctrl;
};

int da7219_set_pll(struct snd_soc_component *component, int source, unsigned int fout);

#endif /* __DA7219_H */

Annotation

Implementation Notes