LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 01-24-2015, 08:44 PM   #1
esme_squalor
LQ Newbie
 
Registered: Feb 2006
Location: UK
Distribution: Slackware 14.1
Posts: 11

Rep: Reputation: 0
Intel HDMI audio mysteriously broken in XFCE apps with ALSA on Slackware 14.1


Hi,

Sorry in advance for the length of this but:

I'm suddenly having a problem with (I assume) certain multimedia apps in XFCE recognising my default HDMI sound device.

When I say suddenly, I mean it - Amarok had been giving me some trouble with not shutting down cleanly, leaving processes which I assumed to be zombies but nevertheless seemed to hang the sound card up, and yesterday it stopped playing music at all, so I got rid of it (not a huge fan anyway). Following that, Juk stopped playing, halfway through a song, earlier today, and then began behaving exactly as Amarok had been - freezing up, causing me to have to force quit and leaving behind unkillable processes with my sound card unusable until a reboot. Xmms simply wouldn't produce any sound. In each of these programs I made sure I had the correct sound device selected in the settings AND tested all the other options just to be sure. I installed Audacious, which I remembered liking a lot in the past and the exact same thing happened, it functioned briefly and then became unusable, the only difference being that with Audacious I occasionally hear a split second of music playing (suggesting that I definitely do have the correct sound device selected) before it stops.

On a fresh reboot, aplay works fine from the command line, as does Mplayer, both with and without the -ao option (so obviously that correctly recognises and respects my default audio device), as does sound in Chrome, sound in Steam, sound in Dragon Player. However, as soon as I try to use one of the problematic programs then the previously-working ones will also stop functioning until I reboot. Mplayer then gives me repeated "audio got stuck" errors, aplay looks like it's playing but produces no sound, videos on Dragon player mostly won't even open after that, otherwise they briefly play without sound and then freeze. "alsactl restore" won't work, fuser -v /dev/snd/* shows nothing else is using the sound card but it's still unavailable to anything else. I haven't tried unloading and reloading the audio modules yet, or just restarting X without rebooting but I could, if that would be informative.

My sound devices are

Code:
**** List of PLAYBACK Hardware Devices ****

card 0: Intel [HDA Intel], device 0: ALC887-VD Analog [ALC887-VD Analog]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: Intel [HDA Intel], device 1: ALC887-VD Digital [ALC887-VD Digital]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: Generic [HDA Intel MID], device 3: HDMI 0 [HDMI 0]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
and I have the HDMI device 1,3 set as default in my alsa.conf as well as in /etc/asound.conf and ~/.asoundrc, which are both like this:

Code:
                              

   pcm.!default {
        type hw
        card 1
        device 3
   }
   ctl.!default {
        type hw
        card 1
        device 3
   }
I can actually get the ALC887-VD Digital device on 0,1 to work with Audacious but the sound is horribly distorted using that, and has been since I installed 14.1 a couple of weeks ago, which is why I've been using the HDMI device. It took a little setting up but for the last two weeks, the HDMI sound has been working fine.

In alsamixer / xfce4-mixer / kmix etc. I have absolutely no controls for my Intel MID device, i.e., amixer just shows:

Code:
Simple mixer control 'IEC958',0
  Capabilities: pswitch pswitch-joined
  Playback channels: Mono
  Mono: Playback [on]

the only option I have is basically to turn it on or off by checking or unchecking the IEC958 box in kmix, for example, which is annoying but has been that way since a fresh install and until yesterday hadn't caused any problems that I couldn't solve by pressing the volume buttons on my speakers!

I've been investigating this problem all day and found a lot of people with similar issues but as far as I could tell they turned out to be pulseaudio problems whereas I'm only using alsa.

Thanks for any help with this, I've used Slackware for years specifically because it's *not* mysterious and so it's extremely frustrating that this problem just popped up without me changing or updating anything.
 
Old 01-25-2015, 01:36 AM   #2
dugan
LQ Guru
 
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 11,222

Rep: Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320
I know this doesn't solve your problem, but please change your asoundrc from:

Code:
pcm.!default {
        type hw
        card 1
        device 3
   }
   ctl.!default {
        type hw
        card 1
        device 3
   }
To:

Code:
defaults.pcm.card 1
defaults.pcm.device 3
defaults.ctl.card 1
The asoundrc that in your post has no software mixing, and can play only one sound at a time. The one I recommend changing it to has software mixing.
 
Old 01-25-2015, 03:43 AM   #3
esme_squalor
LQ Newbie
 
Registered: Feb 2006
Location: UK
Distribution: Slackware 14.1
Posts: 11

Original Poster
Rep: Reputation: 0
Thanks a lot, I will do when I get home. Should that solve the second part of my problem, i.e. having no mixer controls on the HDMI device, by itself, or do I then need to use ALSA softvol & dmix to get those?
 
Old 01-25-2015, 03:51 AM   #4
esme_squalor
LQ Newbie
 
Registered: Feb 2006
Location: UK
Distribution: Slackware 14.1
Posts: 11

Original Poster
Rep: Reputation: 0
P.s. I already have those settings in my /usr/share/alsa/alsa.conf but not in my asoundrc
 
Old 01-25-2015, 11:00 AM   #5
esme_squalor
LQ Newbie
 
Registered: Feb 2006
Location: UK
Distribution: Slackware 14.1
Posts: 11

Original Poster
Rep: Reputation: 0
So I changed my asoundrc and I now have volume control on my HDMI which is a great improvement, but unfortunately no change to the original problem. Thanks for your help so far.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Alsa doesn't detect HDMI audio on Haswell adolfoe Linux - Hardware 2 09-03-2014 11:05 AM
[SOLVED] No Audio on HDMI on intel CE4100 garryhk Linux - Hardware 11 01-24-2013 09:09 AM
HDMI Audio doesn't work - Debian Squeeze (Intel HDMI) felipefv Linux - Hardware 8 02-06-2012 09:47 AM
alsa problems multiple cards intel-nvidia hdmi eskuai Linux - General 0 01-29-2011 12:05 PM
no sound with alsa driver: Slackware 10.2, K2.6.16.5, intel AC97 audio drkstr Linux - Software 2 04-15-2006 03:57 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 02:31 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration