The ultimate alsa guide to statefile by klaszlo

From Openmoko

(Difference between revisions)
Jump to: navigation, search
(Table)
(Table)
Line 35: Line 35:
 
  !stereout
 
  !stereout
 
  !voip-handset
 
  !voip-handset
 +
!gsmbluetooth
 
  |-
 
  |-
 
  |control.1
 
  |control.1
Line 45: Line 46:
 
  |
 
  |
 
  |
 
  |
 +
|235<br />235
 
  |235<br />235
 
  |235<br />235
 
  |235<br />235
 
  |235<br />235
Line 58: Line 60:
 
  |
 
  |
 
  |
 
  |
 +
|195<br />195
 
  |195<br />195
 
  |195<br />195
 
  |195<br />195
 
  |195<br />195
Line 74: Line 77:
 
  |127<br />127
 
  |127<br />127
 
  |127<br />127
 
  |127<br />127
 +
|0<br />0
 
  |-
 
  |-
 
  |control.4
 
  |control.4
Line 100: Line 104:
 
  |121
 
  |121
 
  |121
 
  |121
 +
|79
 
  |-
 
  |-
 
  |control.6
 
  |control.6
Line 113: Line 118:
 
  |2<br />2
 
  |2<br />2
 
  |2<br />2
 
  |2<br />2
 +
|6<br />6
 
  |-
 
  |-
 
  |control.7
 
  |control.7
Line 126: Line 132:
 
  |2<br />2
 
  |2<br />2
 
  |2<br />2
 
  |2<br />2
 +
|6<br />6
 
  |-
 
  |-
 
  |control.8
 
  |control.8
Line 139: Line 146:
 
  |2<br />2
 
  |2<br />2
 
  |2<br />2
 
  |2<br />2
 +
|7<br />7
 
  |-
 
  |-
 
  |control.9
 
  |control.9
Line 146: Line 154:
 
  |true/false
 
  |true/false
 
  |false <br />false
 
  |false <br />false
 +
|
 
  |
 
  |
 
  |
 
  |
Line 159: Line 168:
 
  |true/false
 
  |true/false
 
  |false <br />false
 
  |false <br />false
 +
|
 
  |
 
  |
 
  |
 
  |
Line 178: Line 188:
 
  |2
 
  |2
 
  |2
 
  |2
 +
|5
 
  |-
 
  |-
 
  |control.12
 
  |control.12
Line 191: Line 202:
 
  |2
 
  |2
 
  |2
 
  |2
 +
|5
 
  |-
 
  |-
 
  |control.13
 
  |control.13
Line 204: Line 216:
 
  |2
 
  |2
 
  |2
 
  |2
 +
|4
 
  |-
 
  |-
 
  |control.14
 
  |control.14
Line 211: Line 224:
 
  |true/false
 
  |true/false
 
  |false
 
  |false
 +
|
 
  |
 
  |
 
  |
 
  |
Line 224: Line 238:
 
  |Linear Control <br />Adaptive Boost
 
  |Linear Control <br />Adaptive Boost
 
  |Linear Control
 
  |Linear Control
 +
|
 
  |
 
  |
 
  |
 
  |
Line 237: Line 252:
 
  |130Hz @ 48kHz <br />200Hz @ 48kHz <br />100Hz @ 16kHz <br />400Hz @ 48kHz <br />100Hz @ 8kHz <br />200Hz @ 8kHz
 
  |130Hz @ 48kHz <br />200Hz @ 48kHz <br />100Hz @ 16kHz <br />400Hz @ 48kHz <br />100Hz @ 8kHz <br />200Hz @ 8kHz
 
  |130Hz @ 48kHz
 
  |130Hz @ 48kHz
 +
|
 
  |
 
  |
 
  |
 
  |
Line 256: Line 272:
 
  |
 
  |
 
  |
 
  |
 +
|8
 
  |-
 
  |-
 
  |control.18
 
  |control.18
Line 269: Line 286:
 
  |
 
  |
 
  |
 
  |
 +
|8
 
  |-
 
  |-
 
  |control.19
 
  |control.19
Line 276: Line 294:
 
  |8kHz <br />4kHz
 
  |8kHz <br />4kHz
 
  |8kHz
 
  |8kHz
 +
|
 
  |
 
  |
 
  |
 
  |
Line 295: Line 314:
 
  |2<br />2
 
  |2<br />2
 
  |2<br />2
 
  |2<br />2
 +
|
 
  |-
 
  |-
 
  |control.21
 
  |control.21
Line 302: Line 322:
 
  |0-7
 
  |0-7
 
  |2
 
  |2
 +
|
 
  |
 
  |
 
  |
 
  |
Line 321: Line 342:
 
  |23<br />23
 
  |23<br />23
 
  |47<br />47
 
  |47<br />47
 +
|48<br />48
 
  |-
 
  |-
 
  |control.23
 
  |control.23
