Download man pages section 7: Device and Network Interfaces

Transcript
audio(7I)
uint_t
uint_t
sw_features; /* supported S/W features */
sw_features_enabled;
/* supported S/W features enabled */
};
typedef struct audio_info
audio_info_t;
/* Audio encoding types */
#define AUDIO_ENCODING_ULAW
(1) /* u-Law encoding */
#define AUDIO_ENCODING_ALAW
(2) /* A-Law encoding */
#define AUDIO_ENCODING_LINEAR
(3) /* Signed Linear PCM encoding */
/*
* These ranges apply to record, play, and
* monitor gain values
*/
#define AUDIO_MIN_GAIN (0)
/* minimum gain value */
#define AUDIO_MAX_GAIN (255) /* maximum gain value */
/*
* These values apply to the balance field to adjust channel
* gain values
*/
#define AUDIO_LEFT_BALANCE
(0)
/* left channel only */
#define AUDIO_MID_BALANCE (32)
/* equal left/right balance */
#define AUDIO_RIGHT_BALANCE (64)
/* right channel only */
/*
* Define some convenient audio port names
* (for port, avail_ports and mod_ports)
*/
/* output ports (several might be enabled at once) */
#define AUDIO_SPEAKER
(0x01)
/* built-in speaker */
#define AUDIO_HEADPHONE (0x02)
/* headphone jack */
#define AUDIO_LINE_OUT (0x04)
/* line out */
#define AUDIO_SPDIF_OUT (0x08)
/* SPDIF port */
#define AUDIO_AUX1_OUT (0x10)
/* aux1 out */
#define AUDIO_AUX2_OUT (0x20)
/* aux2 out */
/* input ports (usually only
* enabled at a time)
*/
#define AUDIO_MICROPHONE
#define AUDIO_LINE_IN
#define AUDIO_CD
#define AUDIO_SPDIF_IN
#define AUDIO_AUX1_IN
#define AUDIO_AUX2_IN
#define AUDIO_CODEC_LOOPB_IN
one may be
(0x01) /* microphone */
(0x02) /* line in */
(0x04) /* on-board CD inputs */
(0x08) /* SPDIF port */
(0x10) /* aux1 in */
(0x20) /* aux2 in */
(0x40) /* Codec inter.loopback */
/* These defines are for hardware features */
#define AUDIO_HWFEATURE_DUPLEX
(0x00000001u)
/*simult. play & cap. supported */
#define AUDIO_HWFEATURE_MSCODEC
(0x00000002u)
/* multi-stream Codec */
/* These defines are for software features *
Device and Network Interfaces
41