HDMI is not displayed in the "Sound" settings on Ubuntu 14.04 LTS

I need some assistance, I have 2 laptops, a Toshiba and a DELL XPS M1330, the problem is using my DELL laptop, when I use the HDMI cable to use the TV as monitor the display works fine however the sound only work in the laptop speakers I can't use the TV speakers.

When I go to "Sound" settings to select the HDMI in the "Play sound through", I can't select the HDMI because it never show up. I can only see, "headphones and speakers".

So as a summary the, display works but the sound it doesn't in the TV. Any ideas?


I follow the below workaround whenever I connect laptop to a TV:

  1. Connect HDMI cable to TV and switch on the TV.
  2. Run the below command on a console (It worked without sudo)

    pulseaudio -k
    
  3. Open Sound settings, you should see "HDMI/Display Port" entry under Output tab.


To get HDMI audio working on Ubuntu, please download the deb file for your version of Ubuntu from this link:

https://code.launchpad.net/~ubuntu-audio-dev/+archive/ubuntu/alsa-daily/ and install it via cli or the software centre.

  1. For older packages go to page: https://code.launchpad.net/~ubuntu-audio-dev/+archive/ubuntu/alsa-daily/+packages

  2. Then force reload alsa using the following command : sudo alsa force-reload

  3. After that, select HDMI from the sound menu as shown below (for me this option appeared only after installing the above mentioned package)

    enter image description here

Please note HDMI audio function tested on Intel graphics only on a Lenovo Flex2 14 laptop