The ultimate alsa guide to statefile by klaszlo

From Openmoko

(Difference between revisions)
Jump to: navigation, search
(Table)
(Table)
Line 29: Line 29:
 
  !range
 
  !range
 
  !value.gsmhandset
 
  !value.gsmhandset
 +
!value.capturehandset
 
  |-
 
  |-
 
  |control.1
 
  |control.1
Line 36: Line 37:
 
  |0-255
 
  |0-255
 
  |0<br />0
 
  |0<br />0
 +
|255<br />255
 
  |-
 
  |-
 
  |control.2
 
  |control.2
Line 43: Line 45:
 
  |0-255
 
  |0-255
 
  |0<br />0
 
  |0<br />0
 +
|195<br />195
 
  |-
 
  |-
 
  |control.3
 
  |control.3
Line 50: Line 53:
 
  |0-127
 
  |0-127
 
  |0<br />0
 
  |0<br />0
 +
|121<br />121
 
  |-
 
  |-
 
  |control.4
 
  |control.4
Line 57: Line 61:
 
  |0-127
 
  |0-127
 
  |127<br />127
 
  |127<br />127
 +
|121<br/>121
 
  |-
 
  |-
 
  |control.5
 
  |control.5
Line 64: Line 69:
 
  |0-127
 
  |0-127
 
  |110
 
  |110
 +
|121
 
  |-
 
  |-
 
  |control.6
 
  |control.6
Line 71: Line 77:
 
  |0-7
 
  |0-7
 
  |7<br />7
 
  |7<br />7
 +
|2<br />2
 
  |-
 
  |-
 
  |control.7
 
  |control.7
Line 84: Line 91:
 
  |INTEGER
 
  |INTEGER
 
  |0-7
 
  |0-7
  |0<br />0  
+
  |0<br />0
 +
|2<br />2
 
  |-
 
  |-
 
  |control.9
 
  |control.9
Line 92: Line 100:
 
  |true/false
 
  |true/false
 
  |false <br />false
 
  |false <br />false
 +
|
 
  |-
 
  |-
 
  |control.10
 
  |control.10
Line 99: Line 108:
 
  |true/false
 
  |true/false
 
  |false <br />false
 
  |false <br />false
 +
|
 
  |-
 
  |-
 
  |control.11
 
  |control.11
Line 106: Line 116:
 
  |0-7
 
  |0-7
 
  |0
 
  |0
 +
|2
 
  |-
 
  |-
 
  |control.12
 
  |control.12
Line 113: Line 124:
 
  |0-7
 
  |0-7
 
  |7  
 
  |7  
 +
|2
 
  |-
 
  |-
 
  |control.13
 
  |control.13
Line 120: Line 132:
 
  |0-7
 
  |0-7
 
  |0
 
  |0
 +
|2
 
  |-
 
  |-
 
  |control.14
 
  |control.14
Line 127: Line 140:
 
  |true/false
 
  |true/false
 
  |false
 
  |false
 +
|
 
  |-
 
  |-
 
  |control.15
 
  |control.15
Line 134: Line 148:
 
  |Linear Control <br />Adaptive Boost
 
  |Linear Control <br />Adaptive Boost
 
  |Linear Control
 
  |Linear Control
 +
|
 
  |-
 
  |-
 
  |control.16
 
  |control.16
Line 141: Line 156:
 
  |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
 +
|
 
  |-
 
  |-
 
  |control.17
 
  |control.17
Line 148: Line 164:
 
  |0-15
 
  |0-15
 
  |0
 
  |0
 +
|
 
  |-
 
  |-
 
  |control.18
 
  |control.18
Line 155: Line 172:
 
  |0-15
 
  |0-15
 
  |0
 
  |0
 +
|7
 
  |-
 
  |-
 
  |control.19
 
  |control.19
Line 162: Line 180:
 
  |8kHz <br />4kHz
 
  |8kHz <br />4kHz
 
  |8kHz
 
  |8kHz
 +
|
 
  |-
 
  |-
 
  |control.20
 
  |control.20
Line 169: Line 188:
 
  |0-7
 
  |0-7
 
  |0<br />0
 
  |0<br />0
 +
|2<br />2
 
  |-
 
  |-
 
  |control.21
 
  |control.21
