sound/soc/codecs/da7218.h

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

File Facts

System
Linux kernel
Corpus path
sound/soc/codecs/da7218.h
Extension
.h
Size
48557 bytes
Lines
1412
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 da7218_priv {
	struct da7218_pdata *pdata;

	struct regulator_bulk_data supplies[DA7218_NUM_SUPPLIES];
	struct regmap *regmap;
	int dev_id;

	struct snd_soc_jack *jack;
	int irq;

	struct clk *mclk;
	unsigned int mclk_rate;

	bool hp_single_supply;
	bool master;
	u8 alc_en;
	u8 in_filt_en;
	u8 mic_lvl_det_en;

	u8 biq_5stage_coeff[DA7218_OUT_1_BIQ_5STAGE_CFG_SIZE];
	u8 stbiq_3stage_coeff[DA7218_SIDETONE_BIQ_3STAGE_CFG_SIZE];
};

/* HP detect control */
int da7218_hpldet(struct snd_soc_component *component, struct snd_soc_jack *jack);

#endif /* _DA7218_H */

Annotation

Implementation Notes