The ultimate alsa guide to statefile by klaszlo

From Openmoko

(Difference between revisions)
Jump to: navigation, search
(Directives)
(Table)
Line 28: Line 28:
 
  !Amixer name
 
  !Amixer name
 
  !type
 
  !type
  !value
+
  !value.gsmhandset
 
  |-
 
  |-
 
  |control.1
 
  |control.1

Revision as of 23:00, 18 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 -- ?
 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
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
control.1 PCM Volume ? INTEGER value.0=0, value.1=0