Line 176: Line 196:
 
  |0-7
 
  |0-7
 
  |2
 
  |2
 +
|
 
  |-
 
  |-
 
  |control.22
 
  |control.22
Line 183: Line 204:
 
  |0-63
 
  |0-63
 
  |0<br />0
 
  |0<br />0
 +
|23<br />23
 
  |-
 
  |-
 
  |control.23
 
  |control.23
Line 190: Line 212:
 
  |true/false
 
  |true/false
 
  |false<br />false
 
  |false<br />false
 +
|
 
  |-
 
  |-
 
  |control.24
 
  |control.24
Line 197: Line 220:
 
  |true/false
 
  |true/false
 
  |true<br />true
 
  |true<br />true
 +
|
 
  |-
 
  |-
 
  |control.25
 
  |control.25
Line 204: Line 228:
 
  |3.4Hz @ 48kHz<br />82Hz @ 16k<br />82Hz @ 8kHz<br />170Hz @ 8kHz<br />
 
  |3.4Hz @ 48kHz<br />82Hz @ 16k<br />82Hz @ 8kHz<br />170Hz @ 8kHz<br />
 
  |3.4Hz @ 48kHz
 
  |3.4Hz @ 48kHz
 +
|
 
  |-
 
  |-
 
  |control.26
 
  |control.26
Line 211: Line 236:
 
  |HiFi<br />Voice
 
  |HiFi<br />Voice
 
  |HiFi
 
  |HiFi
 +
|
 
  |-
 
  |-
 
  |control.27
 
  |control.27
Line 218: Line 244:
 
  |true/false
 
  |true/false
 
  |false
 
  |false
 +
|true
 
  |-
 
  |-
 
  |control.28
 
  |control.28
Line 225: Line 252:
 
  |0-7
 
  |0-7
 
  |0
 
  |0
 +
|3
 
  |-
 
  |-
 
  |control.29
 
  |control.29
Line 232: Line 260:
 
  |0-7
 
  |0-7
 
  |0
 
  |0
 +
|7
 
  |-
 
  |-
 
  |control.30
 
  |control.30
Line 239: Line 268:
 
  |Off<br />Right<br />Left<br />Stereo
 
  |Off<br />Right<br />Left<br />Stereo
 
  |Off
 
  |Off
 +
|
 
  |-
 
  |-
 
  |control.31
 
  |control.31
Line 246: Line 276:
 
  |true/false
 
  |true/false
 
  |false
 
  |false
 +
|
 
  |-
 
  |-
 
  |control.32
 
  |control.32
Line 253: Line 284:
 
  |0-15
 
  |0-15
 
  |0
 
  |0
 +
|15
 
  |-
 
  |-
 
  |control.33
 
  |control.33
Line 260: Line 292:
 
  |0-15
 
  |0-15
 
  |0
 
  |0
 +
|12
 
  |-
 
  |-
 
  |control.34
 
  |control.34
Line 267: Line 300:
 
  |0-15
 
  |0-15
 
  |0
 
  |0
 +
|2
 
  |-
 
  |-
 
  |control.35
 
  |control.35
Line 274: Line 308:
 
  |0-31
 
  |0-31
 
  |0
 
  |0
 +
|
 
  |-
 
  |-
 
  |control.36
 
  |control.36
Line 281: Line 316:
 
  |Constant PGA Gain<br />Mute ADC Output
 
  |Constant PGA Gain<br />Mute ADC Output
 
  |Mute ADC Output
 
  |Mute ADC Output
 +
|Constant PGA Gain
 
  |-
 
  |-
 
  |control.37
 
  |control.37
Line 288: Line 324:
 
  |true/false
 
  |true/false
 
  |false
 
  |false
 +
|
 
  |-
 
  |-
 
  |control.38
 
  |control.38
Line 295: Line 332:
 
  |Capture<br />Playback
 
  |Capture<br />Playback
 
  |Capture
 
  |Capture
 +
|
 
  |-
 
  |-
 
  |control.39
 
  |control.39
Line 302: Line 340:
 
  |2.2kHz<br />1.5kHz
 
  |2.2kHz<br />1.5kHz
 
  |2.2kHz
 
  |2.2kHz
 +