Line 328: Line 350:
 
  |true/false
 
  |true/false
 
  |false<br />false
 
  |false<br />false
 +
|
 
  |
 
  |
 
  |
 
  |
Line 346: Line 369:
 
  |false<br />false
 
  |false<br />false
 
  |false<br />false
 
  |false<br />false
 +
|
 
  |
 
  |
 
  |-
 
  |-
Line 360: Line 384:
 
  |
 
  |
 
  |
 
  |
 +
|83 Hz @ 8kHz
 
  |-
 
  |-
 
  |control.26
 
  |control.26
Line 373: Line 398:
 
  |
 
  |
 
  |
 
  |
 +
|Voice
 
  |-
 
  |-
 
  |control.27
 
  |control.27
Line 383: Line 409:
 
  |
 
  |
 
  |
 
  |
 +
|true
 
  |true
 
  |true
 
  |true
 
  |true
Line 399: Line 426:
 
  |3
 
  |3
 
  |3
 
  |3
 +
|4
 
  |-
 
  |-
 
  |control.29
 
  |control.29
Line 412: Line 440:
 
  |7
 
  |7
 
  |7
 
  |7
 +
|5
 
  |-
 
  |-
 
  |control.30
 
  |control.30
Line 419: Line 448:
 
  |Off<br />Right<br />Left<br />Stereo
 
  |Off<br />Right<br />Left<br />Stereo
 
  |Off
 
  |Off
 +
|
 
  |
 
  |
 
  |
 
  |
Line 432: Line 462:
 
  |true/false
 
  |true/false
 
  |false
 
  |false
 +
|
 
  |
 
  |
 
  |
 
  |
Line 451: Line 482:
 
  |15
 
  |15
 
  |15
 
  |15
 +
|4
 
  |-
 
  |-
 
  |control.33
 
  |control.33
Line 464: Line 496:
 
  |12
 
  |12
 
  |12
 
  |12
 +
|8
 
  |-
 
  |-
 
  |control.34
 
  |control.34
Line 474: Line 507:
 
  |
 
  |
 
  |
 
  |
 +
|2
 
  |2
 
  |2
 
  |2
 
  |2
Line 490: Line 524:
 
  |
 
  |
 
  |
 
  |
 +
|7
 
  |-
 
  |-
 
  |control.36
 
  |control.36
Line 500: Line 535:
 
  |
 
  |
 
  |
 
  |
 +
|Constant PGA Gain
 
  |Constant PGA Gain
 
  |Constant PGA Gain
 
  |Constant PGA Gain
 
  |Constant PGA Gain
Line 510: Line 546:
 
  |true/false
 
  |true/false
 
  |false
 
  |false
 +
|
 
  |
 
  |
 
  |
 
  |
Line 523: Line 560:
 
  |Capture<br />Playback
 
  |Capture<br />Playback
 
  |Capture
 
  |Capture
 +
|
 
  |
 
  |
 
  |
 
  |
Line 536: Line 574:
 
  |2.2kHz<br />1.5kHz
 
  |2.2kHz<br />1.5kHz
 
  |2.2kHz
 
  |2.2kHz
 +
|
 
  |
 
  |
 
  |
 
  |
Line 549: Line 588:
 
  |200Hz<br />500Hz
 
  |200Hz<br />500Hz
 
  |200Hz
 
  |200Hz
 +
|
 
  |
 
  |
 
  |
 
  |
Line 568: Line 608:
 
  |
 
  |
 
  |
 
  |
 +
|8
 
  |-
 
  |-
 
  |control.42
 
  |control.42
Line 575: Line 616:
 
  |true/false
 
  |true/false
 
  |false
 
  |false
 +
|
 
  |
 
  |
 
  |
 
  |
Line 588: Line 630:
 
  |true/false
 
  |true/false
 
  |false
 
  |false
 +
|
 
  |
 
  |
 
  |
 
  |
Line 601: Line 644:
 
  |true/false
 
  |true/false
 
  |false
 
  |false
 +
|
 
  |
 
  |
 
  |
 
  |
Line 614: Line 658:
 
  |None<br />32kHz<br />44.1kHz<br />48kHz
 
  |None<br />32kHz<br />44.1kHz<br />48kHz
 
  |None
 
  |None
 +
|
 
  |
 
  |
 
  |
 
  |
Line 627: Line 672:
 
  |Stereo<br />Left<br />Right<br />Mono
 
  |Stereo<br />Left<br />Right<br />Mono
 
  |Stereo
 
  |Stereo
 +
|
 
  |
 
  |
 
  |
 
  |
Line 640: Line 686:
 
  |Non Inverted<br />Inverted
 
  |Non Inverted<br />Inverted
 
  |Non Inverted
 
  |Non Inverted
 +
|
 
  |
 
  |
 
  |
 
  |
Line 659: Line 706:
 
  |0
 
  |0
 
  |2
 
  |2
 +
|
 
  |-
 
  |-
 
  |control.49
 
  |control.49
