From 0df8a1d2ca2a7bac6987bf9dafff839d7b7bf25a Mon Sep 17 00:00:00 2001 From: shivasiddharth Date: Sat, 11 Nov 2017 23:17:30 +0000 Subject: [PATCH 1/2] Update install-alsa-config.sh --- scripts/install-alsa-config.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/scripts/install-alsa-config.sh b/scripts/install-alsa-config.sh index eb725714..e895becd 100755 --- a/scripts/install-alsa-config.sh +++ b/scripts/install-alsa-config.sh @@ -36,4 +36,5 @@ for rcfile in "$asoundrc" "$global_asoundrc"; do done sudo cp scripts/asound.conf "$global_asoundrc" +sudo cp scripts/.asoundrc "$asoundrc" echo "Installed voiceHAT ALSA config at $global_asoundrc" From f0a4f92b010f1d051e4f9f140b5eb3a454277295 Mon Sep 17 00:00:00 2001 From: shivasiddharth Date: Sat, 11 Nov 2017 23:18:15 +0000 Subject: [PATCH 2/2] Create .asoundrc --- scripts/.asoundrc | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 scripts/.asoundrc diff --git a/scripts/.asoundrc b/scripts/.asoundrc new file mode 100644 index 00000000..e5b102f8 --- /dev/null +++ b/scripts/.asoundrc @@ -0,0 +1,30 @@ +options snd_rpi_googlemihat_soundcard index=0 + +pcm.softvol { + type softvol + slave.pcm dmix + control { + name Master + card 0 + } +} + +pcm.micboost { + type route + slave.pcm dsnoop + ttable { + 0.0 30.0 + 1.1 30.0 + } +} + +pcm.!default { + type asym + playback.pcm "plug:softvol" + capture.pcm "plug:micboost" +} + +ctl.!default { + type hw + card 0 +}