|
 
  |-
 
  |-
 
  |control.40
 
  |control.40
Line 309: Line 348:
 
  |200Hz<br />500Hz
 
  |200Hz<br />500Hz
 
  |200Hz
 
  |200Hz
 +
|
 
  |-
 
  |-
 
  |control.41
 
  |control.41
Line 316: Line 356:
 
  |0-15
 
  |0-15
 
  |0
 
  |0
 +
|
 
  |-
 
  |-
 
  |control.42
 
  |control.42
Line 323: Line 364:
 
  |true/false
 
  |true/false
 
  |false
 
  |false
 +
|
 
  |-
 
  |-
 
  |control.43
 
  |control.43
Line 330: Line 372:
 
  |true/false
 
  |true/false
 
  |false
 
  |false
 +
|
 
  |-
 
  |-
 
  |control.44
 
  |control.44
Line 337: Line 380:
 
  |true/false
 
  |true/false
 
  |false
 
  |false
 +
|
 
  |-
 
  |-
 
  |control.45
 
  |control.45
Line 344: Line 388:
 
  |None<br />32kHz<br />44.1kHz<br />48kHz
 
  |None<br />32kHz<br />44.1kHz<br />48kHz
 
  |None
 
  |None
 +
|
 
  |-
 
  |-
 
  |control.46
 
  |control.46
Line 351: Line 396:
 
  |Stereo<br />Left<br />Right<br />Mono
 
  |Stereo<br />Left<br />Right<br />Mono
 
  |Stereo
 
  |Stereo
 +
|
 
  |-
 
  |-
 
  |control.47
 
  |control.47
Line 358: Line 404:
 
  |Non Inverted<br />Inverted
 
  |Non Inverted<br />Inverted
 
  |Non Inverted
 
  |Non Inverted
 +
|
 
  |-
 
  |-
 
  |control.48
 
  |control.48
Line 365: Line 412:
 
  |0-3
 
  |0-3
 
  |3
 
  |3
 +
|
 
  |-
 
  |-
 
  |control.49
 
  |control.49
Line 372: Line 420:
 
  |0-3
 
  |0-3
 
  |0
 
  |0
 +
|
 
  |-
 
  |-
 
  |control.50
 
  |control.50
Line 379: Line 428:
 
  |DAI 0<br />DAI 1<br />DAI 2<br />DAI 3
 
  |DAI 0<br />DAI 1<br />DAI 2<br />DAI 3
 
  |DAI 0
 
  |DAI 0
 +
|DAI 2
 
  |-
 
  |-
 
  |control.51
 
  |control.51
Line 386: Line 436:
 
  |Stereo<br />Left ADC<br />Right ADC<br />Channel Swap
 
  |Stereo<br />Left ADC<br />Right ADC<br />Channel Swap
 
  |Stereo
 
  |Stereo
 +
|
 
  |-
 
  |-
 
  |control.52
 
  |control.52
Line 393: Line 444:
 
  |Non Inverted<br />Inverted
 
  |Non Inverted<br />Inverted
 
  |Inverted
 
  |Inverted
 +
|
 
  |-
 
  |-
 
  |control.53
 
  |control.53
Line 400: Line 452:
 
  |Mic 1<br />Mic 2<br />Mic 3
 
  |Mic 1<br />Mic 2<br />Mic 3
 
  |Mic 1
 
  |Mic 1
 +
|
 
  |-
 
  |-
 
  |control.54
 
  |control.54
Line 407: Line 460:
 
  |RXP - RXN<br />RXP + RXN<br />RXP<br />RXN
 
  |RXP - RXN<br />RXP + RXN<br />RXP<br />RXN
 
  |RXP - RXN
 
  |RXP - RXN
 +
|
 
  |-
 
  |-
 
  |control.55
 
  |control.55
Line 414: Line 468:
 
  |Line 1 + 2<br />Line 1 - 2<br />Line 1<br />Line 2
 
  |Line 1 + 2<br />Line 1 - 2<br />Line 1<br />Line 2
 
  |Line 1 + 2
 
  |Line 1 + 2
 +
|
 
  |-
 
  |-
 
  |control.56
 
  |control.56