Line 672: Line 720:
 
  |
 
  |
 
  |
 
  |
 +
|3
 
  |-
 
  |-
 
  |control.50
 
  |control.50
Line 685: Line 734:
 
  |
 
  |
 
  |DAI 2
 
  |DAI 2
 +
|
 
  |-
 
  |-
 
  |control.51
 
  |control.51
Line 698: Line 748:
 
  |
 
  |
 
  |
 
  |
 +
|Left ADC
 
  |-
 
  |-
 
  |control.52
 
  |control.52
Line 705: Line 756:
 
  |Non Inverted<br />Inverted
 
  |Non Inverted<br />Inverted
 
  |Inverted
 
  |Inverted
 +
|
 
  |
 
  |
 
  |
 
  |
Line 718: Line 770:
 
  |Mic 1<br />Mic 2<br />Mic 3
 
  |Mic 1<br />Mic 2<br />Mic 3
 
  |Mic 1
 
  |Mic 1
 +
|
 
  |
 
  |
 
  |
 
  |
Line 731: Line 784:
 
  |RXP - RXN<br />RXP + RXN<br />RXP<br />RXN
 
  |RXP - RXN<br />RXP + RXN<br />RXP<br />RXN
 
  |RXP - RXN
 
  |RXP - RXN
 +
|
 
  |
 
  |
 
  |
 
  |
Line 750: Line 804:
 
  |
 
  |
 
  |
 
  |
 +
|Line 1 - 2
 
  |-
 
  |-
 
  |control.56
 
  |control.56
Line 763: Line 818:
 
  |
 
  |
 
  |
 
  |
 +
|Rx Mix
 
  |-
 
  |-
 
  |control.57
 
  |control.57
Line 771: Line 827:
 
  |Rx Mix
 
  |Rx Mix
 
  |Line 2
 
  |Line 2
 +
|
 
  |
 
  |
 
  |
 
  |
Line 784: Line 841:
 
  |Rx Mix
 
  |Rx Mix
 
  |Line 1
 
  |Line 1
 +
|
 
  |
 
  |
 
  |
 
  |
Line 796: Line 854:
 
  |true/false
 
  |true/false
 
  |false
 
  |false
 +
|
 
  |
 
  |
 
  |
 
  |
Line 812: Line 871:
 
  |
 
  |
 
  |
 
  |
 +
|false
 
  |false
 
  |false
 
  |false
 
  |false
Line 822: Line 882:
 
  |true/false
 
  |true/false
 
  |false  
 
  |false  
 +
|
 
  |
 
  |
 
  |
 
  |
Line 841: Line 902:
 
  |
 
  |
 
  |
 
  |
 +
|true
 
  |-
 
  |-
 
  |control.63
 
  |control.63
Line 851: Line 913:
 
  |Mic 1
 
  |Mic 1
 
  |
 
  |
 +
|Left PGA
 
  |Left PGA
 
  |Left PGA
 
  |Left PGA
 
  |Left PGA
Line 867: Line 930:
 
  |
 
  |
 
  |
 
  |
 +
|Sidetone
 
  |-
 
  |-
 
  |control.65
 
  |control.65
Line 874: Line 938:
 
  |PGA<br />Line or RXP-RXN<br />Line
 
  |PGA<br />Line or RXP-RXN<br />Line
 
  |PGA
 
  |PGA
 +
|
 
  |
 
  |
 
  |
 
  |
Line 893: Line 958:
 
  |
 
  |
 
  |Analogue Mix Right
 
  |Analogue Mix Right
 +
|Analogue Mix Left
 
  |-
 
  |-
 
  |control.67
 
  |control.67
Line 906: Line 972:
 
  |
 
  |
 
  |Analogue Mix Right
 
  |Analogue Mix Right
 +
|Analogue Mix Left
 
  |-
 
  |-
 
  |control.68
 
  |control.68
Line 919: Line 986:
 
  |
 
  |
 
  |
 
  |
 +
|true
 
  |-
 
  |-
 
  |control.69
 
  |control.69
Line 932: Line 1,000:
 
  |
 
  |
 
  |
 
  |
 +
|true
 
  |-
 
  |-
 
  |control.70
 
  |control.70
Line 945: Line 1,014:
 
  |
 
  |
 
  |
 
  |
 +
|true
 
  |-
 
  |-
 
  |control.71
 
  |control.71
Line 952: Line 1,022:
 
  |VREF<br />Capture ST<br />LOUT2
 
  |VREF<br />Capture ST<br />LOUT2
 
  |VREF
 
  |VREF
 +
|
 
  |
 
  |
 
  |
 
  |
Line 965: Line 1,036:
 
  |VREF<br />ROUT2<br />Left + Right
 
  |VREF<br />ROUT2<br />Left + Right
 
  |VREF
 
  |VREF
 +
|
 
  |
 
  |
 
  |
 
  |
