x86_64 uefi HDMI sound problem

I installed dietpi in a old pc to made a server.
Also I want to use this pc to work with my tv.
If I run “aplay -D plughw:0,3 /usr/share/sounds/alsa/Noise.wav” I ear correctly in the tv, but if I seet any video on youtube I don’t heard any sound.
I used lxde and mate, in both cases I don’t heard any sound.
If I run “aplay -l” the output was "
**** List of PLAYBACK Hardware Devices ****
card 0: PCH [HDA Intel PCH], device 0: ALC887-VD Analog [ALC887-VD Analog]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 1: ALC887-VD Digital [ALC887-VD Digital]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 3: HDMI 0 [HDMI 0]
Subdevices: 1/1
Subdevice #0: subdevice #0
"

Any suggestions?
Thank you!

The error is in Firefox, chrome works properly.