Line 421: Line 476:
 
  |Line Mix<br />Rx Mix
 
  |Line Mix<br />Rx Mix
 
  |Line Mix
 
  |Line Mix
 +
|
 
  |-
 
  |-
 
  |control.57
 
  |control.57
Line 428: Line 484:
 
  |Line 2<br />Rx Mix
 
  |Line 2<br />Rx Mix
 
  |Rx Mix
 
  |Rx Mix
 +
|Line 2
 
  |-
 
  |-
 
  |control.58
 
  |control.58
Line 435: Line 492:
 
  |Line 1<br />Rx Mix
 
  |Line 1<br />Rx Mix
 
  |Rx Mix
 
  |Rx Mix
 +
|Line 1
 
  |-
 
  |-
 
  |control.59
 
  |control.59
Line 442: Line 500:
 
  |true/false
 
  |true/false
 
  |false
 
  |false
 +
|
 
  |-
 
  |-
 
  |control.60
 
  |control.60
Line 449: Line 508:
 
  |true/false
 
  |true/false
 
  |true
 
  |true
 +
|
 
  |-
 
  |-
 
  |control.61
 
  |control.61
Line 456: Line 516:
 
  |true/false
 
  |true/false
 
  |false  
 
  |false  
 +
|
 
  |-
 
  |-
 
  |control.62
 
  |control.62
Line 463: Line 524:
 
  |true/false
 
  |true/false
 
  |false
 
  |false
 +
|
 
  |-
 
  |-
 
  |control.63
 
  |control.63
Line 470: Line 532:
 
  |Left PGA<br />Mic 1<br />Mic 2<br />Right PGA
 
  |Left PGA<br />Mic 1<br />Mic 2<br />Right PGA
 
  |Mic 2
 
  |Mic 2
 +
|Left PGA
 
  |-
 
  |-
 
  |control.64
 
  |control.64
Line 477: Line 540:
 
  |PGA<br />Line or RXP-RXN<br />Sidetone
 
  |PGA<br />Line or RXP-RXN<br />Sidetone
 
  |PGA
 
  |PGA
 +
|
 
  |-
 
  |-
 
  |control.65
 
  |control.65
Line 484: Line 548:
 
  |PGA<br />Line or RXP-RXN<br />Line
 
  |PGA<br />Line or RXP-RXN<br />Line
 
  |PGA
 
  |PGA
 +
|
 
  |-
 
  |-
 
  |control.66
 
  |control.66
Line 491: Line 556:
 
  |Stereo<br />Analogue Mix Left<br />Analogue Mix Right<br />Digital Mono Mix
 
  |Stereo<br />Analogue Mix Left<br />Analogue Mix Right<br />Digital Mono Mix
 
  |Stereo
 
  |Stereo
 +
|Analogue Mix Left
 
  |-
 
  |-
 
  |control.67
 
  |control.67
Line 498: Line 564:
 
  |Stereo<br />Analogue Mix Left<br />Analogue Mix Right<br />Digital Mono Mix
 
  |Stereo<br />Analogue Mix Left<br />Analogue Mix Right<br />Digital Mono Mix
 
  |Stereo
 
  |Stereo
 +
|Analogue Mix Left
 
  |-
 
  |-
 
  |control.68
 
  |control.68
Line 505: Line 572:
 
  |true/false
 
  |true/false
 
  |false
 
  |false
 +
|
 
  |-
 
  |-
 
  |control.69
 
  |control.69
Line 512: Line 580:
 
  |true/false
 
  |true/false
 
  |false
 
  |false
 +
|
 
  |-
 
  |-
 
  |control.70
 
  |control.70
Line 519: Line 588:
 
  |true/false
 
  |true/false
 
  |false
 
  |false
 +
|
 
  |-
 
  |-
 
  |control.71
 
  |control.71
Line 526: Line 596:
 
  |VREF<br />Capture ST<br />LOUT2
 
  |VREF<br />Capture ST<br />LOUT2
 
  |VREF
 
  |VREF
 +
|
 
  |-
 
  |-
 
  |control.72
 
  |control.72
Line 533: Line 604:
 
  |VREF<br />ROUT2<br />Left + Right
 
  |VREF<br />ROUT2<br />Left + Right
 
  |VREF
 
  |VREF
 +