Line 978: Line 1,050:
 
  |Inverted Mono 1<br />Left<br />Right<br />Left + Right
 
  |Inverted Mono 1<br />Left<br />Right<br />Left + Right
 
  |Inverted Mono 1
 
  |Inverted Mono 1
 +
|
 
  |
 
  |
 
  |
 
  |
Line 991: Line 1,064:
 
  |true/false
 
  |true/false
 
  |false
 
  |false
 +
|
 
  |
 
  |
 
  |
 
  |
Line 1,004: Line 1,078:
 
  |true/false
 
  |true/false
 
  |false
 
  |false
 +
|
 
  |
 
  |
 
  |
 
  |
Line 1,023: Line 1,098:
 
  |
 
  |
 
  |
 
  |
 +
|true
 
  |-
 
  |-
 
  |control.77
 
  |control.77
Line 1,033: Line 1,109:
 
  |
 
  |
 
  |
 
  |
 +
|false
 
  |false
 
  |false
 
  |false
 
  |false
Line 1,043: Line 1,120:
 
  |true/false
 
  |true/false
 
  |false
 
  |false
 +
|
 
  |
 
  |
 
  |
 
  |
Line 1,056: Line 1,134:
 
  |true/false
 
  |true/false
 
  |false
 
  |false
 +
|
 
  |
 
  |
 
  |
 
  |
Line 1,069: Line 1,148:
 
  |true/false
 
  |true/false
 
  |false
 
  |false
 +
|
 
  |
 
  |
 
  |
 
  |
Line 1,088: Line 1,168:
 
  |true
 
  |true
 
  |true
 
  |true
 +
|
 
  |-
 
  |-
 
  |control.82
 
  |control.82
Line 1,098: Line 1,179:
 
  |
 
  |
 
  |
 
  |
 +
|false
 
  |false
 
  |false
 
  |false
 
  |false
Line 1,108: Line 1,190:
 
  |true/false
 
  |true/false
 
  |false
 
  |false
 +
|
 
  |
 
  |
 
  |
 
  |
Line 1,121: Line 1,204:
 
  |true/false
 
  |true/false
 
  |false
 
  |false
 +
|
 
  |
 
  |
 
  |
 
  |
Line 1,140: Line 1,224:
 
  |true
 
  |true
 
  |true
 
  |true
 +
|
 
  |-
 
  |-
 
  |control.86
 
  |control.86
Line 1,150: Line 1,235:
 
  |
 
  |
 
  |
 
  |
 +
|false
 
  |false
 
  |false
 
  |false
 
  |false
Line 1,165: Line 1,251:
 
  |true
 
  |true
 
  |true
 
  |true
 +
|
 
  |
 
  |
 
  |-
 
  |-
Line 1,179: Line 1,266:
 
  |false
 
  |false
 
  |false
 
  |false
 +
|
 
  |-
 
  |-
 
  |control.89
 
  |control.89
Line 1,192: Line 1,280:
 
  |false
 
  |false
 
  |false
 
  |false
 +
|
 
  |-
 
  |-
 
  |control.90
 
  |control.90
Line 1,202: Line 1,291:
 
  |
 
  |
 
  |
 
  |
 +
|false
 
  |false
 
  |false
 
  |false
 
  |false
Line 1,218: Line 1,308:
 
  |false
 
  |false
 
  |
 
  |
 +
|false
 
  |-
 
  |-
 
  |control.92
 
  |control.92
Line 1,230: Line 1,321:
 
  |false
 
  |false
 
  |false
 
  |false
 +
|
 
  |
 
  |
 
  |-
 
  |-
Line 1,244: Line 1,336:
 
  |true
 
  |true
 
  |true
 
  |true
 +
|
 
  |-
 
  |-
 
  |control.94
 
  |control.94
Line 1,257: Line 1,350:
 
  |true
 
  |true
 
  |true
 
  |true
 +
|
 
  |}
 
  |}
  
 
[[Category:Audio]]
 
[[Category:Audio]]

Revision as of 16:28, 19 September 2009

The .state file

control.23 {
    comment.access 'read write'
    comment.type BOOLEAN
    comment.count 2
    iface MIXER
    name 'Capture ZC Switch'
    value.0 false
    value.1 false
}

Directives

 control.23 -- name of the control block
 comment.access -- 'read write' (all the 94 control has it)
 comment.type -- BOOLEAN, ENUMERATED, INTEGER
 comment.count -- 1 or 2 (the number of parameters)
 iface MIXER -- all the 94 control has it
 name 'Capture ZC Switch' --
 value.0, value.1, value -- true, false, 0, 7, 110, 127, 'Linear Control', '3.4Hz @48kHz', HiFi, Off, VREF

Table

