No audio in/out from Pisound

Hello!

I have set up about 4 different Pisound hats on different rpi versions and never had this problem, Pisound recognized but no audio in or out:

$ 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: pisound [pisound], device 0: PS-0ZMGHS2 snd-soc-dummy-dai-0 [PS-0ZMGHS2 snd-soc-dummy-dai-0]
  Subdevices: 0/1
  Subdevice #0: subdevice #0
card 2: vc4hdmi [vc4-hdmi], device 0: MAI PCM i2s-hifi-0 [MAI PCM i2s-hifi-0]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
$ arecord -l
**** List of CAPTURE Hardware Devices ****
card 1: pisound [pisound], device 0: PS-0ZMGHS2 snd-soc-dummy-dai-0 [PS-0ZMGHS2 snd-soc-dummy-dai-0]
  Subdevices: 0/1
  Subdevice #0: subdevice #0

It seems odd that I don’t see ALSA anywhere in there. Additionally there is this:

$ sudo systemctl status jack
Unit jack.service could not be found.

I don’t see anything suspicious in dmesg output but I am honestly not too sure what I’m looking for.

Any help would be awesome, thanks!!

dmesg.txt (27.1 KB)

How are you testing the audio?

Try:

speaker-test -D hw:1,0 -r 48000 -c 2

Thanks for your help @Giedrius. This seems to produce the desired result.

speaker-test 1.2.4

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 8 to 131072
Period size range from 4 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.741728
 0 - Front Left
 1 - Front Right
Time per period = 5.461321
 0 - Front Left
 1 - Front Right
Time per period = 5.461289
 0 - Front Left
 1 - Front Right
Time per period = 5.461359
 0 - Front Left
 1 - Front Right
Time per period = 5.461266
 0 - Front Left
 1 - Front Right
Time per period = 5.461310
 0 - Front Left
 1 - Front Right
Time per period = 5.461266
 0 - Front Left
 1 - Front Right

When I use Pure Data via the button, I’m launching a known patch that works on other Pisound instances. I don’t get any audio in or out of the patch but I see that midi connectivity is working over USB and the lights on my midi controller are corresponding to my Pure Data code.

I’m sorry when I reduce my patch all the way to osc~400 piped to the dac~ then I hear audio fine. I was missing an external that errors weren’t catching in my patch. My apologies and thanks for the help!

2 Likes

I’m having a similar issue–no sound out from the pisound–but the above solution didn’t work for me.

I’ve tried the speaker-test command and get a Device or Resource Busy error.

Including below the output of aplay -l

patch@patchbox:~ $ aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: vc4hdmi0 [vc4-hdmi-0], device 0: MAI PCM i2s-hifi-0 [MAI PCM i2s-hifi-0]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: vc4hdmi1 [vc4-hdmi-1], device 0: MAI PCM i2s-hifi-0 [MAI PCM i2s-hifi-0]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 2: 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 3: pisound [pisound], device 0: PS-1MJPEPE snd-soc-dummy-dai-0 [PS-1MJPEPE snd-soc-dummy-dai-0]
  Subdevices: 0/1
  Subdevice #0: subdevice #0
patch@patchbox:~ $ speaker-test -D hw:3,0 -r 48000 -c 2

speaker-test 1.2.8

Playback device is hw:3,0
Stream parameters are 48000Hz, S16_LE, 2 channels
Using 16 octaves of pink noise
Playback open error: -16,Device or resource busy

Sending speaker-test -D hw:2,0 (headphone out) works fine.

Also attempting to send Test Audio out from PD and it looks like everything is running correctly (see screenshot) but nothing is coming out of pisound.

Other context:

  • brand new install of the beta (4/24) on an RPi4
  • pisound LED is lit when sending audio In
  • no modules installed
  • no peripherals running
  • I’ve also had similar luck with the last release (5/22).

I’ve been round and round with ChatGPT a few times and neither of us can seem to find a solution. Could this possibly be a hardware issue? I’ve gotten sound out of it as recently as a few months ago but it’s sat unused since then.

Any help appreciated!