Initial commit of OpenSPARC T2 architecture model.
[OpenSPARC-T2-SAM] / sam-t2 / devtools / amd64 / lib / python2.4 / plat-sunos5 / SUNAUDIODEV.py
CommitLineData
920dae64
AT
1# Symbolic constants for use with sunaudiodev module
2# The names are the same as in audioio.h with the leading AUDIO_
3# removed.
4
5# Not all values are supported on all releases of SunOS.
6
7# Encoding types, for fields i_encoding and o_encoding
8
9ENCODING_NONE = 0 # no encoding assigned
10ENCODING_ULAW = 1 # u-law encoding
11ENCODING_ALAW = 2 # A-law encoding
12ENCODING_LINEAR = 3 # Linear PCM encoding
13
14# Gain ranges for i_gain, o_gain and monitor_gain
15
16MIN_GAIN = 0 # minimum gain value
17MAX_GAIN = 255 # maximum gain value
18
19# Balance values for i_balance and o_balance
20
21LEFT_BALANCE = 0 # left channel only
22MID_BALANCE = 32 # equal left/right channel
23RIGHT_BALANCE = 64 # right channel only
24BALANCE_SHIFT = 3
25
26# Port names for i_port and o_port
27
28PORT_A = 1
29PORT_B = 2
30PORT_C = 3
31PORT_D = 4
32
33SPEAKER = 0x01 # output to built-in speaker
34HEADPHONE = 0x02 # output to headphone jack
35LINE_OUT = 0x04 # output to line out
36
37MICROPHONE = 0x01 # input from microphone
38LINE_IN = 0x02 # input from line in
39CD = 0x04 # input from on-board CD inputs
40INTERNAL_CD_IN = CD # input from internal CDROM