wanderlust
Posts: 2
Joined: Sat Mar 11, 2017 10:35 pm

Re: Analog audio problems? post comments here!

Sat Mar 11, 2017 10:59 pm

I'm just getting started with Raspberry Pi 3 connected via HDMI to a Sundowner 10-inch monitor. I cannot get sound of any kind out of the system. I've gone through raspi-config and tried several settings, force to HDMI, Auto and 3.5mm jack. I've tried jack plugged into the monitor port and directly into the Raspberry Pi motherboard. No sound of any sort. I've tried alsamixer interface and turned up the volume to 80% with no effect. I've tested with Pi Sonic, playing videos and playing MP3 files. I checked the audio device settings in the Preferences menu and installed the PCM control and made sure the volume was turned up. Is it possible that i simply have a bad sound card on the Raspberry Pi board?

riberyabaa
Posts: 1
Joined: Wed Sep 18, 2013 12:23 pm
Location: Ghana
Contact: Yahoo Messenger

Re: Analog audio problems? post comments here!

Wed Mar 22, 2017 4:13 pm

i was able to get my external DVD ROM working with my pi on kodi media player but the sound was something else, can someone help me to fix this sound problem.

User avatar
torekk
Posts: 13
Joined: Mon May 16, 2016 1:07 am
Contact: ICQ

Re: Analog audio problems? post comments here!

Wed May 24, 2017 6:55 am

Does anyone else had the problem that the audio suddenly stops working after a while?

Basically I'm mostly using OmxplayerGUI to watch YouTube videos and every now and then, I hear a *pop* and the audio stops working. A reboot fixes this and the only thing I found in the logs related to audio was this:

Code: Select all

May 24 08:30:57 raspberrypi pulseaudio[1116]: org.bluez.Manager.GetProperties() failed: org.freedesktop.DBus.Error.UnknownMethod: Method "GetProperties" with signature "" on interface "org.bluez.Manager" doesn't exist
However I'm not using any bluetooth speakers, just a regular 2.1 setup on the 3.5mm jack. I disabled bluetooth, maybe that's the problem?

I'm not sure if OmxplayerGUI is causing it, but I found that once the *pop* comes audio just doesn't seem to work, as if the driver crashed or something.

The only other things I did after installing Raspbian was compiling SDL2 and I'm using the "audio fixes" in the boot/config.txt:

Code: Select all

audio_pwm_mode=2
disable_audio_dither=1

Melon
Posts: 1
Joined: Wed May 24, 2017 10:56 am

Re: Analog audio problems? post comments here!

Wed May 24, 2017 11:12 am

Hey guys,
I'm having trouble with my USB soundcard, and sound in my rpi in general. My Raspberry Pi (2 model B) Jessie seems to recognise my interface but I can't seem to use it for anything. I'm trying to process real-time audio in puredata, although following theadvice of some forums I've tried testing recording and playback with no success. Here's some of feedback my pi has given me, if anyone can work outwhat I'm doing wrong?

arecord -l
**** List of CAPTURE Hardware Devices ****
card 1: io2 [io|2], device 0: USB Audio [USB Audio]
Subdevices: 1/1
Subdevice #0: subdevice #0
pi@raspberrypi:~ $ ls -l /proc/asound/card1
total 0
-r--r--r-- 1 root root 0 May 23 01:25 id
-r--r--r-- 1 root root 0 May 23 01:25 midi0
dr-xr-xr-x 3 root root 0 May 23 01:25 pcm0c
dr-xr-xr-x 3 root root 0 May 23 01:25 pcm0p
-r--r--r-- 1 root root 0 May 23 01:25 stream0
-r--r--r-- 1 root root 0 May 23 01:25 usbbus
-r--r--r-- 1 root root 0 May 23 01:25 usbid
-r--r--r-- 1 root root 0 May 23 01:25 usbmixer
pi@raspberrypi:~ $ speaker-test -Dplughw:1,3 -c1 -twav

speaker-test 1.0.28

