The ultimate alsa guide to statefile by klaszlo

From Openmoko

Revision as of 09:29, 19 September 2009 by Klaszlo (Talk | contribs)

Jump to: navigation, search

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 -- ?
 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
 comment.count -- 1 or 2,

Table

Number Name Amixer name type value.gsmhandset
control.1 PCM Volume ? INTEGER value.0=0, value.1=0
control.2
control.2
control.2
control.2
control.2
control.2
control.2
control.2
control.2
control.2
control.2
control.2
control.2
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 -- ?
 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
 comment.count -- 1 or 2,

Table

Number Name Amixer name type value.gsmhandset
control.1 PCM Volume ? INTEGER value.0=0, value.1=0
control.2
control.2
control.2
control.2
control.2
control.2
control.2
control.2
control.2
control.2
control.2
control.2
control.2