I will be offline a couple of days can't look closely now but it's very unexpected behaviour. Kodi in my image runs with ALSA through the
KODI_AE_SINK=ALSA variable which is set in the systemd unit file (confirm it by excecuting systemctl cat kodi). The binary kodi.bin is started through pasuspender which suspends Pulseaudio until the process exits. You shouldn't be getting any sound from setting Pulseaudio in system settings, and there should be no need to stop Pulseaudio as it's already suspended. I'll have a look at your logs later though, thanks for the feedback.
yep:
cinemax:~ # systemctl cat kodi
# /usr/lib/systemd/system/kodi.service
[Unit]
Description=Kodi Media Center
Wants=kodi.target
Conflicts=weston.service sway.service xorg.service emulationstation.service
After=weston.service sway.service xorg.service emulationstation.service
[Service]
Environment=KODI_AE_SINK=ALSA
Environment=__GL_YIELD=USLEEP
Environment=HOME=/storage
Environment=KODI_TEMP=/storage/.kodi/temp
Environment=KODI_HOME=/usr/share/kodi/
EnvironmentFile=-/run/libreelec/kodi.conf
EnvironmentFile=-/run/libreelec/debug/kodi.conf
ExecStartPre=-/usr/lib/kodi/kodi-config
ExecStart=/usr/lib/kodi/kodi.sh --standalone -fs $KODI_ARGS $KODI_DEBUG
ExecStopPost=-/usr/lib/kodi/kodi-safe-mode
TimeoutStopSec=10
Restart=always
RestartSec=2
StartLimitInterval=0
LimitNOFILE=16384
TTYPath=/dev/tty1
note the lower case here (in /usr/lib/kodi/kodi.sh):
if [ "$KODI_AE_SINK" = "alsa" ]; then