You are not logged in.

#1 2014-12-05 06:17:11

ruvu
Member
Registered: 2014-12-05
Posts: 4

No Audio Output With ALSA and PulseAudio

Hi, I'll try to give all the information you might need to help, though I am not really sure what is needed. Please ask if I might be able to provide more.

Originally, I had ALSA installed without Pulse. I use KDE (though I am not opposed to doing something different here). Sound worked fine except for when I wanted to change the output device. I had the device preference set in Phonon/KDE's audio settings and had the settings applied to all devices. When I wanted to play sound to my TV with HDMI, it was hit or miss getting the audio to switch from my laptop's speakers to HDMI. My end goal is for audio to automatically switch to HDMI when it is plugged in, without having to restart the application playing the audio.

I installed Pulse and was able to manually switch output devices using pavucontrol without restarting chromium. After a bit, both playback and capture stopped working and I haven't been able to get them working again. I have been Googling for similar problems, deleting config files so that they can be automatically generated, uninstalling Pulse/ALSA, and trying whatever else I could find to do.

I also tried logging on as a different user and testing with Cinnamon instead of KDE.

alsa-info-output: http://pastebin.com/VC9VUVi4
pulse verbose output: http://pastebin.com/HaHLMvPh

Playback devices:

aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: PCH [HDA Intel PCH], device 0: ALC259 Analog [ALC259 Analog]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 3: HDMI 0 [HDMI 0]
  Subdevices: 1/1
  Subdevice #0: subdevice #0

I can produce sound using aplay to my laptop but not to HDMI. Speaker-test does not work:

aplay -D plughw:0,0 /usr/share/sounds/alsa/Front_Center.wav     #works
aplay -D plughw:0,3 /usr/share/sounds/alsa/Front_Center.wav     #doesn't work
speaker-test -c 2      #doesn't work

Last edited by ruvu (2014-12-06 02:33:10)

Offline

#2 2014-12-05 17:38:32

ruvu
Member
Registered: 2014-12-05
Posts: 4

Re: No Audio Output With ALSA and PulseAudio

Update, I came across another thread:
https://bbs.archlinux.org/viewtopic.php?id=118026

By adding:

load-module module-alsa-sink device="hw:0,0" sink_name=analog_output
load-module module-alsa-sink device="hw:0,3" sink_name=digital_output
load-module module-combine sink_name=analog_digital slaves=digital_output,analog_output

to my /etc/pulse/default.pa, I am able to play sound to my onboard speakers, but not to hdmi. There are three output devices in pavucontrol, two "Built-in Audio"s and "Simultaneous output to Built-in Audio, Built-in Audio". One Built-In plays to my speakers and the other should play to hdmi, but no sound is actually played.

Offline

#3 2014-12-06 00:41:05

Xezlec
Member
Registered: 2014-11-30
Posts: 41

Re: No Audio Output With ALSA and PulseAudio

Are you familiar with .asoundrc?  It's the file in your home directory that controls ALSA.  For one thing, it determines which ALSA device gets sound by default when an application does not tell ALSA which sound device it wants.  I'm not sure if that's useful to you.

Be warned though: sound in Linux is a mess.  Especially when you start getting sound servers (PulseAudio) and desktop environments (KDE) involved.

Offline

#4 2014-12-06 02:01:34

ruvu
Member
Registered: 2014-12-05
Posts: 4

Re: No Audio Output With ALSA and PulseAudio

Thanks, I am aware of .asoundrc but have not looked too far into it yet. First, I would like to get sound to HDMI working so that I can then configure when each device plays.

Edit: I should mention that I have not been able to get aplay to play to HDMI. The command executes without errors, but does not produce sound.

aplay -D plughw:0,3 /usr/share/sounds/alsa/Front_Center.wav

Last edited by ruvu (2014-12-06 02:31:58)

Offline

#5 2014-12-06 03:40:13

Xezlec
Member
Registered: 2014-11-30
Posts: 41

Re: No Audio Output With ALSA and PulseAudio

This might be a stupid question, but have you made sure the volume of both devices in ALSA is high and they are both unmuted?  In alsamixer, the F6 key switches between sound devices and the M key mutes/unmutes.  Aside from that, I'm out of ideas.

Offline

#6 2014-12-08 03:52:32

ruvu
Member
Registered: 2014-12-05
Posts: 4

Re: No Audio Output With ALSA and PulseAudio

Yes, I have been keeping an eye on alsamixer to make sure nothing is muted or turned down too low. I have had the correct channels at the correct settings as far as I know. If you check the "alsa-info-output" pastebin, all my mixer info is under the "amixer" heading and you could double check me.

Offline

#7 2014-12-09 02:50:23

Xezlec
Member
Registered: 2014-11-30
Posts: 41

Re: No Audio Output With ALSA and PulseAudio

Ah OK, I neglected to look at that.  No clue then.

Offline

Board footer

Powered by FluxBB