Ubuntu – No sound through HDMI cable, nvidia


Few days ago I've decided to install Ubuntu 13.04 (with dual boot Windows 8) on my old laptop (Toshiba Qosmio f55 q502) and make it my media center.

Everything went well except that I don't have sound through my HDMI cable. I have tried looking for solution in other posts but with no luck.
In the sound settings, I see 3 options: speakers, SPDIF, and HDMI. When I choose HDMI I'm not getting any sound in my TV.
I have updated the nvidia driver (before that there was no video through HDMI as well)

Please help me to solve this issue and to forget windows for good.
Thank you

**** List of PLAYBACK Hardware Devices ****
card 0: Intel [HDA Intel], device 0: ALC272 Analog [ALC272 Analog]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: Intel [HDA Intel], device 1: ALC272 Digital [ALC272 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

Best Answer

Can you open a terminal and give me the output from

aplay -l

I had this problem in the past. I know SMPlayer can select audio outputs, so it might be worth checking out that app to see if you can get anything at all from your HDMI audio.

On SMPlayer, start up a video, then on the menu select Tools -> Preferences. On the Audio tab go for the Output Driver and change it from Pulse to one of the alsa (0.x - HDA NVidia HDMI) options. See what works.

Installing pavucontrol will also give you much better control over your individual audio outputs. HDMI output may be muted by default.