1
0
mirror of git://projects.qi-hardware.com/openwrt-packages.git synced 2024-12-22 12:46:27 +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 {
control.1 {
comment.access 'read write'
comment.type INTEGER
comment.count 1
comment.range '0 - 3'
iface MIXER
name 'Master Playback Volume'
value 2
comment {
access 'read write'
type INTEGER
count 1
range '0 - 3'
}
}
control.2 {
comment.access 'read write'
comment.type INTEGER
comment.count 1
comment.range '0 - 31'
iface MIXER
name 'Capture Volume'
value 23
name 'Master Capture Volume'
value 21
comment {
access 'read write'
type INTEGER
count 1
range '0 - 31'
}
}
control.3 {
comment.access 'read write'
comment.type BOOLEAN
comment.count 1
iface MIXER
name 'Master Playback Switch'
value true
comment {
access 'read write'
type BOOLEAN
count 1
}
}
control.4 {
comment.access 'read write'
comment.type INTEGER
comment.count 1
comment.range '0 - 3'
iface MIXER
name 'Mic Capture Volume'
value 0
value 2
comment {
access 'read write'
type INTEGER
count 1
range '0 - 3'
}
}
control.5 {
comment.access 'read write'
comment.type BOOLEAN
comment.count 1
iface MIXER
name 'Line Capture Switch'
value false
value true
comment {
access 'read write'
type BOOLEAN
count 1
}
}
control.6 {
comment.access 'read write'
comment.type BOOLEAN
comment.count 1
iface MIXER
name 'Mic Capture Switch'
value false
value true
comment {
access 'read write'
type BOOLEAN
count 1
}
}
control.7 {
comment.access 'read write'
comment.type BOOLEAN
comment.count 1
iface MIXER
name 'Output Mixer Bypass Switch'
value false
comment {
access 'read write'
type BOOLEAN
count 1
}
}
control.8 {
comment.access 'read write'
comment.type BOOLEAN
comment.count 1
iface MIXER
name 'Output Mixer DAC Switch'
value true
comment {
access 'read write'
type BOOLEAN
count 1
}
}
}

View File

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