Number Name Amixer name type range gsmhandset capturehandset gsmheadset gsmspeakerout headset stereout voip-handset gsmbluetooth
control.1 PCM Volume ? INTEGER 0-255 0
0
255
255
235
235
235
235
235
235
235
235
control.2 ADC Capture Volume INTEGER 0-255 0
0
195
195
195
195
195
195
195
195
195
195
control.3 Headphone Playback Volume INTEGER 0-127 0
0
121
121
96
96
127
127
127
127
127
127
127
127
0
0
control.4 Speaker Playback Volume INTEGER 0-127 127
127
121
121
0
0
0
0
0
0
0
0
0
0
control.5 Mono Playback Volume INTEGER 0-127 110 121 103 103 121 121 121 79
control.6 Bypass Playback Volume INTEGER 0-7 7
7
2
2
2
2
2
2
2
2
6
6
control.7 Sidetone Playback Volume INTEGER 0-7 0
0
2
2
2
2
2
2
6
6
control.8 Voice Playback Volume INTEGER 0-7 0
0
2
2
2
2
2
2
2
2
7
7
control.9 Headphone Playback ZC Switch BOOLEAN true/false false
false
control.10 Speaker Playback ZC Switch BOOLEAN true/false false
false
control.11 Mono Bypass Playback Volume INTEGER 0-7 0 2 2 2 2 5
control.12 Mono Sidetone Playback Volume INTEGER 0-7 7 2 5 6 2 2 2 5
control.13 Mono Voice Playback Volume INTEGER 0-7 0 2 2 2 2 4
control.14 Mono Playback ZC Switch BOOLEAN true/false false
control.15 Bass Boost ENUMERATED Linear Control
Adaptive Boost
Linear Control
control.16 Bass Filter ENUMERATED 130Hz @ 48kHz
200Hz @ 48kHz
100Hz @ 16kHz
400Hz @ 48kHz
100Hz @ 8kHz
200Hz @ 8kHz
130Hz @ 48kHz
control.17 Bass Volume INTEGER 0-15 0 8
control.18 Treble Volume INTEGER 0-15 0 7 8
control.19 Treble Cut-off ENUMERATED 8kHz
4kHz
8kHz
control.20 Sidetone Capture Volume INTEGER 0-7 0
0
2
2
2
2
2
2
2
2
control.21 Voice Sidetone Capture Volume INTEGER 0-7 2
control.22 Capture Volume INTEGER 0-63 0
0
23
23
23
23
23
23
47
47
48
48
control.23 Capture ZC Switch BOOLEAN true/false false
false
control.24 Capture Switch BOOLEAN true/false true
true
false
false
false
false
control.25 Capture Filter Select ENUMERATED 3.4Hz @ 48kHz
82Hz @ 16k
82Hz @ 8kHz
170Hz @ 8kHz
3.4Hz @ 48kHz 83 Hz @ 8kHz
control.26 Capture Filter Cut-off ENUMERATED HiFi
Voice
HiFi Voice
control.27 Capture Filter Switch BOOLEAN true/false false true true true true true
control.28 ALC Capture Target Volume INTEGER 0-7 0 3 3 3 3 4
control.29 ALC Capture Max Volume INTEGER 0-7 0 7 7 7 7 5
control.30 ALC Capture Function ENUMERATED Off
Right
Left
Stereo
Off
control.31 ALC Capture ZC Switch BOOLEAN true/false false
control.32 ALC Capture Hold Time INTEGER 0-15 0 15 15 15 15 4
control.33 ALC Capture Decay Time INTEGER 0-15 0 12 12 12 12 8
control.34 ALC Capture Attack Time INTEGER 0-15 0 2 2 2 2 2
control.35 ALC Capture NG Threshold INTEGER 0-31 0 7
control.36 ALC Capture NG Type ENUMERATED Constant PGA Gain
Mute ADC Output
Mute ADC Output Constant PGA Gain Constant PGA Gain Constant PGA Gain Constant PGA Gain Constant PGA Gain
control.37 ALC Capture NG Switch BOOLEAN true/false false
control.38 3D Function ENUMERATED Capture
Playback
Capture
control.39 3D Upper Cut-off ENUMERATED 2.2kHz
1.5kHz
2.2kHz
control.40 3D Lower Cut-off ENUMERATED 200Hz
500Hz
200Hz
control.41 3D Volume INTEGER 0-15 0 8
control.42 3D Switch BOOLEAN true/false false
control.43 Capture 6dB Attenuate BOOLEAN true/false false
control.44 Playback 6dB Attenuate BOOLEAN true/false false
control.45 De-emphasis ENUMERATED None
32kHz
44.1kHz
48kHz
None
control.46 Playback Mono Mix ENUMERATED Stereo
Left
Right
Mono
Stereo
control.47 Playback Phase ENUMERATED Non Inverted
Inverted
Non Inverted
control.48 Mic2 Capture Volume INTEGER 0-3 3 0 0 0 0 2
control.49 Mic1 Capture Volume INTEGER 0-3 0 3
control.50 DAI Mode ENUMERATED DAI 0
DAI 1
DAI 2
DAI 3
DAI 0 DAI 2 DAI 2
control.51 ADC Data Select ENUMERATED Stereo
Left ADC
Right ADC
Channel Swap
Stereo Left ADC
control.52 ROUT2 Phase ENUMERATED Non Inverted
Inverted
Inverted
control.53 Mic Selection Mux ENUMERATED Mic 1
Mic 2
Mic 3
Mic 1
control.54 Rx Mixer ENUMERATED RXP - RXN
RXP + RXN
RXP
RXN
RXP - RXN
control.55 Line Mixer ENUMERATED Line 1 + 2
Line 1 - 2
Line 1
Line 2
Line 1 + 2 Line 1 - 2
control.56 Line Mono Mux ENUMERATED Line Mix
Rx Mix
Line Mix Rx Mix
control.57 Line Right Mux ENUMERATED Line 2
Rx Mix
Rx Mix Line 2
control.58 Line Left Mux ENUMERATED Line 1
Rx Mix
Rx Mix Line 1
control.59 ALC Mixer Line Capture Switch BOOLEAN true/false false
control.60 ALC Mixer Mic2 Capture Switch BOOLEAN true/false true false false false false
control.61 ALC Mixer Mic1 Capture Switch BOOLEAN true/false false
control.62 ALC Mixer Rx Capture Switch BOOLEAN true/false false true
control.63 Mic Sidetone Mux ENUMERATED Left PGA
Mic 1
Mic 2
Right PGA
Mic 2 Left PGA Mic 1 Left PGA Left PGA Left PGA Left PGA
control.64 Capture Right Mux ENUMERATED PGA
Line or RXP-RXN
Sidetone
PGA Sidetone
control.65 Capture Left Mux ENUMERATED PGA
Line or RXP-RXN
Line
PGA
control.66 Capture Right Mixer ENUMERATED Stereo
Analogue Mix Left
Analogue Mix Right
Digital Mono Mix
Stereo Analogue Mix Left Analogue Mix Right Analogue Mix Left
control.67 Capture Left Mixer ENUMERATED Stereo
Analogue Mix Left
Analogue Mix Right
Digital Mono Mix
Stereo Analogue Mix Left Analogue Mix Right Analogue Mix Left
control.68 Playback Mixer Voice Capture Sw BOOLEAN true/false false true
control.69 Playback Mixer Left Capture Swi BOOLEAN true/false false true
control.70 Playback Mixer Right Capture Sw BOOLEAN true/false false true
control.71 Out4 Mux ENUMERATED VREF
Capture ST
LOUT2
VREF
control.72 Out3 Mux ENUMERATED VREF
ROUT2
Left + Right
VREF
control.73 Mono 2 Mux ENUMERATED Inverted Mono 1
Left
Right
Left + Right
Inverted Mono 1
control.74 Mono Mixer Left Playback Switch BOOLEAN true/false false
control.75 Mono Mixer Right Playback Switc BOOLEAN true/false false
control.76 Mono Mixer Voice Playback Switc BOOLEAN true/false false true
control.77 Mono Mixer Sidetone Playback Sw BOOLEAN true/false true false false false false false
control.78 Mono Mixer Bypass Playback Swit BOOLEAN true/false false
control.79 Right Mixer Voice Playback Swit BOOLEAN true/false false
control.80 Right Mixer Sidetone Playback S BOOLEAN true/false false
control.81 Right Mixer Right Playback Swit BOOLEAN true/false false true true true
control.82 Right Mixer Bypass Playback Swi BOOLEAN true/false true false false false false false
control.83 Left Mixer Voice Playback Switc BOOLEAN true/false false
control.84 Left Mixer Sidetone Playback Sw BOOLEAN true/false false
control.85 Left Mixer Left Playback Switch BOOLEAN true/false false true true true
control.86 Left Mixer Bypass Playback Swit BOOLEAN true/false true false false false false false
control.87 DAPM Stereo Out Switch BOOLEAN true/false false true true true true
control.88 DAPM GSM Line Out Switch BOOLEAN true/false true false false false
control.89 DAPM GSM Line In Switch BOOLEAN true/false true false false false
control.90 DAPM Headset Mic Switch BOOLEAN true/false true false false false false
control.91 DAPM Handset Mic Switch BOOLEAN true/false true false false false
control.92 DAPM Handset Spk Switch BOOLEAN true/false true false false false
control.93 Amp State Switch BOOLEAN true/false false true true true true true true
control.94 Amp Spk Switch BOOLEAN true/false false true true true
Personal tools