Playback device is plughw:1,3
Stream parameters are 48000Hz, S16_LE, 1 channels
WAV file(s)
Playback open error: -2,No such file or directory
pi@raspberrypi:~ $ aplay -Dplughw:1,3 /home/pi/Music/test.mp3
aplay: main:722: audio open error: No such file or directory
pi@raspberrypi:~ $ amixer
Simple mixer control 'PCM',0
Capabilities: pvolume pvolume-joined pswitch pswitch-joined
Playback channels: Mono
Limits: Playback -10239 - 400
Mono: Playback -417 [92%] [-4.17dB] [on]
pi@raspberrypi:~ $



aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: ALSA [bcm2835 ALSA], device 0: bcm2835 ALSA [bcm2835 ALSA]
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 0: ALSA [bcm2835 ALSA], device 1: bcm2835 ALSA [bcm2835 IEC958/HDMI]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 1: io2 [io|2], device 0: USB Audio [USB Audio]
Subdevices: 1/1
Subdevice #0: subdevice #0


pi@raspberrypi:~ $ arecord -Dplughw:1,0 /home/pi/Music/test.mp3
Recording WAVE '/home/pi/Music/test.mp3' : Unsigned 8 bit, Rate 8000 Hz, Mono
^[[A^[[B^[[D^[[C^[[C^[[A^[[D^[[C^[[A^[[B^[[D^X^Z
[1]+ Stopped arecord -Dplughw:1,0 /home/pi/Music/test.mp3
pi@raspberrypi:~ $ arecord -Dplughw:1,0 duration=10 /home/pi/Music/test.wav
arecord: main:722: audio open error: Device or resource busy
pi@raspberrypi:~ $ arecord -Dplughw:1,0 /home/pi/Music/test.wav
arecord: main:722: audio open error: Device or resource busy
pi@raspberrypi:~ $ arecord -Dplughw:1,0 duration=10 /home/pi/Music/test.mp3
arecord: main:722: audio open error: Device or resource busy


On puredata (which for me is the most important bit) I get the following error messages when I turn DSP on:

ALSA input error (snd_pcm_open): No such file or directory
ALSA output error (snd_pcm_open): No such file or directory

I'm a beginner with pi and I just don't know how to go about troubleshooting this. Any ideas??

thesmart
Posts: 1
Joined: Tue Jun 13, 2017 7:41 pm

Re: Analog audio problems? post comments here!

Tue Jun 13, 2017 7:58 pm

I'm having difficulty getting reliable audio playback. If I playback a wav file, one in three playbacks will hang and never play. I've tried loading pulseaudio in verbose mode, it hangs:

Code: Select all

D: [alsa-sink-bcm2835 ALSA] sink.c: Processing rewind...
D: [alsa-sink-bcm2835 ALSA] sink.c: latency = 0
D: [alsa-sink-bcm2835 ALSA] source.c: Processing rewind...
I have to kill the process using kill -9:

Code: Select all

D: [pulseaudio] module-suspend-on-idle.c: Sink alsa_output.platform-soc_audio.analog-stereo becomes idle, timeout in 5 seconds.
D: [pulseaudio] core.c: Hmm, no streams around, trying to vacuum.
I: [pulseaudio] sink-input.c: Freeing input 8 "ALSA Playback"
I: [pulseaudio] client.c: Freed 12 "ALSA plug-in [sox]"
I: [pulseaudio] protocol-native.c: Connection died.
When I try text to speech playback, it also hangs one out of every two or three plays.

Code: Select all

D: [alsa-sink-bcm2835 ALSA] source.c: Processing rewind...
Sometimes, it will timeout eventually:

Code: Select all

D: [alsa-sink-bcm2835 ALSA] protocol-native.c: Implicit underrun of 'ALSA Playback'
D: [alsa-sink-bcm2835 ALSA] sink.c: Found underrun 22784 bytes ago (1792 bytes ahead in playback buffer)
D: [alsa-sink-bcm2835 ALSA] sink.c: Found underrun 22784 bytes ago (1792 bytes ahead in playback buffer)
D: [alsa-sink-bcm2835 ALSA] sink.c: Found underrun 22784 bytes ago (1792 bytes ahead in playback buffer)
D: [alsa-sink-bcm2835 ALSA] sink.c: Found underrun 22784 bytes ago (1792 bytes ahead in playback buffer)
D: [alsa-sink-bcm2835 ALSA] sink.c: Found underrun 22784 bytes ago (1792 bytes ahead in playback buffer)
D: [alsa-sink-bcm2835 ALSA] sink.c: Found underrun 22784 bytes ago (1792 bytes ahead in playback buffer)
D: [alsa-sink-bcm2835 ALSA] sink.c: Found underrun 22784 bytes ago (1792 bytes ahead in playback buffer)
D: [alsa-sink-bcm2835 ALSA] sink.c: Found underrun 22784 bytes ago (1792 bytes ahead in playback buffer)

Any ideas how to fix this issue?

tazz4843
Posts: 8
Joined: Thu May 11, 2017 10:04 pm

Re: Analog audio problems? post comments here!

Wed Jun 14, 2017 1:28 am

When I've tried to use espeak, either, if I use a long input, the quality plummets after three words, or the first word isn't spoken. All errors are consistent.

Code: Select all

pi@raspberrypi:~ $ espeak "Evacuate, fart detected, level 28"
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.front
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.rear
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.center_lfe
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.side
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.surround21
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.surround21
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.surround40
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.surround41
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.surround50
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.surround51
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.surround71
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.iec958
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.iec958
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.iec958
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.hdmi
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.hdmi
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.modem
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.modem
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.phoneline
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.phoneline
ALSA lib pulse.c:243:(pulse_connect) PulseAudio: Unable to connect: Connection refused

ALSA lib pulse.c:243:(pulse_connect) PulseAudio: Unable to connect: Connection refused

Cannot connect to server socket err = No such file or directory
Cannot connect to server request channel
jack server is not running or cannot be started
pi@raspberrypi:~ $ 

car123
Posts: 1
Joined: Thu Jul 13, 2017 10:03 am

Re: Analog audio problems? post comments here!

Thu Jul 13, 2017 10:19 am

To get audio working for the Pi 3 Model B you need to right-click onto the sound icon and change HDMI to analog.

User avatar
flatmax
Posts: 336
Joined: Thu May 26, 2016 10:36 pm

Re: Analog audio problems? post comments here!

Sat Jul 22, 2017 12:29 pm

tazz4843 wrote:When I've tried to use espeak, either, if I use a long input, the quality plummets after three words, or the first word isn't spoken. All errors are consistent.

Code: Select all

pi@raspberrypi:~ $ espeak "Evacuate, fart detected, level 28"
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.front
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.rear
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.center_lfe
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.side
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.surround21
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.surround21
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.surround40
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.surround41
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.surround50
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.surround51
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.surround71
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.iec958
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.iec958
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.iec958
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.hdmi
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.hdmi
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.modem
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.modem
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.phoneline
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.phoneline
ALSA lib pulse.c:243:(pulse_connect) PulseAudio: Unable to connect: Connection refused

ALSA lib pulse.c:243:(pulse_connect) PulseAudio: Unable to connect: Connection refused

Cannot connect to server socket err = No such file or directory
Cannot connect to server request channel
jack server is not running or cannot be started
pi@raspberrypi:~ $ 
What happens when you run a play command like aplay or espeak with the pasuspender command first ?
pasuspender -- aplay file.wav

Matt
The Ultra sound card - Live now on kickstarter : https://goo.gl/8HdqDi
Sound card for the Raspberry Pi with inbuilt microphone : http://www.audioinjector.net
Audio Inector Octo multitrack GPIO sound card : http://www.audioinjector.net

User avatar
Imperf3kt
Posts: 689
Joined: Tue Jun 20, 2017 12:16 am
Location: Australia

Re: STICKY: Analog audio problems? post comments here!

Sat Jul 29, 2017 7:25 am

I'm running the latest version of Raspbian on a Pi3B and I'm getting a lot of static at volumes under 50% when I use a PAM8403 amplifier.

I can't use bluetooth audio, as it turns off with an audible 'pop' or 'click' after about 30 seconds from boot and won't turn back on at all until I reboot, again lasting 30 seconds at most.


Any clues? This issue has persisted for me for the last three versions of Raspbian.
Stephen Hawking, rest in peace.
8 January 1942 – 14 March 2018

NRSAUDIO
Posts: 2
Joined: Thu Jul 27, 2017 9:12 am

Re: STICKY: Analog audio problems? post comments here!

Sat Jul 29, 2017 6:30 pm

Has an RPi model 3B that I have installed Darkice and Icecast2 server on and everything works, but has a disturbing sound in the background. Sounds like static, have run update as well as sudo apt-get dist upgrade but it's still hacking. The sound card is a UCA202 and has also tried another card but without any change. Suspect that you have to change PWM sample bits but I'm a beginner so I need some help how I get there.

Regards/Ronny

raptorcyrus
Posts: 4
Joined: Thu Aug 10, 2017 12:00 pm
Location: Hong Kong
Contact: Website Facebook Twitter

Re: STICKY: Analog audio problems? post comments here!

Sun Sep 03, 2017 6:17 am

Yes I tried using raspbian and ubuntu mate can not hear clearly and only noise sound.
However, Retropie and OSMC sill work normally and I think may be driver problem.
I am thinking using usb sound card instead HDMI and analog output can work fine

kier3n
Posts: 2
Joined: Thu Sep 28, 2017 6:04 am

Re: STICKY: Analog audio problems? post comments here!

Thu Sep 28, 2017 6:11 am

Hi, im having problems forcing the RPI's audio output to the headphone jack. When i run "amixer cset numid=3 1" i get

"amixer: Control default open error: No such file or directory"

and when i try to edit this in the config (advanced options -> audio) i get "there was an error running option A4 Audio. Even when i try to set it to auto or hdmi i still get the same response.

Thanks!

Echevresm
Posts: 6
Joined: Tue Apr 05, 2016 12:37 pm

Re: STICKY: Analog audio problems? post comments here!

Sat Oct 07, 2017 9:02 pm

Hello,
I don't manage to get analog sound with PI 3 / Stretch. amixer doesn't work like in Jessie where numid = 3 is dedicated to playback route. In Stretch, numid = 3 is for setting the master playback volume ! I didn't find any value for switching the playback route.
hdmi_drive=1 in config.txt doesn't fix the problem, raspi-config neither (because it still calls amixer with numid=3 and the volume is set to 1).
Regards,
Michel.

Nerelod
Posts: 12
Joined: Sat Sep 30, 2017 1:42 pm

Re: STICKY: Analog audio problems? post comments here!

Sun Oct 08, 2017 8:31 pm

Im using a speaker plugged into my pi with a 3.5 mm audio jack. All of the sounds are coming out 2 seconds late, which is an issue because I am making an instrument, and I need the sound to come out exactly at the right moment. When I use headphones the same thing happens. How do I get rid of the audio lag? Please help.


Drahga
Posts: 1
Joined: Tue Oct 31, 2017 2:49 pm

Re: STICKY: Analog audio problems? post comments here!

Tue Oct 31, 2017 3:06 pm

OK, I'm new to PI and I've been searching online and I expect I'm just missing something obvious. I have a USB sound card that will play the 2 front channels, but it is not playing any of the other channels when playing an AC3 file. OMXPlayer shows it is a 6 channel audio file. When I look at the card in Raspbian, it shows the card and the different speaker types it will play and it shows up to 7.1. Is this something people have come across before or am I missing something simple?

Thanks

Echevresm
Posts: 6
Joined: Tue Apr 05, 2016 12:37 pm

Re: STICKY: Analog audio problems? post comments here!

Fri Nov 10, 2017 8:40 pm

Finaly, I got the solution to get audio playing thru the headphones jack in Stretch : use this command line :

Code: Select all

amixer -c 0 cset numid=3 1
The difference with Jessie is to add the -c 0 option.
Kind regards,
Michel

Echevresm
Posts: 6
Joined: Tue Apr 05, 2016 12:37 pm

Re: STICKY: Analog audio problems? post comments here!

Sat Nov 18, 2017 7:36 am

It is just the compilation of timidity from source which is the origin of this problem. A new fresh installation of stretch works as expected (without the need of the -c 0 argument).

WijnandL
Posts: 2
Joined: Thu Dec 21, 2017 3:38 pm

Re: STICKY: Analog audio problems? post comments here!

Thu Dec 21, 2017 3:56 pm

I have the same issue as Torekk, the analog audio stops after a random time. Sometimes it will play for a few hours, sometimes for a few days. Only a reboot makes the sound come back. I have this issue both with a 2B and a 3B.
HDMI sound keeps playing, but I need analog output.
I use mpd + alsa, nothing special.

Does anyone have an idea what may be wrong?
Does anyone recognize this anyway?

ankit mishra
Posts: 2
Joined: Sun Dec 24, 2017 3:59 am

Re: STICKY: Analog audio problems? post comments here!

Sun Dec 24, 2017 5:12 am

my volume icon says no audio device found and tried menu>preferences>audio device settings it says no ALSA device found and enable the internal audio device. then i tried omxplayer -o both example.wav it plays audio in speakers. can u plz shelp me????

User avatar
ab1jx
Posts: 565
Joined: Thu Sep 26, 2013 1:54 pm
Location: Heath, MA USA
Contact: Website

Re: STICKY: Analog audio problems? post comments here!

Tue Jan 02, 2018 3:48 am

I may have found a case the Pi can't do anything about. I have a Sharp 48 inch LCD TV, and because the internal speakers are so awful I run an external amplifier and speakers plugged into the back of the TV. Nothing I've tried will give working HDMI sound from the Pi. I've tried stuff like omxplayer -o hdmi <file>, speaker-test, hdmi_drive=2.

I think it's due to the way the TV is wired internally, the audio doesn't get near the HDMI connector the way it's connected. I don't have much in the way of technical material on the TV like a schematic or block diagram. The audio would have to come off the HDMI connector and go to the TV's analog audio outputs. Anybody else experienced anything like this? I doubt all TVs are the same, maybe I should find a forum for mine.
Last edited by ab1jx on Wed Jan 03, 2018 6:55 pm, edited 1 time in total.

User avatar
Paul Webster
Posts: 724
Joined: Sat Jul 30, 2011 4:49 am
Location: London, UK

Re: STICKY: Analog audio problems? post comments here!

Tue Jan 02, 2018 9:03 am

ab1jx wrote:
Tue Jan 02, 2018 3:48 am
I may have found a case the Pi can't do anything about.
Probably best to start this as a new thread since it is not really about problems with the analogue sound output of RPi.

WijnandL
Posts: 2
Joined: Thu Dec 21, 2017 3:38 pm

Re: STICKY: Analog audio problems? post comments here!

Wed Jan 03, 2018 6:33 pm

I tried with setting "mmap = true" in /etc/openal/alsoft.conf.
The analog audio has already been playing for over 8 days now without interruption.
Will this do the trick?

snielsen
Posts: 12
Joined: Fri Jan 12, 2018 1:06 pm

Re: STICKY: Analog audio problems? post comments here!

Fri Jan 12, 2018 1:36 pm

I`ve made a script in Python, playing wav or mpd with Pygame. The pitch is too low. When I play the same files from Terminal they are in correct pitch. Do anyone know what is wrong?

bernyone
Posts: 48
Joined: Fri Sep 29, 2017 8:42 pm

Re: STICKY: Analog audio problems? post comments here!

Tue Jan 16, 2018 4:01 pm

Hope someone can help,
I've read hundreds of audio posts but nothing similar to my issue

I have seriously dreadful audio from my pi3 3.5 jack

Im not talking a little hiss here im talking full on amstrad cpc loading noise with a buzz like a super swarm of killer bees

Keyboard presses creat more buzzing

Audio is there underneath all this noise

Ive added the pwm_mode=2 but no difference

Ive tested the amplification with my phone and its clean and clear so has to be the pi

Pi3 mB
Official 7" touchscreen (im thinking this may have something to do with the problem )
Running fully updated raspian stretch
Powered by a DROK® DC-DC Power Step-down Module 24V/12V to 5V 5A Voltage Current Converter 9~36V Transformer
Powering both the screen and the pi via 2 usb cables as the screen wasn't supplying enough power to pi (lightening symbol)

Any help would be truly appreciated

Return to “Troubleshooting”

Who is online

Users browsing this forum: klricks, mtfurlan and 31 guests