LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 09-04-2015, 03:22 PM   #1
bifferos
Member
 
Registered: Jul 2009
Posts: 401

Rep: Reputation: 149Reputation: 149
Can't get sound out of HDMI


I seem to have two devices, but not two cards:

root:~# aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: PCH [HDA Intel PCH], device 0: ALC270 Analog [ALC270 Analog]
Subdevices: 0/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 was able to get some sound out of hdmi by selecting the 'hdmi' device for a test sound, but can't figure out how to set that as the device that alsamixer (and anything else) uses by default. I've seen some examples where there are two cards (0 and 1) but none like the above.

Any ideas?

thanks,
Biff.
 
Old 09-04-2015, 04:07 PM   #2
dugan
LQ Guru
 
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 11,237

Rep: Reputation: 5322Reputation: 5322Reputation: 5322Reputation: 5322Reputation: 5322Reputation: 5322Reputation: 5322Reputation: 5322Reputation: 5322Reputation: 5322Reputation: 5322
Try the following ~/.asoundrc:

Code:
defaults.pcm.device 1
 
Old 09-04-2015, 04:34 PM   #3
qweasd
Member
 
Registered: May 2010
Posts: 621

Rep: Reputation: Disabled
What works for me is
Code:
mplayer -ao alsa:device=hdmi media-file.ogg
Of course, this is not a solution if you are trying to send all system sound there, but it's perfect for occasional movie-watching
 
Old 09-04-2015, 04:42 PM   #4
Nille_kungen
Member
 
Registered: Jul 2005
Distribution: Slackware64-current
Posts: 587

Rep: Reputation: 201Reputation: 201Reputation: 201
As qweasd said you need to chose the hdmi as audio output in the application.
I change to hdmi in the settings in smplayer or vlc for it to work.
You should see your card in alsamixer by pressing F6 and chose your card.
But i got card 0 and 1 so it might differ.

Last edited by Nille_kungen; 09-04-2015 at 04:44 PM.
 
Old 09-04-2015, 04:49 PM   #5
bifferos
Member
 
Registered: Jul 2009
Posts: 401

Original Poster
Rep: Reputation: 149Reputation: 149
Quote:
Originally Posted by Nille_kungen View Post
As qweasd said you need to chose the hdmi as audio output in the application.
I change to hdmi in the settings in smplayer or vlc for it to work.
You should see your card in alsamixer by pressing F6 and chose your card.
But i got card 0 and 1 so it might differ.
Indeed, that works on another machine, with on-board audio and HDMI on the graphics card, but I think in the case above I have one chip, with two outputs (laptop with Intel chipset).
 
Old 09-04-2015, 09:11 PM   #6
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,342
Blog Entries: 28

Rep: Reputation: 6145Reputation: 6145Reputation: 6145Reputation: 6145Reputation: 6145Reputation: 6145Reputation: 6145Reputation: 6145Reputation: 6145Reputation: 6145Reputation: 6145
What kernel do you have?

I had similar problem with my machine and it went away after a kernel update to --Current (this is a machine that serves mainly as a file server, so I decided to wait it out).

I had tried all the tricks here, but it was the kernel update that did it. It's currently at v. 4.1.6.
 
Old 09-04-2015, 10:48 PM   #7
bassmadrigal
LQ Guru
 
Registered: Nov 2003
Location: West Jordan, UT, USA
Distribution: Slackware
Posts: 8,792

Rep: Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656
Quote:
Originally Posted by dugan View Post
Try the following ~/.asoundrc:

Code:
defaults.pcm.device 1
I think this should be

Code:
defaults.pcm.device 3
 
2 members found this post helpful.
Old 09-05-2015, 04:37 AM   #8
bifferos
Member
 
Registered: Jul 2009
Posts: 401

Original Poster
Rep: Reputation: 149Reputation: 149
Quote:
Originally Posted by bassmadrigal View Post
I think this should be

Code:
defaults.pcm.device 3
That fixed it! The only caveat is that after that alsamixer doesn't seem to be able to control the volume any more, however I can control it on the TV or in Firefox, so good enough for me!
 
Old 09-05-2015, 07:00 AM   #9
oldtechaa
Member
 
Registered: May 2015
Location: US
Distribution: Fedora
Posts: 364

Rep: Reputation: 83
Does it only show IEC958 as a control (uncontrollable) in alsamixer on HDMI? Because that's all it should show as far as I know. You just use master volume to control the volume.
 
Old 09-06-2015, 03:27 AM   #10
genss
Member
 
Registered: Nov 2013
Posts: 744

Rep: Reputation: Disabled
Quote:
Originally Posted by bifferos View Post
That fixed it! The only caveat is that after that alsamixer doesn't seem to be able to control the volume any more, however I can control it on the TV or in Firefox, so good enough for me!
try adding
defaults.ctl.device 3

may or may not do it
 
  


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
HDMI no sound varo Arch 3 11-08-2014 04:58 AM
[SOLVED] how do i get sound out of HDMI chicken dance Debian 1 03-04-2013 04:38 PM
[ProLiant MicroServer, ATI R6xx HDMI, Digital Out, HDMI] No HDMI sound at all vnatius Linux - Hardware 15 08-16-2012 01:09 PM
No Sound with HDMI gjblackford Linux - Hardware 2 07-19-2011 01:04 PM
No HDMI sound tovarish Linux - Hardware 4 06-21-2010 06:09 AM

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

All times are GMT -5. The time now is 11:56 PM.

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