Thank you, it works great.
Tested on RPi4.
On my earlier LibreELEC Kodi 18.9 the dual sound was no problem.
Simultaneously to TV and wired headphones.
I don't know why LibreELEC (or Kodi 20) removed it.
I've been searching for weeks and the only workable solution is yours, thanks.
Simultaneous audio to TV and bluetooth headphones is ok.
But the problem is with simultaneous sound to TV and wired headphones plugged into Raspberry 3.5 jack.
I've edited the config and it works – but it has bugs.
The sound in the TV is ok, the sound in the wired headphones is bad.
There is a lot of noise in the headphones, and when I play a movie the sound is like a dashed line – 3 seconds of sound + 0.5 seconds of dropout-silence. And this goes on and on.
Is there any solution to this please?
Thank you