optimize some options

This commit is contained in:
Baozhu Zuo 2017-09-15 02:01:53 +00:00
parent af15d8c5a0
commit d454f0df21
2 changed files with 8 additions and 8 deletions

View File

@ -75,7 +75,7 @@ grep -q "dtparam=i2s=on" /boot/config.txt || \
echo "dtparam=i2s=on" >> /boot/config.txt echo "dtparam=i2s=on" >> /boot/config.txt
has_2mic=$(grep seeed-2mic-voicecard /boot/config.txt) has_2mic=$(grep seeed-2mic-voicecard /boot/config.txt)
has_4mic=$(grep seeed-2mic-voicecard /boot/config.txt) has_4mic=$(grep seeed-4mic-voicecard /boot/config.txt)
case "${card}" in case "${card}" in
"2mic") "2mic")
echo "cp wm8960_asound.state /var/lib/alsa/asound.state" echo "cp wm8960_asound.state /var/lib/alsa/asound.state"

View File

@ -2,7 +2,7 @@ state.ALSA {
control.1 { control.1 {
iface MIXER iface MIXER
name 'PCM Playback Volume' name 'PCM Playback Volume'
value -1995 value -1994
comment { comment {
access 'read write' access 'read write'
type INTEGER type INTEGER
@ -10,7 +10,7 @@ state.ALSA {
range '-10239 - 400' range '-10239 - 400'
dbmin -9999999 dbmin -9999999
dbmax 400 dbmax 400
dbvalue.0 -1995 dbvalue.0 -1994
} }
} }
control.2 { control.2 {
@ -65,12 +65,12 @@ state.ALSA {
} }
} }
} }
state.seeedvoicecard { state.seeed2micvoicec {
control.1 { control.1 {
iface MIXER iface MIXER
name 'Capture Volume' name 'Capture Volume'
value.0 63 value.0 39
value.1 63 value.1 39
comment { comment {
access 'read write' access 'read write'
type INTEGER type INTEGER
@ -78,8 +78,8 @@ state.seeedvoicecard {
range '0 - 63' range '0 - 63'
dbmin -1725 dbmin -1725
dbmax 3000 dbmax 3000
dbvalue.0 3000 dbvalue.0 1200
dbvalue.1 3000 dbvalue.1 1200
} }
} }
control.2 { control.2 {