6-Mic Circular Array and Pi 4

Applications/questions using Raspberry Pi with Seeed products, please post it here.

Moderators: lily.li, violet, salmanfarisvp

Post Reply
iliasl
Pre-kindergarten
Pre-kindergarten
Posts: 2
Joined: Tue Jul 16, 2019 11:19 pm

6-Mic Circular Array and Pi 4

Post by iliasl » Tue Jul 16, 2019 11:25 pm

Hi,

We bought a few Raspberry Pi 4 (new models) and a few 6-Mic-Circular-Arrays.

However when we try to load the drivers things don't seem to work.
The LED test app works fine. However, it seems the audio driver is not working correctly.

Any one has any experienc ewith this ?

See below

Code: Select all

pi@raspberrypi:~ $ arecord -l
**** List of CAPTURE Hardware Devices ****

Code: Select all

pi@raspberrypi:~ $ arecord -L
null
   Discard all samples (playback) or generate zero samples (capture)
jack
   JACK Audio Connection Kit
pulse
   PulseAudio Sound Server
default
ac108
dmixer
ac101
usbstream:CARD=ALSA
   bcm2835 ALSA
   USB Stream Output

Code: Select all

pi@raspberrypi:~ $ arecord -Dac108 -f S32_LE -r 16000 -c 8 a.wav
ALSA lib pcm_hw.c:1822:(_snd_pcm_hw_open) Invalid value for card
arecord: main:828: audio open error: No such device

Code: Select all

pi@raspberrypi:~ $ uname -a
Linux raspberrypi 4.19.57-v7l+ #1244 SMP Thu Jul 4 18:48:07 BST 2019 armv7l GNU/Linux
pi@raspberrypi:~ $


Also during installation i got:

Code: Select all

...
depmod...
Job for systemd-modules-load.service failed because the control process exited with error code.
See "systemctl status systemd-modules-load.service" and "journalctl -xe" for details.
....

When i run this i get:

Code: Select all

pi@raspberrypi:~/seeed-voicecard $ sudo systemctl status systemd-modules-load.service
● systemd-modules-load.service - Load Kernel Modules
  Loaded: loaded (/lib/systemd/system/systemd-modules-load.service; static; vendor preset: enabled)
  Active: failed (Result: exit-code) since Tue 2019-07-16 16:34:36 BST; 51s ago
    Docs: man:systemd-modules-load.service(8)
          man:modules-load.d(5)
Main PID: 4744 (code=exited, status=1/FAILURE)

Jul 16 16:34:36 raspberrypi systemd[1]: Starting Load Kernel Modules...
Jul 16 16:34:36 raspberrypi systemd-modules-load[4744]: Failed to find module 'snd-soc-seeed-voicecard'
Jul 16 16:34:36 raspberrypi systemd-modules-load[4744]: Failed to find module 'snd-soc-ac108'
Jul 16 16:34:36 raspberrypi systemd-modules-load[4744]: Failed to find module 'snd-soc-wm8960'
Jul 16 16:34:36 raspberrypi systemd[1]: systemd-modules-load.service: Main process exited, code=exited, status=1/FAILURE
Jul 16 16:34:36 raspberrypi systemd[1]: systemd-modules-load.service: Failed with result 'exit-code'.
Jul 16 16:34:36 raspberrypi systemd[1]: Failed to start Load Kernel Modules.

iliasl
Pre-kindergarten
Pre-kindergarten
Posts: 2
Joined: Tue Jul 16, 2019 11:19 pm

Re: 6-Mic Circular Array and Pi 4

Post by iliasl » Wed Jul 17, 2019 12:25 am

Got it to work.

If anyone is interested you just have to make sure the new kernel is detected int he installation file.
You can do this by assigning the correct kernel variable.

# locate currently installed kernels (may be different to running kernel if
# it's just been updated)
base_ver=$(get_kernel_version)
base_ver=${base_ver%%[-+]*}
kernels="PUT YOUR KERNEL HERE"

Post Reply