Author Topic: No sound via HDMI  (Read 314 times)

Offline mellon

  • Full Member
  • ***
  • Posts: 215
No sound via HDMI
« on: January 11, 2013, 02:13:54 PM »
Hardware: laptop HP (DV7 Pavilion 1150E)

aplay -l gives
Code: [Select]
**** List of PLAYBACK Hardware Devices ****
card 0: Intel [HDA Intel], device 0: STAC92xx Analog [STAC92xx Analog]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: Intel [HDA Intel], device 1: STAC92xx Digital [STAC92xx Digital]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: Intel [HDA Intel], device 3: HDMI 0 [HDMI 0]
  Subdevices: 1/1
  Subdevice #0: subdevice #0

lspci shows for audio and video:
00:1b.0 Audio device: Intel Corporation 82801I (ICH9 Family) HD Audio Controller (rev 03)
VGA compatible controller: NVIDIA Corporation G98 [GeForce 9200M GS] (rev a1)

Linked the laptop to a smart TV via HDMI. Display is ok, but I get no sound.
Alsamixer shows all channels open en master volume at max.

Tried this with Pulseaudio and currently without Pulseaudio.  With Pulseaudio the pavucontrol showed HDMI Out actually yielding output but nothing could be heard on the TV. TV is linked to an external amplifier, but tried it also with TV internal sound. Made no difference.    

Has anyone a similar set of hardware and HDMI audio working?

Any ideas, recommendations, links to possible solutions would be welcome.

Mellon

Offline atolboo

  • Full Member
  • ***
  • Posts: 235
Re: No sound via HDMI
« Reply #1 on: January 12, 2013, 07:58:35 AM »
Any ideas.....
Maybe it has to to with the Hdmi version in Laptop<->TV?
There can be this kind of problems when connecting different Hdmi versions.
And are all wires in the Hdmi cable connected on both sides?

Online Just17

  • PCLinuxOS Tester
  • Super Villain
  • *******
  • Posts: 10694
  • MLUs Forever!
Re: No sound via HDMI
« Reply #2 on: January 12, 2013, 08:21:04 AM »
My first suggestion would be to create a temporary 'test' user and try the HDMI there.

If it works then the problem is with some user settings .... and should be easier to locate.

MLUs rule the roost!

Linux XPS 3.4.38-pclos1.bfs  64 bit
Intel Core2 Quad CPU Q9450 @ 2.66GHz
4 GB RAM
MCP51 High Def Audio
GeForce GTX 550 Ti
PHILIPS  ‎DVD+-RW DVD8701
‎Logitech ‎BT Mini-Receiver
Afatech DTT

Offline gilado

  • Hero Member
  • *****
  • Posts: 530
Re: No sound via HDMI
« Reply #3 on: January 12, 2013, 10:51:18 AM »
I have just setup a machine with only HDMI connected TV.  The machine still has multiple video and audio ports enabled so convincing it to use HDMI for all audio was a challenge.

While you could easily change the default sound output for the system in PCC or via Kmix, youtube, netflix (wine) vlc et all still sent their audio to the default onboard sound card.

Others have suggested installing pulseaudio however currently the install is broken; also, I found (google) numerous posts about people having no audio after installing pulseaudio.

At the end my solution was very simple: I changed alsa's default audio to HDMI.  While ther might be GUI to do that I could not found any so I directly edited /usr/share/alsa/alsa.conf. The orginal file had a section like htis:

Quote
pcm.default cards.pcm.default
pcm.sysdefault cards.pcm.default
pcm.front cards.pcm.front
...
pcm.hdmi cards.pcm.hdmi
...

I commented the first line and changed the default to hdmi, like this

Quote
pcm.default cards.pcm.hdmi
#pcm.default cards.pcm.default
pcm.sysdefault cards.pcm.default
pcm.front cards.pcm.front
...
pcm.hdmi cards.pcm.hdmi
...

Restarted the machine and now everything plays through hdmi





Offline mellon

  • Full Member
  • ***
  • Posts: 215
Re: No sound via HDMI
« Reply #4 on: January 12, 2013, 01:12:28 PM »
Thank you for your replies.

test user
Using a test user made no difference.

HDMI versions and cables.
TV is from 2012 and the laptop is on the market since 1-oct-2008. So the PC may have HDMI version 1.3 and the TV version 1.4
The TV HDMI IN specs are:
 Video: 1080 24p, 1080p, 1080i, 720p, 576p 480p. 1080 P and
 Audio: 2-chan lin. PCM 32/44,1/48 khz 16/20/24 bits

Cable used is a brand new: Pearl HDMI high speed with ethernet, audio return and 3D.

Alsa conf
May have a try and see if it makes a difference, but I'm not linking to a TV that often.

Bypass
I found an audio cable and linked the headphone output to an audio in on the TV.  A bit more volume on the amp and I get a good sound. So for the moment I have a working solution.

Mellon