ADafruit bonnet on Raspbeery pi4+ does not work

Moderators: adafruit_support_bill, adafruit

Forum rules
Talk about Adafruit Raspberry Pi® accessories! Please do not ask for Linux support, this is for Adafruit products only! For Raspberry Pi help please visit: http://www.raspberrypi.org/phpBB3/
Locked
User avatar
daghanacay
 
Posts: 2
Joined: Wed Sep 21, 2022 2:01 am

ADafruit bonnet on Raspbeery pi4+ does not work

Post by daghanacay »

Hi all,

I have bought adafruit voice bonnet and follow the instructions here to install it https://learn.adafruit.com/adafruit-voi ... udio-setup
1- if I install it on a clean "buster" installation work however
2- I have an image with planty of other things installed and If I try the same installation on my custom image, it does not work.

Here are some of the output

Code: Select all

pi@tecare:~ $ uname -a
Linux tecare 5.10.103-v7l+ #1529 SMP Tue Mar 8 12:24:00 GMT 2022 armv7l GNU/Linux
pi@tecare:~ $ cat /etc/os-release
PRETTY_NAME="Raspbian GNU/Linux 10 (buster)"
NAME="Raspbian GNU/Linux"
VERSION_ID="10"
VERSION="10 (buster)"
VERSION_CODENAME=buster
ID=raspbian
ID_LIKE=debian
HOME_URL="http://www.raspbian.org/"
SUPPORT_URL="http://www.raspbian.org/RaspbianForums"
BUG_REPORT_URL="http://www.raspbian.org/RaspbianBugs"
also cards seems to be installed

Code: Select all

pi@local:~ $ arecord -l
**** List of CAPTURE Hardware Devices ****
card 1: seeed2micvoicec [seeed-2mic-voicecard], device 0: bcm2835-i2s-wm8960-hifi wm8960-hifi-0 [bcm2835-i2s-wm8960-hifi wm8960-hifi-0]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
pi@local:~ $ aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: Headphones [bcm2835 Headphones], device 0: bcm2835 Headphones [bcm2835 Headphones]
  Subdevices: 8/8
  Subdevice #0: subdevice #0
  Subdevice #1: subdevice #1
  Subdevice #2: subdevice #2
  Subdevice #3: subdevice #3
  Subdevice #4: subdevice #4
  Subdevice #5: subdevice #5
  Subdevice #6: subdevice #6
  Subdevice #7: subdevice #7
card 1: seeed2micvoicec [seeed-2mic-voicecard], device 0: bcm2835-i2s-wm8960-hifi wm8960-hifi-0 [bcm2835-i2s-wm8960-hifi wm8960-hifi-0]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
when I do the test (using headphone) it looks like it is working BUT I do not get any sound

Code: Select all

pi@local:~ $ speaker-test -c 2 -F S16_LE -r 48000 -D hw:1,0

speaker-test 1.1.8

Playback device is hw:1,0
Stream parameters are 48000Hz, S16_LE, 2 channels
Using 16 octaves of pink noise
Rate set to 48000Hz (requested 48000Hz)
Buffer size range from 128 to 131072
Period size range from 64 to 65536
Using max buffer size 131072
Periods = 4
was set period_size = 32768
was set buffer_size = 131072
 0 - Front Left
 1 - Front Right
Time per period = 2.747075
 0 - Front Left
 1 - Front Right
recoring also seems to be working but there is no voice in the saved file or it is not piped to output

Code: Select all

pi@local:~ $ sudo arecord -f cd -Dhw:1 | aplay -Dhw:1
Recording WAVE 'stdin' : Signed 16 bit Little Endian, Rate 44100 Hz, Stereo
Playing WAVE 'stdin' : Signed 16 bit Little Endian, Rate 44100 Hz, Stereo
I have checked the "alsamixer" and increased the voice for seed
Screenshot from 2022-09-21 16-21-00.png
Screenshot from 2022-09-21 16-21-00.png (35.18 KiB) Viewed 88 times
here is my /home/pi/.asoundrc file content

Code: Select all

pi@local:~ $ cat .asoundrc 
pcm.!default {
  type asym
  capture.pcm "mic"
  playback.pcm "speaker"
}
pcm.mic {
  type plug
  slave {
    pcm "hw:1,0"
  }
}
pcm.speaker {
  type plug
  slave {
    pcm "hw:1,0"
  }
}
I have spent a lot time on this and I ran out of ideas. I really appreciated if you can help me with this.

User avatar
adafruit_support_carter
 
Posts: 29153
Joined: Tue Nov 29, 2016 2:45 pm

Re: ADafruit bonnet on Raspbeery pi4+ does not work

Post by adafruit_support_carter »

Unfortunately, sound config on linux can be really tricky. Lots of layers. This is working with a clean buster install, so the hardware is OK. So seems like it's just some software related thing on your other OS image. Nothing really obvious. Looks like you are checking and setting the main things correctly.

Anything useful in dmesg output?

User avatar
daghanacay
 
Posts: 2
Joined: Wed Sep 21, 2022 2:01 am

Re: ADafruit bonnet on Raspbeery pi4+ does not work

Post by daghanacay »

sorry for getting back late. I decided to reinstall everything from the start with tha latest OS, bullseye 64bit

Locked
Forum rules
Talk about Adafruit Raspberry Pi® accessories! Please do not ask for Linux support, this is for Adafruit products only! For Raspberry Pi help please visit: http://www.raspberrypi.org/phpBB3/

Return to “Adafruit Raspberry Pi® accessories”