sound/soc/codecs/rt1011.h

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

File Facts

System
Linux kernel
Corpus path
sound/soc/codecs/rt1011.h
Extension
.h
Size
25155 bytes
Lines
705
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 rt1011_bq_drc_params {
	unsigned short val;
	unsigned short reg;
#ifdef CONFIG_64BIT
	unsigned int reserved;
#endif
};
enum {
	RT1011_ADVMODE_INITIAL_SET,
	RT1011_ADVMODE_SEP_BQ_COEFF,
	RT1011_ADVMODE_EQ_BQ_COEFF,
	RT1011_ADVMODE_BQ_UI_COEFF,
	RT1011_ADVMODE_SMARTBOOST_COEFF,
	RT1011_ADVMODE_NUM,
};

struct rt1011_priv {
	struct snd_soc_component *component;
	struct regmap *regmap;
	struct work_struct cali_work;
	struct rt1011_bq_drc_params **bq_drc_params;

	int sysclk;
	int sysclk_src;
	int lrck;
	int bclk;
	int id;

	int pll_src;
	int pll_in;
	int pll_out;

	int bq_drc_set;
	unsigned int r0_reg, cali_done;
	unsigned int r0_calib, temperature_calib;
	int recv_spk_mode;
	int i2s_ref;
};

#endif		/* end of _RT1011_H_ */

Annotation

Implementation Notes