No sound through HDMI?
  • Hi all. I don't seem to get any sound through my hdmi cable to a tv?

    I have tried editing the config.txt file and set hdmi = 1 and 2 and neither work. Does anybody have an idea how to fix it.
  • add hdmi_drive=2 in config.txt
  • There is also an option in raspi-config which will update the appropriate config files to force sound through HDMI or minijack...
  • yeah, like LogicallyRogue said.
    -Raspi-config
    -advanced
    -audio
    -force hdmi
  • As always, thank you guys for the help. It is much appreciated
  • mholgatem

    I have tried the steps above and still no sound through hdmi on my tv. Any other suggestions?
  • I found that I had to do both of the things suggested above.
    1. hdmi_drive=2 in config.txt
    2. -Raspi-config
    -advanced
    -audio
    -force hdmi

    If I just did one or the other, it wouldn't work. I did have one situation where I couldn't get it to work have doing a lot of messing around with things and had to reflash by card. The link below is a further discussion of my many audio issues.

    http://pimame.org/forum/discussion/1411/audio-issue-and-my-solution#Item_6
  • Atv223

    Thanks the help, gonna try it and if it doesnt work, format and start again me thinks.
  • I was having the same problem, this work for me

    sudo amixer cset numid=3 2

    then edited the /boot/config.txt.

    sudo nano /boot/config.txt

    And then add the following:

    hdmi_drive=2
    hdmi_force_edid_audio=1
    hdmi_force_hotplug=1

    CTRL+O to save
    CTRL+X to exit
    And to reboot: