sound/pci/ctxfi/ctmixer.h

Source file repositories/reference/linux-study-clean/sound/pci/ctxfi/ctmixer.h

File Facts

System
Linux kernel
Corpus path
sound/pci/ctxfi/ctmixer.h
Extension
.h
Size
1654 bytes
Lines
70
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 ct_mixer {
	struct ct_atc *atc;

	struct sum **sums;		/* sum resources for signal collection */
	struct snd_kcontrol *line_mic_kctls[2]; /* line/mic capture switch controls */
	unsigned int switch_state; /* A bit-map to indicate state of switches */

	int (*get_output_ports)(struct ct_mixer *mixer, enum MIXER_PORT_T type,
				  struct rsc **rleft, struct rsc **rright);

	int (*set_input_left)(struct ct_mixer *mixer,
			      enum MIXER_PORT_T type, struct rsc *rsc);
	int (*set_input_right)(struct ct_mixer *mixer,
			       enum MIXER_PORT_T type, struct rsc *rsc);
#ifdef CONFIG_PM_SLEEP
	int (*resume)(struct ct_mixer *mixer);
#endif
	struct amixer *amixers[];		/* amixer resources for volume control */
};

int ct_alsa_mix_create(struct ct_atc *atc,
		       enum CTALSADEVS device,
		       const char *device_name);
int ct_mixer_create(struct ct_atc *atc, struct ct_mixer **rmixer);
int ct_mixer_destroy(struct ct_mixer *mixer);

#endif /* CTMIXER_H */

Annotation

Implementation Notes