No audio over HDMI

Hello,

I know this has been posted many times but none of the posts seem to have the solution to the problem I’m having. I’m unable to get the audio to play out anything but I specifically want it to play through hdmi.


aplay -Lnull
    Discard all samples (playback) or generate zero samples (capture)
default:CARD=Intel
    HDA Intel, ALC662 rev1 Analog
    Default Audio Device
sysdefault:CARD=Intel
    HDA Intel, ALC662 rev1 Analog
    Default Audio Device
front:CARD=Intel,DEV=0
    HDA Intel, ALC662 rev1 Analog
    Front speakers
surround21:CARD=Intel,DEV=0
    HDA Intel, ALC662 rev1 Analog
    2.1 Surround output to Front and Subwoofer speakers
surround40:CARD=Intel,DEV=0
    HDA Intel, ALC662 rev1 Analog
    4.0 Surround output to Front and Rear speakers
surround41:CARD=Intel,DEV=0
    HDA Intel, ALC662 rev1 Analog
    4.1 Surround output to Front, Rear and Subwoofer speakers
surround50:CARD=Intel,DEV=0
    HDA Intel, ALC662 rev1 Analog
    5.0 Surround output to Front, Center and Rear speakers
surround51:CARD=Intel,DEV=0
    HDA Intel, ALC662 rev1 Analog
    5.1 Surround output to Front, Center, Rear and Subwoofer speakers
surround71:CARD=Intel,DEV=0
    HDA Intel, ALC662 rev1 Analog
    7.1 Surround output to Front, Center, Side, Rear and Woofer speakers
hdmi:CARD=NVidia,DEV=0
    HDA NVidia, HDMI 0
    HDMI Audio Output
hdmi:CARD=NVidia,DEV=1
    HDA NVidia, HDMI 1
    HDMI Audio Output

This is what I when I generate a list of soundcards using aplay but when I use the “audio_device” command I’m met with this message

-sh: audio_device: not found

setting the soundcard manually in the retroarch config file seems to have no affect either.

Did you try to put in the configuration file /storage/.config/retroarch/retroarch.cfg

audio_device=hdmi:CARD=NVidia,DEV=0

or

audio_device=hdmi:CARD=NVidia,DEV=1

Before editing you need to stop retroarch :

systemctl stop retroarch

edit the file (CTRL+O then Enter to save then CTRL+X to exit)

 nano [FONT=arial]/storage/.config/retroarch/retroarch.cfg

And then restart retroarch

retroarch

[/FONT]

Yeah that’s the first thing I tried.

Can you try this ?