|
 
  |-
 
  |-
 
  |control.73
 
  |control.73
Line 540: Line 612:
 
  |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
 +
|
 
  |-
 
  |-
 
  |control.74
 
  |control.74
Line 547: Line 620:
 
  |true/false
 
  |true/false
 
  |false
 
  |false
 +
|
 
  |-
 
  |-
 
  |control.75
 
  |control.75
Line 554: Line 628:
 
  |true/false
 
  |true/false
 
  |false
 
  |false
 +
|
 
  |-
 
  |-
 
  |control.76
 
  |control.76
Line 561: Line 636:
 
  |true/false
 
  |true/false
 
  |false
 
  |false
 +
|
 
  |-
 
  |-
 
  |control.77
 
  |control.77
Line 568: Line 644:
 
  |true/false
 
  |true/false
 
  |true
 
  |true
 +
|false
 
  |-
 
  |-
 
  |control.78
 
  |control.78
Line 575: Line 652:
 
  |true/false
 
  |true/false
 
  |false
 
  |false
 +
|
 
  |-
 
  |-
 
  |control.79
 
  |control.79
Line 582: Line 660:
 
  |true/false
 
  |true/false
 
  |false
 
  |false
 +
|
 
  |-
 
  |-
 
  |control.80
 
  |control.80
Line 589: Line 668:
 
  |true/false
 
  |true/false
 
  |false
 
  |false
 +
|
 
  |-
 
  |-
 
  |control.81
 
  |control.81
Line 596: Line 676:
 
  |true/false
 
  |true/false
 
  |false
 
  |false
 +
|
 
  |-
 
  |-
 
  |control.82
 
  |control.82
Line 603: Line 684:
 
  |true/false
 
  |true/false
 
  |true
 
  |true
 +
|false
 
  |-
 
  |-
 
  |control.83
 
  |control.83
Line 610: Line 692:
 
  |true/false
 
  |true/false
 
  |false
 
  |false
 +
|
 
  |-
 
  |-
 
  |control.84
 
  |control.84
Line 617: Line 700:
 
  |true/false
 
  |true/false
 
  |false
 
  |false
 +
|
 
  |-
 
  |-
 
  |control.85
 
  |control.85
Line 624: Line 708:
 
  |true/false
 
  |true/false
 
  |false
 
  |false
 +
|
 
  |-
 
  |-
 
  |control.86
 
  |control.86
Line 631: Line 716:
 
  |true/false
 
  |true/false
 
  |true
 
  |true
 +
|false
 
  |-
 
  |-
 
  |control.87
 
  |control.87
Line 638: Line 724:
 
  |true/false
 
  |true/false
 
  |false
 
  |false
 +
|
 
  |-
 
  |-
 
  |control.88
 
  |control.88
Line 645: Line 732:
 
  |true/false
 
  |true/false
 
  |true
 
  |true
 +
|
 
  |-
 
  |-
 
  |control.89
 
  |control.89
Line 652: Line 740:
 
  |true/false
 
  |true/false
 
  |true
 
  |true
 +
|
 
  |-
 
  |-
 
  |control.90
 
  |control.90
Line 659: Line 748:
 
  |true/false
 
  |true/false
 
  |true
 
  |true
 +
|
 
  |-
 
  |-
 
  |control.91
 
  |control.91
Line 666: Line 756:
 
  |true/false
 
  |true/false
 
  |true
 
  |true
 +
|
 
  |-
 
  |-
 
  |control.92
 
  |control.92
Line 673: Line 764:
 
  |true/false
 
  |true/false
 
  |true
 
  |true
 +
|
 
  |-
 
  |-
 
  |control.93
 
  |control.93
Line 680: Line 772:
 
  |true/false
 
  |true/false
 
  |false
 
  |false
 +
|true
 
  |-
 
  |-
 
  |control.94
 
  |control.94
Line 687: Line 780:
 
  |true/false
 
  |true/false
 
  |false
 
  |false
 +
|true
 
  |}
 
  |}

