No sound from Pisound

I’m getting nothing from Pisound. All software with metering shows audio being generated. Have run every test I can … all diagnostics say Pisound “should” be working. But I must be missing something or testing things out of order.

All help appreciated!

Hi, try running speaker-test -c2 -r48000 -Dhw:pisound and check whether there’s any output produced - it should play white noise, one stereo channel at a time. Also let us know if you get any error running this command.

Hi Giedrius,

Thanks for your fast reply.

The cmd you recommended returns no sound with the following in the terminal:

speaker-test 1.1.3

Playback device is h:Pisound
Stream parameters are 48000Hz, S16_LE, 2 channels
Using 16 octaves of pink noise
ALSA lib pcm.c:2495: (snd_pcm_open_noupdate) Unknown PCM h:Pisound
Playback open error: -2, No such file or directory

I ran the cmd again and received the exact same result.

Very grateful if you could guide me to the next step :slight_smile:

P.s. If I open the Desktop (smartx) and run your cmd in a terminal, still no sound but the message returned is

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

Looks like it was a typo the first time, it should be hw:pisound

The 2nd time, it looks like it is currently exclusively in use by another process. Are you running Patchbox OS ? If so, it might be the jack backend service. Close all audio software, and then run:

sudo systemctl stop jack

and try the speaker-test command again.

Yes, that was a typo (h instead of hw).

I am running Patchbox OS.

I ran

sudo systemctl stop jack

as you suggested and got audio. But it was coming from the TV that my Pi is attached to. So I guess coming from the HDMI cable?

What do you suggest as a next step?

p.s. … Also after

sudo systemctl stop jack

and then

startx

Audacity and PD will send sound out the HDMI cable to the TV.

I’ve gotten …this…far:

With

speaker-test -c2 -r48000

I can get audio from HDMI or from the analog 3.55 jack on the pi. But nothing from Pisound.

I’ve switched from PatchPox back to Pisound (and followed every instruction I can find). And whereas in PD, I was able to get MIDI in in Patchbox, I’m unable to get it with Pisound.

All help much appreciated …

Thanks,

Mark

Hi, so after stopping the Jack service, what output do you get now when running:

speaker-test -c2 -r48000 -Dhw:pisound

Also what is the power supply you are using? If it provides insufficient power, the audio on Pisound may not work, we recommend power supplies with amperages >=2.5, like this one: https://www.raspberrypi.org/products/raspberry-pi-universal-power-supply/

Am using the Raspberry Pi approved power supply (exact one you suggest)

pi@raspberrypi:~ $ sudo systemctl stop jack
Failed to stop jack.service: Unit jack.service not loaded.
pi@raspberrypi:~ $ speaker-test -c2 -r48000 -Dhw:pisound

speaker-test 1.1.8

Playback device is hw:pisound
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.775008
0 - Front Left
1 - Front Right
Time per period = 5.494832
0 - Front Left
1 - Front Right
Time per period = 5.477313
0 - Front Left
1 - Front Right
Time per period = 5.469211
0 - Front Left
^Z
[1]+ Stopped speaker-test -c2 -r48000 -Dhw:pisound
pi@raspberrypi:~ $

what next? (thanks in advance … )

Investigation continued by chat on website and e-mail.

This got solved eventually by returing Pisound for repairs - there was a crucial resistor that went missing on the board, replacing it put the Pisound back in working order. :wink:

And thanks very much Giedrius. Your fix MUCH APPRECIATED!!

2 Likes

Hi,

I am having a problem which seem very similar to this (no sound from Pisound).
@Giedrius: Could you perhaps upload a picture of what was the missing resistor in this case?
Or do you have any other suggestions to further debug?:slight_smile:

I am using:

  • Raspberry Pi 3
  • Patchbox OS
  • 5 V/2,4 A charger

Speaker test:

    patch@patchbox:~ $ speaker-test -c2 -r48000 -Dhw:pisound

    speaker-test 1.1.8

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

    patch@patchbox:~ $ sudo systemctl stop jack
    patch@patchbox:~ $ speaker-test -c2 -r48000 -Dhw:pisound

    speaker-test 1.1.8

    Playback device is hw:pisound
    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.757038

At this point no sound is coming from either outputs.

    patch@patchbox:~ $ speaker-test -c2 -r48000

    speaker-test 1.1.8

    Playback device is default
    Stream parameters are 48000Hz, S16_LE, 2 channels
    Using 16 octaves of pink noise
    Rate set to 48000Hz (requested 48000Hz)
    Buffer size range from 96 to 1048576
    Period size range from 32 to 349526
    Using max buffer size 1048576
    Periods = 4
    was set period_size = 262144
    was set buffer_size = 1048576
     0 - Front Left

At this point sound is coming from the PBPi output

Hi, did output of Pisound work before?

Thank you for the response!
No, unfortunately I have yet to make it work.

Then this is probably a different issue.

Could you try mounting Pisound directly on the Raspberry Pi, without the extenders, so we’re sure the contact is not the issue? Also make sure to have the potentiometers turned up clockwise, so they’re not silencing any audio.

Also, after running speaker-test, please check the output of dmesg - it should not have anything looking like audio errors at the very bottom of the output.

Occasionally, even though all the Pisounds are tested to work by us, some end up not working, most likely issue is an accidental electrostatic discharge at some critical point in the circuitry (without an enclosure, it’s impossible to fully protect from it). In that case the board would have to be replaced under warranty. If you still can’t get any sound from the unit, please contact us by e-mail. :slight_smile: