1
0
mirror of git://projects.qi-hardware.com/openwrt-packages.git synced 2024-11-22 20:10:38 +02:00

Store/restore alsa settings correctly.

Update asound.state to enable microphone by default.
This commit is contained in:
kyak 2011-06-17 12:04:41 +04:00
parent a84f7d3f9c
commit ec8d8f8c88
2 changed files with 50 additions and 34 deletions

View File

@ -1,69 +1,85 @@
state.LB60 { state.LB60 {
control.1 { control.1 {
comment.access 'read write'
comment.type INTEGER
comment.count 1
comment.range '0 - 3'
iface MIXER iface MIXER
name 'Master Playback Volume' name 'Master Playback Volume'
value 2 value 2
comment {
access 'read write'
type INTEGER
count 1
range '0 - 3'
}
} }
control.2 { control.2 {
comment.access 'read write'
comment.type INTEGER
comment.count 1
comment.range '0 - 31'
iface MIXER iface MIXER
name 'Capture Volume' name 'Master Capture Volume'
value 23 value 21
comment {
access 'read write'
type INTEGER
count 1
range '0 - 31'
}
} }
control.3 { control.3 {
comment.access 'read write'
comment.type BOOLEAN
comment.count 1
iface MIXER iface MIXER
name 'Master Playback Switch' name 'Master Playback Switch'
value true value true
comment {
access 'read write'
type BOOLEAN
count 1
}
} }
control.4 { control.4 {
comment.access 'read write'
comment.type INTEGER
comment.count 1
comment.range '0 - 3'
iface MIXER iface MIXER
name 'Mic Capture Volume' name 'Mic Capture Volume'
value 0 value 2
comment {
access 'read write'
type INTEGER
count 1
range '0 - 3'
}
} }
control.5 { control.5 {
comment.access 'read write'
comment.type BOOLEAN
comment.count 1
iface MIXER iface MIXER
name 'Line Capture Switch' name 'Line Capture Switch'
value false value true
comment {
access 'read write'
type BOOLEAN
count 1
}
} }
control.6 { control.6 {
comment.access 'read write'
comment.type BOOLEAN
comment.count 1
iface MIXER iface MIXER
name 'Mic Capture Switch' name 'Mic Capture Switch'
value false value true
comment {
access 'read write'
type BOOLEAN
count 1
}
} }
control.7 { control.7 {
comment.access 'read write'
comment.type BOOLEAN
comment.count 1
iface MIXER iface MIXER
name 'Output Mixer Bypass Switch' name 'Output Mixer Bypass Switch'
value false value false
comment {
access 'read write'
type BOOLEAN
count 1
}
} }
control.8 { control.8 {
comment.access 'read write'
comment.type BOOLEAN
comment.count 1
iface MIXER iface MIXER
name 'Output Mixer DAC Switch' name 'Output Mixer DAC Switch'
value true value true
comment {
access 'read write'
type BOOLEAN
count 1
}
} }
} }

View File

@ -4,9 +4,9 @@ START=99
STOP=99 STOP=99
start() { start() {
/usr/sbin/alsactl restore /usr/sbin/alsactl restore -f /etc/asound.state
} }
stop() { stop() {
/usr/sbin/alsactl store /usr/sbin/alsactl store -f /etc/asound.state
} }