omxplayer surround audio issue.

Hi,

I recently updated a Pi3 to libreelec 8, from 7.0.3, and found that surround sound stopped working properly.

I’m using audio mixing on the pi, passing multi channel pcm to the amp.

debug log is here:
http://sprunge.us/GjXX

What I think is happening is that I’d previously enabled omxplayer acceleration, and when doing so the debug log shows:
20:43:56.895 T:1930425248 DEBUG: CActiveAESink::OpenSink – SinkPi Initialized:
20:43:56.895 T:1930425248 DEBUG: Output Device : HDMI
20:43:56.895 T:1930425248 DEBUG: Sample Rate : 44100
20:43:56.895 T:1930425248 DEBUG: Sample Format : AE_FMT_FLOAT
20:43:56.895 T:1930425248 DEBUG: Channel Count : 2
20:43:56.895 T:1930425248 DEBUG: Channel Layout: FL,FR
20:43:56.895 T:1930425248 DEBUG: Frames : 2205
20:43:56.895 T:1930425248 DEBUG: Frame Size : 8

Which matches what I see stereo input into the amp.

Switching off omxplayer, leaving mmal I see:
20:48:29.225 T:1930425248 DEBUG: CActiveAESink::OpenSink – SinkPi Initialized:
20:48:29.225 T:1930425248 DEBUG: Output Device : HDMI
20:48:29.225 T:1930425248 DEBUG: Sample Rate : 48000
20:48:29.225 T:1930425248 DEBUG: Sample Format : AE_FMT_FLOAT
20:48:29.225 T:1930425248 DEBUG: Channel Count : 6
20:48:29.225 T:1930425248 DEBUG: Channel Layout: FL,FR,FC,LFE,BL,BR
20:48:29.225 T:1930425248 DEBUG: Frames : 2400
20:48:29.225 T:1930425248 DEBUG: Frame Size : 24

and multi-channel in on the amp, and audio working correctly.

Omxplayer works with passthrough, but last time I read up on things, it was recommended not to use passthrough when vsyncing. (and passthrough won’t do truehd etc etc)

This happens with dd 5.1 and dts truehd, so I suspect based on the above that the issue lies in the setup of the audio with omxplayer.

For now I’m using mmal.

I did wonder why others don’t see this, but I think it’s due to the defaults, which appears to leave omxplayer disabled.

I can raise this as a bug, but wanted to check if anyone else can repro the issue.

Thanks,
Chris