Revision as of 12:05, 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 value.gsmhandset value.capturehandset
control.1 PCM Volume ? INTEGER 0-255 0
0
255
255
control.2 ADC Capture Volume INTEGER 0-255 0
0
195
195
control.3 Headphone Playback Volume INTEGER 0-127 0
0
121
121
control.4 Speaker Playback Volume INTEGER 0-127 127
127
121
121
control.5 Mono Playback Volume INTEGER 0-127 110 121
control.6 Bypass Playback Volume INTEGER 0-7 7
7
2
2
control.7 Sidetone Playback Volume INTEGER 0-7 0
0
control.8 Voice Playback Volume INTEGER 0-7 0
0
2
2
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
control.12 Mono Sidetone Playback Volume INTEGER 0-7 7 2
control.13 Mono Voice Playback Volume INTEGER 0-7 0 2
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
control.18 Treble Volume INTEGER 0-15 0 7
control.19 Treble Cut-off ENUMERATED 8kHz
4kHz
8kHz
control.20 Sidetone Capture Volume INTEGER 0-7 0
0
2
2
control.21 Voice Sidetone Capture Volume INTEGER 0-7 2
control.22 Capture Volume INTEGER 0-63 0
0
23
23
control.23 Capture ZC Switch BOOLEAN true/false false
false
control.24 Capture Switch BOOLEAN true/false true
true
control.25 Capture Filter Select ENUMERATED 3.4Hz @ 48kHz
82Hz @ 16k
82Hz @ 8kHz
170Hz @ 8kHz
3.4Hz @ 48kHz
control.26 Capture Filter Cut-off ENUMERATED HiFi
Voice
HiFi
control.27 Capture Filter Switch BOOLEAN true/false false true
control.28 ALC Capture Target Volume INTEGER 0-7 0 3
control.29 ALC Capture Max Volume INTEGER 0-7 0 7
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
control.33 ALC Capture Decay Time INTEGER 0-15 0 12
control.34 ALC Capture Attack Time INTEGER 0-15 0 2
control.35 ALC Capture NG Threshold INTEGER 0-31 0
control.36 ALC Capture NG Type ENUMERATED Constant PGA Gain
Mute ADC Output
Mute ADC Output 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
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
control.49 Mic1 Capture Volume INTEGER 0-3 0
control.50 DAI Mode ENUMERATED DAI 0
DAI 1
DAI 2
DAI 3
DAI 0 DAI 2
control.51 ADC Data Select ENUMERATED Stereo
Left ADC
Right ADC
Channel Swap
Stereo
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
control.56 Line Mono Mux ENUMERATED Line Mix
Rx Mix
Line 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
control.61 ALC Mixer Mic1 Capture Switch BOOLEAN true/false false
control.62 ALC Mixer Rx Capture Switch BOOLEAN true/false false
control.63 Mic Sidetone Mux ENUMERATED Left PGA
Mic 1
Mic 2
Right PGA
Mic 2 Left PGA
control.64 Capture Right Mux ENUMERATED PGA
Line or RXP-RXN
Sidetone
PGA
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
control.67 Capture Left Mixer ENUMERATED Stereo
Analogue Mix Left
Analogue Mix Right
Digital Mono Mix
Stereo Analogue Mix Left
control.68 Playback Mixer Voice Capture Sw BOOLEAN true/false false
control.69 Playback Mixer Left Capture Swi BOOLEAN true/false false
control.70 Playback Mixer Right Capture Sw BOOLEAN true/false false
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
control.77 Mono Mixer Sidetone Playback Sw BOOLEAN true/false true 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
control.82 Right Mixer Bypass Playback Swi BOOLEAN true/false true 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
control.86 Left Mixer Bypass Playback Swit BOOLEAN true/false true false
control.87 DAPM Stereo Out Switch BOOLEAN true/false false
control.88 DAPM GSM Line Out Switch BOOLEAN true/false true
control.89 DAPM GSM Line In Switch BOOLEAN true/false true
control.90 DAPM Headset Mic Switch BOOLEAN true/false true
control.91 DAPM Handset Mic Switch BOOLEAN true/false true
control.92 DAPM Handset Spk Switch BOOLEAN true/false true
control.93 Amp State Switch BOOLEAN true/false false true
control.94 Amp Spk Switch BOOLEAN true/false false 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 value.gsmhandset value.capturehandset
control.1 PCM Volume ? INTEGER 0-255 0
0
255
255
control.2 ADC Capture Volume INTEGER 0-255 0
0
195
195
control.3 Headphone Playback Volume INTEGER 0-127 0
0
121
121
control.4 Speaker Playback Volume INTEGER 0-127 127
127
121
121
control.5 Mono Playback Volume INTEGER 0-127 110 121
control.6 Bypass Playback Volume INTEGER 0-7 7
7
2
2
control.7 Sidetone Playback Volume INTEGER 0-7 0
0
control.8 Voice Playback Volume INTEGER 0-7 0
0
2
2
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
control.12 Mono Sidetone Playback Volume INTEGER 0-7 7 2
control.13 Mono Voice Playback Volume INTEGER 0-7 0 2
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
control.18 Treble Volume INTEGER 0-15 0 7
control.19 Treble Cut-off ENUMERATED 8kHz
4kHz
8kHz
control.20 Sidetone Capture Volume INTEGER 0-7 0
0
2
2
control.21 Voice Sidetone Capture Volume INTEGER 0-7 2
control.22 Capture Volume INTEGER 0-63 0
0
23
23
control.23 Capture ZC Switch BOOLEAN true/false false
false
control.24 Capture Switch BOOLEAN true/false true
true
control.25 Capture Filter Select ENUMERATED 3.4Hz @ 48kHz
82Hz @ 16k
82Hz @ 8kHz
170Hz @ 8kHz
3.4Hz @ 48kHz
control.26 Capture Filter Cut-off ENUMERATED HiFi
Voice
HiFi
control.27 Capture Filter Switch BOOLEAN true/false false true
control.28 ALC Capture Target Volume INTEGER 0-7 0 3
control.29 ALC Capture Max Volume INTEGER 0-7 0 7
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
control.33 ALC Capture Decay Time INTEGER 0-15 0 12
control.34 ALC Capture Attack Time INTEGER 0-15 0 2
control.35 ALC Capture NG Threshold INTEGER 0-31 0
control.36 ALC Capture NG Type ENUMERATED Constant PGA Gain
Mute ADC Output
Mute ADC Output 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
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
control.49 Mic1 Capture Volume INTEGER 0-3 0
control.50 DAI Mode ENUMERATED DAI 0
DAI 1
DAI 2
DAI 3
DAI 0 DAI 2
control.51 ADC Data Select ENUMERATED Stereo
Left ADC
Right ADC
Channel Swap
Stereo
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
control.56 Line Mono Mux ENUMERATED Line Mix
Rx Mix
Line 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
control.61 ALC Mixer Mic1 Capture Switch BOOLEAN true/false false
control.62 ALC Mixer Rx Capture Switch BOOLEAN true/false false
control.63 Mic Sidetone Mux ENUMERATED Left PGA
Mic 1
Mic 2
Right PGA
Mic 2 Left PGA
control.64 Capture Right Mux ENUMERATED PGA
Line or RXP-RXN
Sidetone
PGA
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
control.67 Capture Left Mixer ENUMERATED Stereo
Analogue Mix Left
Analogue Mix Right
Digital Mono Mix
Stereo Analogue Mix Left
control.68 Playback Mixer Voice Capture Sw BOOLEAN true/false false
control.69 Playback Mixer Left Capture Swi BOOLEAN true/false false
control.70 Playback Mixer Right Capture Sw BOOLEAN true/false false
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
control.77 Mono Mixer Sidetone Playback Sw BOOLEAN true/false true 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
control.82 Right Mixer Bypass Playback Swi BOOLEAN true/false true 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
control.86 Left Mixer Bypass Playback Swit BOOLEAN true/false true false
control.87 DAPM Stereo Out Switch BOOLEAN true/false false
control.88 DAPM GSM Line Out Switch BOOLEAN true/false true
control.89 DAPM GSM Line In Switch BOOLEAN true/false true
control.90 DAPM Headset Mic Switch BOOLEAN true/false true
control.91 DAPM Handset Mic Switch BOOLEAN true/false true
control.92 DAPM Handset Spk Switch BOOLEAN true/false true
control.93 Amp State Switch BOOLEAN true/false false true
control.94 Amp Spk Switch BOOLEAN true/false false true