Skip to content

Commit

Permalink
optimize some options
Browse files Browse the repository at this point in the history
  • Loading branch information
Pillar1989 committed Sep 15, 2017
1 parent af15d8c commit d454f0d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ grep -q "dtparam=i2s=on" /boot/config.txt || \
echo "dtparam=i2s=on" >> /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
"2mic")
echo "cp wm8960_asound.state /var/lib/alsa/asound.state"
Expand Down
14 changes: 7 additions & 7 deletions wm8960_asound.state
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@ state.ALSA {
control.1 {
iface MIXER
name 'PCM Playback Volume'
value -1995
value -1994
comment {
access 'read write'
type INTEGER
count 1
range '-10239 - 400'
dbmin -9999999
dbmax 400
dbvalue.0 -1995
dbvalue.0 -1994
}
}
control.2 {
Expand Down Expand Up @@ -65,21 +65,21 @@ state.ALSA {
}
}
}
state.seeedvoicecard {
state.seeed2micvoicec {
control.1 {
iface MIXER
name 'Capture Volume'
value.0 63
value.1 63
value.0 39
value.1 39
comment {
access 'read write'
type INTEGER
count 2
range '0 - 63'
dbmin -1725
dbmax 3000
dbvalue.0 3000
dbvalue.1 3000
dbvalue.0 1200
dbvalue.1 1200
}
}
control.2 {
Expand Down

0 comments on commit d454f0d

Please sign in to comment.