Hello!
Sorry for bad english!
I have the RP2 and RP3 (Raspbian 4.4.22). Worth shell KODI (15.2). It sounds are reproduced without problems. I came out of the shell. In the terminal, perform speaker- test. At 3.5 white noise while the HDMI silence. In sudo raspi-config audio config is programmed as 0 (auto). When playing a file aplay /…/*.wav command runs without error, but there is no sound (white noise on the 3.5 and HDMI in the silence). What nonsense?