LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 01-29-2014, 10:01 PM   #1
Xeratul
Senior Member
 
Registered: Jun 2006
Location: UNIX
Distribution: FreeBSD
Posts: 2,713

Rep: Reputation: 256Reputation: 256Reputation: 256
Debian - no sound with HDMI cable


Hello,

I've installed a dual boot : windows and debian on a new multimedia pc.

On Windows, I can get the sound from the tv passed by the HDMI cable. Windows works fine as usual.

However, I connected my laptop up (running squeeze) to my Samsung TV and though the picture comes up fine the sound only plays via the laptop.


My cat /proc/asound/cards tells us:
Code:
 0 [Intel          ]: HDA-Intel - HDA Intel
                      HDA Intel at 0xfcef8000 irq 42
 1 [NVidia         ]: HDA-Intel - HDA NVidia
                      HDA NVidia at 0xfebfc000 irq 17
 2 [U0x46d0x821    ]: USB-Audio - USB Device 0x46d:0x821
                      USB Device 0x46d:0x821 at usb-0000:00:1d.7-4, high speed
Code:
 uname  -a
Linux multimedia 3.2.0-4-686-pae #1 SMP Debian 3.2.51-1 i686 GNU/Linux


$ aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: Intel [HDA Intel], device 0: ALC662 rev1 Analog [ALC662 rev1 Analog]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: Intel [HDA Intel], device 1: ALC662 rev1 Digital [ALC662 rev1 Digital]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: NVidia [HDA NVidia], device 3: HDMI 0 [HDMI 0]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: NVidia [HDA NVidia], device 7: HDMI 0 [HDMI 0]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: NVidia [HDA NVidia], device 8: HDMI 0 [HDMI 0]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: NVidia [HDA NVidia], device 9: HDMI 0 [HDMI 0]
  Subdevices: 1/1
  Subdevice #0: subdevice #0


mplayer alitech.avi -ao alsa:device=hw=1,9

...


==========================================================================
[AO_ALSA] alsa-lib: pcm_hw.c:1293:(snd_pcm_hw_open) open '/dev/snd/pcmC1D0p' failed (-2): No such file or directory
[AO_ALSA] Playback open error: No such file or directory
Failed to initialize audio driver 'alsa:device=hw=1'
No such audio driver '9'
Could not open/initialize audio device -> no sound.
Audio: no sound
Starting playback...
Movie-Aspect is undefined - no prescaling applied.
VO: [vdpau] 640x272 => 640x272 Planar YV12 
V:1390.6 33342/33342  2%  3%  0.0% 0 0 