The .state file

control.23 {
    comment.access 'read write'
    comment.type BOOLEAN
    comment.count 2
    iface MIXER
    name 'Capture ZC Switch'
    value.0 false
    value.1 false
}

Directives

 control.23 -- name of the control block
 comment.access -- 'read write' (all the 94 control has it)
 comment.type -- BOOLEAN, ENUMERATED, INTEGER
 comment.count -- 1 or 2 (the number of parameters)
 iface MIXER -- all the 94 control has it
 name 'Capture ZC Switch' --
 value.0, value.1, value -- true, false, 0, 7, 110, 127, 'Linear Control', '3.4Hz @48kHz', HiFi, Off, VREF

Table

Number Name Amixer name type range gsmhandset capturehandset gsmheadset gsmspeakerout headset stereout voip-handset gsmbluetooth
control.1 PCM Volume ? INTEGER 0-255 0
0
255
255
235
235
235
235
235
235
235
235
control.2 ADC Capture Volume INTEGER 0-255 0
0
195
195
195
195
195
195
195
195
195
195
control.3 Headphone Playback Volume INTEGER 0-127 0
0
121
121
96
96
127
127
127
127
127
127
127
127
0
0
control.4 Speaker Playback Volume INTEGER 0-127 127
127
121
121
0
0
0
0
0
0
0
0
0
0
control.5 Mono Playback Volume INTEGER 0-127 110 121 103 103 121 121 121 79
control.6 Bypass Playback Volume INTEGER 0-7 7
7
2
2
2
2
2
2
2
2
6
6
control.7 Sidetone Playback Volume INTEGER 0-7 0
0
2
2
2
2
2
2
6
6
control.8 Voice Playback Volume INTEGER 0-7 0
0
2
2
2
2
2
2
2
2
7
7
control.9 Headphone Playback ZC Switch BOOLEAN true/false false
false
control.10 Speaker Playback ZC Switch BOOLEAN true/false false
false
control.11 Mono Bypass Playback Volume INTEGER 0-7 0 2 2 2 2 5
control.12 Mono Sidetone Playback Volume INTEGER 0-7 7 2 5 6 2 2 2 5
control.13 Mono Voice Playback Volume INTEGER 0-7 0 2 2 2 2 4
control.14 Mono Playback ZC Switch BOOLEAN true/false false
control.15 Bass Boost ENUMERATED Linear Control
Adaptive Boost
Linear Control
control.16 Bass Filter ENUMERATED 130Hz @ 48kHz
200Hz @ 48kHz
100Hz @ 16kHz
400Hz @ 48kHz
100Hz @ 8kHz
200Hz @ 8kHz
130Hz @ 48kHz
control.17 Bass Volume INTEGER 0-15 0 8
control.18 Treble Volume INTEGER 0-15 0 7 8
control.19 Treble Cut-off ENUMERATED 8kHz
4kHz
8kHz
control.20 Sidetone Capture Volume INTEGER 0-7 0
0
2
2
2
2
2
2
2
2
control.21 Voice Sidetone Capture Volume INTEGER 0-7 2
control.22 Capture Volume INTEGER 0-63 0
0
23
23
23
23
23
23
47
47
48
48
control.23 Capture ZC Switch BOOLEAN true/false false
false
control.24 Capture Switch BOOLEAN true/false true
true
false
false
false
false
control.25 Capture Filter Select ENUMERATED 3.4Hz @ 48kHz
82Hz @ 16k
82Hz @ 8kHz
170Hz @ 8kHz
3.4Hz @ 48kHz 83 Hz @ 8kHz
control.26 Capture Filter Cut-off ENUMERATED HiFi
Voice
HiFi Voice
control.27 Capture Filter Switch BOOLEAN true/false false true true true true true
control.28 ALC Capture Target Volume INTEGER 0-7 0 3 3 3 3 4
control.29 ALC Capture Max Volume INTEGER 0-7 0 7 7 7 7 5
control.30 ALC Capture Function ENUMERATED Off
Right
Left
Stereo
Off
control.31 ALC Capture ZC Switch BOOLEAN true/false false
control.32 ALC Capture Hold Time INTEGER 0-15 0 15 15 15 15 4
control.33 ALC Capture Decay Time INTEGER 0-15 0 12 12 12 12 8
control.34 ALC Capture Attack Time INTEGER 0-15 0 2 2 2 2 2
control.35 ALC Capture NG Threshold INTEGER 0-31 0 7
control.36 ALC Capture NG Type ENUMERATED Constant PGA Gain
Mute ADC Output
Mute ADC Output Constant PGA Gain Constant PGA Gain Constant PGA Gain Constant PGA Gain Constant PGA Gain
control.37 ALC Capture NG Switch BOOLEAN true/false false
control.38 3D Function ENUMERATED Capture
Playback
Capture
control.39 3D Upper Cut-off ENUMERATED 2.2kHz
1.5kHz
2.2kHz
control.40 3D Lower Cut-off ENUMERATED 200Hz
500Hz
200Hz
control.41 3D Volume INTEGER 0-15 0 8
control.42 3D Switch BOOLEAN true/false false
control.43 Capture 6dB Attenuate BOOLEAN true/false false
control.44 Playback 6dB Attenuate BOOLEAN true/false false
control.45 De-emphasis ENUMERATED None
32kHz
44.1kHz
48kHz
None
control.46 Playback Mono Mix ENUMERATED Stereo
Left
Right
Mono
Stereo
control.47 Playback Phase ENUMERATED Non Inverted
Inverted
Non Inverted
control.48 Mic2 Capture Volume INTEGER 0-3 3 0 0 0 0 2
control.49 Mic1 Capture Volume INTEGER 0-3 0 3
control.50 DAI Mode ENUMERATED DAI 0
DAI 1
DAI 2
DAI 3
DAI 0 DAI 2 DAI 2
control.51 ADC Data Select ENUMERATED Stereo
Left ADC
Right ADC
Channel Swap
Stereo Left ADC
control.52 ROUT2 Phase ENUMERATED Non Inverted
Inverted
Inverted
control.53 Mic Selection Mux ENUMERATED Mic 1
Mic 2
Mic 3
Mic 1
control.54 Rx Mixer ENUMERATED RXP - RXN
RXP + RXN
RXP
RXN
RXP - RXN
control.55 Line Mixer ENUMERATED Line 1 + 2
Line 1 - 2
Line 1
Line 2
Line 1 + 2 Line 1 - 2
control.56 Line Mono Mux ENUMERATED Line Mix
Rx Mix
Line Mix Rx Mix
control.57 Line Right Mux ENUMERATED Line 2
Rx Mix
Rx Mix Line 2
control.58 Line Left Mux ENUMERATED Line 1
Rx Mix
Rx Mix Line 1
control.59 ALC Mixer Line Capture Switch BOOLEAN true/false false
control.60 ALC Mixer Mic2 Capture Switch BOOLEAN true/false true false false false false
control.61 ALC Mixer Mic1 Capture Switch BOOLEAN true/false false
control.62 ALC Mixer Rx Capture Switch BOOLEAN true/false false true
control.63 Mic Sidetone Mux ENUMERATED Left PGA
Mic 1
Mic 2
Right PGA
Mic 2 Left PGA Mic 1 Left PGA Left PGA Left PGA Left PGA
control.64 Capture Right Mux ENUMERATED PGA
Line or RXP-RXN
Sidetone
PGA Sidetone
control.65 Capture Left Mux ENUMERATED PGA
Line or RXP-RXN
Line
PGA
control.66 Capture Right Mixer ENUMERATED Stereo
Analogue Mix Left
Analogue Mix Right
Digital Mono Mix
Stereo Analogue Mix Left Analogue Mix Right Analogue Mix Left
control.67 Capture Left Mixer ENUMERATED Stereo
Analogue Mix Left
Analogue Mix Right
Digital Mono Mix
Stereo Analogue Mix Left Analogue Mix Right Analogue Mix Left
control.68 Playback Mixer Voice Capture Sw BOOLEAN true/false false true
control.69 Playback Mixer Left Capture Swi BOOLEAN true/false false true
control.70 Playback Mixer Right Capture Sw BOOLEAN true/false false true
control.71 Out4 Mux ENUMERATED VREF
Capture ST
LOUT2
VREF
control.72 Out3 Mux ENUMERATED VREF
ROUT2
Left + Right
VREF
control.73 Mono 2 Mux ENUMERATED Inverted Mono 1
Left
Right
Left + Right
Inverted Mono 1
control.74 Mono Mixer Left Playback Switch BOOLEAN true/false false
control.75 Mono Mixer Right Playback Switc BOOLEAN true/false false
control.76 Mono Mixer Voice Playback Switc BOOLEAN true/false false true
control.77 Mono Mixer Sidetone Playback Sw BOOLEAN true/false true false false false false false
control.78 Mono Mixer Bypass Playback Swit BOOLEAN true/false false
control.79 Right Mixer Voice Playback Swit BOOLEAN true/false false
control.80 Right Mixer Sidetone Playback S BOOLEAN true/false false
control.81 Right Mixer Right Playback Swit BOOLEAN true/false false true true true
control.82 Right Mixer Bypass Playback Swi BOOLEAN true/false true false false false false false
control.83 Left Mixer Voice Playback Switc BOOLEAN true/false false
control.84 Left Mixer Sidetone Playback Sw BOOLEAN true/false false
control.85 Left Mixer Left Playback Switch BOOLEAN true/false false true true true
control.86 Left Mixer Bypass Playback Swit BOOLEAN true/false true false false false false false
control.87 DAPM Stereo Out Switch BOOLEAN true/false false true true true true
control.88 DAPM GSM Line Out Switch BOOLEAN true/false true false false false
control.89 DAPM GSM Line In Switch BOOLEAN true/false true false false false
control.90 DAPM Headset Mic Switch BOOLEAN true/false true false false false false
control.91 DAPM Handset Mic Switch BOOLEAN true/false true false false false
control.92 DAPM Handset Spk Switch BOOLEAN true/false true false false false
control.93 Amp State Switch BOOLEAN true/false false true true true true true true
control.94 Amp Spk Switch BOOLEAN true/false false true true true