example of alsa-base.conf needed

70 views
Skip to first unread message

Hugo Coolens

unread,
May 24, 2018, 8:50:02 AM5/24/18
to Jasper Support Forum
Dear all,

I installed the image in matthew_curry-jasper-img-992d80589279.zip on an SD-card, booted my rpi3b, ran ./jasper-repo-installer.sh and edited profile.yml. When I run  ./jasper-client/client/main.py --local, jasper answers some questions, which is great.
Unfortunately the sound isn't configured correctly on the system. When I try to execute "arecord temp.wav" I get the following error:
arecord: main:788: audio open error: No such file or directory
I think this is due to the fact that /etc/modprobe.d/alsa-base.conf is missing, I tried to make one myself like this but it doesn't work:
options snd_usb_audio index=0
options snd_bcm2835 index=1
install sound-slot-0 /sbin/modprobe snd_usb_audio
install sound-slot-1 /sbin/modprobe snd_bcm2835

Could anyone here help me further with configuring the sound correctly or provide me a working set of of the files:
/etc/modprobe.d/alsa-base.conf
and
/usr/share/alsa/alsa.conf

thanks in advance
Hugo

Hugo Coolens

unread,
May 24, 2018, 9:12:53 AM5/24/18
to Jasper Support Forum
I found the solution:
I had to create the file /etc/modprobe.d/alsa-base.conf
with the following content:
# Load USB audio before the internal soundcard

options snd_usb_audio index=0
options snd_bcm2835 index=1
# Make sure the sound cards are ordered the correct way in ALSA
options snd slots=snd_usb_audio,snd_bcm2835

testing worked as follows:
arecord temp.wav
aplay -D hw:1,0 temp.wav


G10DRAS

unread,
Jun 9, 2018, 7:43:11 PM6/9/18
to Jasper Support Forum
See many useful doc related to alsa setting

https://groups.google.com/forum/m/#!forum/robocopai

Reply all
Reply to author
Forward
0 new messages