Ok, my mistake i did not understand that, thnks for clearing that up.
See attachments for output of aplay -L and the 2 config files. I renamed .conf to .txt so i can upload them here.
[UPDATE]: i reverted the changes made in asound.conf and advanced.conf to set audio autoconfig.
when i do in terminal:
Command: #systemctl stop kodi
Command: #pactl list short sinks:
Result: 1 librespot_sink module-null-sink.c s16le 2ch 44100Hz SUSPENDED
Command #pactl load-module module-udev-detect:
Result: 18 (dont know what this means)
Command: #pactl list short sinks
Result:
1 librespot_sink module-null-sink.c s16le 2ch 44100Hz SUSPENDED
2 alsa_output.pci-0000_00_1b.0.iec958-stereo module-alsa-card.c s16le 2ch 44100Hz IDLE
(So i guess the audio device (Pulse ?) is released by kodi now or something)
Command: dolphin.start
When i manualy start dolphin and set it to "Pulse" as the Audio Backend, it now starts the game with sound. When i set it to ALSA it crashes again.
When i set it to pulse without the steps mentioned above dolphin crashes... so maby kodi doesnt release the sound device or something.
some logging from kodi.log:
19:27:15.204 T:139962515191552 ERROR: CActiveAESink::OpenSink - no sink was returned
19:27:15.204 T:139962595788544 ERROR: ActiveAE::InitSink - returned error
19:27:15.704 T:139962515191552 INFO: CActiveAESink::OpenSink - initialize sink
19:27:15.704 T:139962515191552 DEBUG: CActiveAESink::OpenSink - trying to open device ALSA:iec958:CARD=PCH,DEV=0
19:27:15.704 T:139962515191552 INFO: CAESinkALSA::Initialize - Attempting to open device "iec958:CARD=PCH,DEV=0"
19:27:15.706 T:139962515191552 INFO: CAESinkALSA - Unable to open device "iec958:CARD=PCH,DEV=0,AES0=0x04,AES1=0x82,AES2=0x00,AES3=0x00" for playback
19:27:15.706 T:139962515191552 INFO: CAESinkALSA - Unable to open device "iec958:CARD=PCH,DEV=0" for playback
19:27:15.706 T:139962515191552 ERROR: CAESinkALSA::Initialize - failed to initialize device "iec958:CARD=PCH,DEV=0"
19:27:15.706 T:139962515191552 DEBUG: CActiveAESink::OpenSink - trying to open device ALSA:hdmi:CARD=HDMI,DEV=0
19:27:15.706 T:139962515191552 INFO: CAESinkALSA::Initialize - Attempting to open device "hdmi:CARD=HDMI,DEV=0"
19:27:15.707 T:139962515191552 INFO: CAESinkALSA::Initialize - Opened device "hdmi:CARD=HDMI,DEV=0,AES0=0x04,AES1=0x82,AES2=0x00,AES3=0x00"
19:27:15.708 T:139962515191552 INFO: CAESinkALSA::InitializeHW - Your hardware does not support AE_FMT_FLOAT, trying other formats
19:27:15.708 T:139962515191552 INFO: CAESinkALSA::InitializeHW - Using data format AE_FMT_S32NE
19:27:15.708 T:139962515191552 DEBUG: CAESinkALSA::InitializeHW - Request: periodSize 2205, bufferSize 8820
19:27:15.717 T:139962515191552 DEBUG: CAESinkALSA::InitializeHW - Got: periodSize 464, bufferSize 8816
19:27:15.717 T:139962515191552 DEBUG: CAESinkALSA::InitializeHW - Setting timeout to 200 ms
19:27:15.717 T:139962515191552 DEBUG: CAESinkALSA::GetChannelLayout - Input Channel Count: 2 Output Channel Count: 2
19:27:15.717 T:139962515191552 DEBUG: CAESinkALSA::GetChannelLayout - Requested Layout: FL, FR
19:27:15.717 T:139962515191552 DEBUG: CAESinkALSA::GetChannelLayout - Got Layout: UNKNOWN1, UNKNOWN1 (ALSA: UNKNOWN UNKNOWN)
19:27:15.717 T:139962515191552 ERROR: CActiveAESink::OpenSink - no sink was returned
19:27:15.718 T:139962595788544 ERROR: ActiveAE::InitSink - returned error
19:27:16.218 T:139962515191552 INFO: CActiveAESink::OpenSink - initialize sink
19:27:16.218 T:139962515191552 DEBUG: CActiveAESink::OpenSink - trying to open device ALSA:iec958:CARD=PCH,DEV=0
19:27:16.218 T:139962515191552 INFO: CAESinkALSA::Initialize - Attempting to open device "iec958:CARD=PCH,DEV=0"
19:27:16.219 T:139962515191552 INFO: CAESinkALSA::Initialize - Opened device "iec958:CARD=PCH,DEV=0,AES0=0x04,AES1=0x82,AES2=0x00,AES3=0x00"
19:27:16.220 T:139962515191552 INFO: CAESinkALSA::InitializeHW - Your hardware does not support AE_FMT_FLOAT, trying other formats
19:27:16.220 T:139962515191552 INFO: CAESinkALSA::InitializeHW - Using data format AE_FMT_S32NE
19:27:16.220 T:139962515191552 DEBUG: CAESinkALSA::InitializeHW - Request: periodSize 2205, bufferSize 8820
19:27:16.227 T:139962515191552 DEBUG: CAESinkALSA::InitializeHW - Got: periodSize 2205, bufferSize 8820
19:27:16.227 T:139962515191552 DEBUG: CAESinkALSA::InitializeHW - Setting timeout to 200 ms
19:27:16.227 T:139962515191552 DEBUG: CAESinkALSA::GetChannelLayout - Input Channel Count: 2 Output Channel Count: 2
19:27:16.227 T:139962515191552 DEBUG: CAESinkALSA::GetChannelLayout - Requested Layout: FL, FR
19:27:16.227 T:139962515191552 DEBUG: CAESinkALSA::GetChannelLayout - Got Layout: FL, FR (ALSA: FL FR)
19:27:16.227 T:139962515191552 DEBUG: CActiveAESink::OpenSink - ALSA Initialized:
19:27:16.227 T:139962515191552 DEBUG: Output Device : Device not found
19:27:16.227 T:139962515191552 DEBUG: Sample Rate : 44100
19:27:16.227 T:139962515191552 DEBUG: Sample Format : AE_FMT_S32NE
19:27:16.227 T:139962515191552 DEBUG: Channel Count : 2
19:27:16.227 T:139962515191552 DEBUG: Channel Layout: FL, FR
19:27:16.227 T:139962515191552 DEBUG: Frames : 2205
19:27:16.227 T:139962515191552 DEBUG: Frame Size : 8
19:27:42.475 T:139962463864576 DEBUG: Thread JobWorker 139962463864576 terminating (autodelete)
19:27:42.475 T:139962171254528 DEBUG: Thread JobWorker 139962171254528 terminating (autodelete)
19:27:42.475 T:139962179647232 DEBUG: Thread JobWorker 139962179647232 terminating (autodelete)