sound/pci/oxygen/xonar_dg.h

Source file repositories/reference/linux-study-clean/sound/pci/oxygen/xonar_dg.h

File Facts

System
Linux kernel
Corpus path
sound/pci/oxygen/xonar_dg.h
Extension
.h
Size
1623 bytes
Lines
58
Domain
Driver Families
Bucket
sound/pci
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 dg {
	/* shadow copy of the CS4245 register space */
	unsigned char cs4245_shadow[17];
	/* output select: headphone/speakers */
	unsigned char output_sel;
	/* volumes for all capture sources */
	char input_vol[4][2];
	/* input select: mic/fp mic/line/aux */
	unsigned char input_sel;
};

/* Xonar DG control routines */
int cs4245_write_spi(struct oxygen *chip, u8 reg);
int cs4245_read_spi(struct oxygen *chip, u8 reg);
int cs4245_shadow_control(struct oxygen *chip, enum cs4245_shadow_operation op);
void dg_init(struct oxygen *chip);
void set_cs4245_dac_params(struct oxygen *chip,
				  struct snd_pcm_hw_params *params);
void set_cs4245_adc_params(struct oxygen *chip,
				  struct snd_pcm_hw_params *params);
unsigned int adjust_dg_dac_routing(struct oxygen *chip,
					  unsigned int play_routing);
void dump_cs4245_registers(struct oxygen *chip,
				struct snd_info_buffer *buffer);
void dg_suspend(struct oxygen *chip);
void dg_resume(struct oxygen *chip);
void dg_cleanup(struct oxygen *chip);

extern const struct oxygen_model model_xonar_dg;

#endif

Annotation

Implementation Notes