pimoroni / speaker-phat

Software installer for Speaker pHAT
MIT License
52 stars 9 forks source link

no sound - only led working #26

Open luto65 opened 6 years ago

luto65 commented 6 years ago

Dear pimoroni, I connected the Speaker Phat to the raspberry pi and followed instructions. Unfortunately only the LED are working when I execute the test.sh but no sounds.

luto65 commented 6 years ago

fixed by disabling

sudo systemctl disable pulseaudio

zdenotim commented 6 years ago

I face this same issue at the moment. Can someone advice here?

Thank you

DougGore commented 5 years ago

Had the same problem as @luto65 with a recent Raspbian image and disabling pulseaudio fixed it as well. Before applying the change I noticed the DAC sound card was a secondary device and the mixer was not available. @Gadgetoid is the installation script out of sync with how audio is now configured in Raspbian?

Gadgetoid commented 4 years ago

This is possible- I haven't looked into these install scripts for a long time. I would expect rather more frequent reports of problems if something were significantly awry, but perhaps this very issue is helping people?

Will tag as notice and leave open for now.

23ewrdtf commented 4 years ago

I have he same problem on Raspbian Buster. Tried disabling pulseaudio but with no luck.

I already checked the wiring.

When I run below I get only LED working but no sound.

sudo aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: sndrpihifiberry [snd_rpi_hifiberry_dac], device 0: HifiBerry DAC HiFi pcm5102a-hifi-0 [HifiBerry DAC HiFi pcm5102a-hifi-0]
  Subdevices: 0/1
  Subdevice #0: subdevice #0
speaker-test -l1 -c2 -t wav

speaker-test 1.1.8

Playback device is default
Stream parameters are 48000Hz, S16_LE, 2 channels
WAV file(s)
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
 1 - Front Right
Time per period = 3.272060
 ./test.sh

testing audio

speaker-test 1.1.8

Playback device is default
Stream parameters are 48000Hz, S16_LE, 2 channels
WAV file(s)
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
 1 - Front Right
Time per period = 3.262185

testing basic wav playback

Playing WAVE './test.wav' : Signed 16 bit Little Endian, Rate 44100 Hz, Stereo

testing text-to-speech

testing VU meter
mpg321 test.mp3 -v
High Performance MPEG 1.0/2.0/2.5 Audio Player for Layer 1, 2, and 3.
Version 0.3.2-1 (2012/03/25). Written and copyrights by Joe Drew,
now maintained by Nanakos Chrysostomos and others.
Uses code from various people. See 'README' for more!
THIS SOFTWARE COMES WITH ABSOLUTELY NO WARRANTY! USE AT YOUR OWN RISK!

Playing MPEG stream from test.mp3 ...
MPEG 1.0, Layer: III, Freq: 44100, mode: Joint-Stereo, modext: 0, BPF : 2560
Channels: 2, copyright: No, original: Yes, CRC: No, emphasis: 0.
Bitrate: 128 Kbits/s, Extension value: 0
Audio: 1:1 conversion, rate: 44100, encoding: signed 16 bit, channels: 2
ALSA lib pcm.c:2565:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.front
^C
[0:04] Decoding of test.mp3 finished.
hmax42 commented 4 years ago

same problem using raspbian buster here a fix would be much appreciated instead of having to use an old raspbian image

sidthetaff commented 4 years ago

This issue is still present on buster, vumeter works fine and lights up and moves when running test script, however no audio is output.

sudo aplay -l List of PLAYBACK Hardware Devices card 0: sndrpihifiberry [snd_rpi_hifiberry_dac], device 0: HifiBerry DAC HiFi pcm5102a-hifi-0 [HifiBerry DAC HiFi pcm5102a-hifi-0] Subdevices: 0/1 Subdevice #0: subdevice #0

hmax42 commented 4 years ago

just tested: 2017-09-07-raspbian-stretch-lite.img does not work 2017-04-10-raspbian-jessie-lite.img does work

steelx commented 4 years ago

I tested. Just installed Latest May 2020 buster. And run the pimoroni curl script. works fine

NunyaBSwax commented 4 years ago

It is interesting the people who say it works, I also just installed latest May 2020 buster, and run the pimoroni curl script, and it doesnt work for me. I get the vumeter bouncing during speaker-test but no sound. I have moved speaker wires to test on both jacks on phat beat, switched the phat beat to two speakers and one speaker, and no sound.

I wish there was other tests to run, or suggestions of other config files to check. Very frustrating to have this nice kit which I just cant get making any sound.

steelx commented 4 years ago

@NunyaBSwax in my case I had bad soldering at first.

EddieRadarHughes commented 3 years ago

I have the same issue with no sound. Using a new Pi Zero W ordered with soldered headers. I'm not the best at soldering, but I used my multimeter to verify that I had no shorting of pins and continuity in each socket. I also placed my board header under my PCB microscope and could not see any overlapping or missed solder pins.

I have no issue with lights, but i have no sound.

Running full version of Raspberry Pi OS (not Lite), and am fully updated/upgraded. I tried disabling pulseaudio and that didn't help. Rebooted just to be sure. Then I re-enabled pulseaudio and it still didn't work. Tried the test.wav using VLC and other files (including test.sh). Went through VLC's device menu. I noted that when I disabled pulseaudio (and rebooted), it allowed me to select from a variety of audio devices, including pivumeter. None worked. When I re-enabled pulsedaudio (and rebooted), I can only select built-in Audio.

Given the enormous number of complaints about no sound all over the Internet, I see why the board is now discontinued. Their newer boards come completely assembled. If anyone has anything else I can check, I would be interested to know.

r0d0dendr0n commented 1 month ago

My problem was solved by commenting out "dtparam=audio=on" and adding "dtoverlay=hifiberry-dac" to /boot/firmware/config.txt. The installation script is still using the old path: /boot/config.txt. After that - works like a charm.