I have several pi's working without any problem of sound, but on a pi 4 under raspbian, the only way to produce sound on the jack interface is using :
“omxplayer -o local sample.mp3”
I must say that “./hello_audio.bin” produces a sound too.
But VLC, KODI, speaker-test do not produce any sound.
If I use a headset connected via USB, no problem : the sound is normal.
Thanks for your help.