Exiting... (Quit)
Since using Windows (which I'd prefer not to!) both picture and sound works fine, so I assume it is some Debian related issue.

Any suggestions where I should look? Settings? Missing packages?

Thank you in advance

Last edited by Xeratul; 01-29-2014 at 10:11 PM.
 
Old 01-29-2014, 10:08 PM   #2
k3lt01
Senior Member
 
Registered: Feb 2011
Location: Australia
Distribution: Debian Wheezy, Jessie, Sid/Experimental, playing with LFS.
Posts: 2,900

Rep: Reputation: 637Reputation: 637Reputation: 637Reputation: 637Reputation: 637Reputation: 637
I had a similar issue a while back when Wheezy was first introduced and again when I started using MATE almost exclusively. I found that ALSA was my problem and by installing PulseAudio (with its associated requirements for different DEs) the problem went away because I could select HDMI and know it would work as it should.
 
Old 01-29-2014, 10:23 PM   #3
Xeratul
Senior Member
 
Registered: Jun 2006
Location: UNIX
Distribution: FreeBSD
Posts: 2,713

Original Poster
Rep: Reputation: 256Reputation: 256Reputation: 256
Quote:
Originally Posted by k3lt01 View Post
I had a similar issue a while back when Wheezy was first introduced and again when I started using MATE almost exclusively. I found that ALSA was my problem and by installing PulseAudio (with its associated requirements for different DEs) the problem went away because I could select HDMI and know it would work as it should.
PulseAudio was not the solution to your problem. You probably dont know how to use alsa


Got it ...

I had to make "1,9" changed to "1.9"
It works now, and I reconfigured alsa to start hdmi as card 0.
 
Old 01-29-2014, 10:31 PM   #4
k3lt01
Senior Member
 
Registered: Feb 2011
Location: Australia
Distribution: Debian Wheezy, Jessie, Sid/Experimental, playing with LFS.
Posts: 2,900

Rep: Reputation: 637Reputation: 637Reputation: 637Reputation: 637Reputation: 637Reputation: 637
Quote:
Originally Posted by Xeratul View Post
PulseAudio was not the solution to your problem. You probably dont know how to use alsa
Probably Alsa was just useless and Pulse did the job first time. I posted a thread somewhere, maybe not in LQ, and got no answers at all. I remembered Ubuntu moved to Pulse, and got totally bagged for it to, so I gave Pulse ago and it worked where Alsa, no matter what I did with settings, wouldn't.

Glad you got Alsa working though with some fiddling. Don't forget to mark the thread as solved.
 
Old 01-30-2014, 11:24 AM   #5
replica9000
Senior Member
 
Registered: Jul 2006
Distribution: Debian Unstable
Posts: 1,190
Blog Entries: 2

Rep: Reputation: 277Reputation: 277Reputation: 277
I had to create a file called '.asoundrc' under my home directory to get sound over HDMI.

Code:
pcm.!default {
      type hw
      card 1
      device 7
 }
EDIT: Using kernel 3.2.0 with an nVidia GTS450

Last edited by replica9000; 01-30-2014 at 11:26 AM.
 
Old 01-30-2014, 12:27 PM   #6
Shadowmeph
Member
 
Registered: May 2008
Location: West Coast Canada
Posts: 282

Rep: Reputation: 29
or my self with ATI card and HDMI I had problems I couldn't see the HDMI in the hardware sound when tryin opensuse I tried several thing and ended up breaking it so I installed mint and still couldn't find any HDMI settings at all in the hardware\sound so I intall the ATI fglrx drivers rebooted and looked and found the HDMI there then just used that.
Now I am not sure if this will work for you but you could try if all else fails.
 
Old 01-31-2014, 11:07 AM   #7
vl23
Member
 
Registered: Mar 2009
Posts: 125

Rep: Reputation: 8
Quote:
Originally Posted by Shadowmeph View Post
or my self with ATI card and HDMI I had problems I couldn't see the HDMI in the hardware sound when tryin opensuse I tried several thing and ended up breaking it so I installed mint and still couldn't find any HDMI settings at all in the hardware\sound so I intall the ATI fglrx drivers rebooted and looked and found the HDMI there then just used that.
Now I am not sure if this will work for you but you could try if all else fails.
I had a similar problem on Wheezy, with an ATI card, for whatever reason it showed my HDMI sound card as unclaimed, IIRC I read that they'd blocked that functionality because of some issues with the ATI open source drivers.
 
Old 02-04-2014, 07:48 PM   #8
Archy1
Member
 
Registered: Jan 2014
Distribution: Debian
Posts: 95

Rep: Reputation: 2
I had the exact same problem except the other way around (could only get sound with HDMI) (see thread) and here's how I fixed it:

I placed the following code in '~/.asoundrc'
Code:
defaults.ctl.card 1
defaults.pcm.card 1
defaults.timer.card 1

Last edited by Archy1; 02-04-2014 at 08:13 PM.
 
Old 02-05-2014, 10:56 AM   #9
Paul!
LQ Newbie
 
Registered: Feb 2014
Posts: 21

Rep: Reputation: Disabled
What is your processor? With a standard stable install I didn't have the module for HDMI audio on an Intel i series. Jessie worked perfectly. Of course an kernel update would have worked as well, but this was a new install so I just couldnt be bothered.
 
Old 10-11-2015, 11:44 PM   #10
ericg1234
LQ Newbie
 
Registered: Oct 2015
Posts: 1

Rep: Reputation: Disabled
Redirecting audio to HDMI in Debian

Installing pavucontrol did the trick for me. Try the following:

* install with "sudo apt-get install pavucontrol"
* start a video in browser and redirect video to TV
* invoke pavucontrol using "alt+F2 pavucontrol"
* click Playback tab
* set "Playback on" to Built-in Audio Digital Stereo (HDMI)

HTH,

Eric
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
[ProLiant MicroServer, ATI R6xx HDMI, Digital Out, HDMI] No HDMI sound at all vnatius Linux - Hardware 15 08-16-2012 02:09 PM
Debian on Raspberry Pi. Can't get sound by HDMI. tomham01 Debian 2 07-16-2012 08:19 PM
HDMI Audio doesn't work - Debian Squeeze (Intel HDMI) felipefv Linux - Hardware 8 02-06-2012 10:47 AM
HDMI sound problem with Debian olliegab Linux - Hardware 1 02-04-2012 10:23 AM
Audio through HDMI Cable? Jeff91 Linux - Hardware 7 06-26-2009 10:44 AM

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

All times are GMT -5. The time now is 07:21 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