On Allwinner H3 the left / right channels are swapped when playing audio via HDMI.
In my 4.0 setup that's the case for all channels (front + rear/back).
On Allwinner H3 the left / right channels are swapped when playing audio via HDMI.
In my 4.0 setup that's the case for all channels (front + rear/back).
Additional info: when running "speaker-test" with "-c 2" everything is correct (front left and right)
However when started with "-c 4" front left and right are swapped.
daten Sorry for late response. Can you test this update? libreelec-h3.arm-9.80-devel-20191222122600-3fa9671.tar
Hey jernej - thanks and sorry for the late reply.
I exchanged the H3 board (OrangePi One) with an H6 board (OrangePi 3) - where the issue also occurs.
As both installations are custom builds (unpatched though, latest master), could you provide a diff? With a respective patch file I could apply it on the currently installed H6 based board (as well) and tinker around myself.
I already did so myself which unfortunately didn't improve the situation
Hum, ASoC: hdmi-codec: reorder channel allocation list - Patchwork is the upstream submitted patch that have some more details in commit message. It is intended to fix wrong speaker channel allocation mainly for 7.1 audio, where 6.1 ca gets selected without that patch.
daten please share a kodi debug log, it should include some details on how channels is mapped.
Also try to see if setting speaker count in kodi settings to 4.0, 4.1 or 5.1, 7.1 makes any difference.
Thanks, will do so ASAP. But I don#t see how it's kodi related, as the same behaviour is observed with `speaker-test`
Last time I tested speaker-test (months ago) it did not support or made use of channel mappings api and expect channels to follow a specific configuration / order.
Kodi make use of the channel mapping api when correct alsa card/device is used, make sure you select the hdmi audio device that read and make use of ELD, it usually contain short TV/AVR manufacture name in kodi.
Correction: On H6 channels within Kodi appear to always be reversed, whether I set 2.0 or 4.0 as speaker config
For speaker-test it's the same as described though (2.0 correct, 4.0, 5.1, 7.1 incorrect).
What I can say for sure so far: Kodi in 2.0 and 4.0 configuration behaves the same way as speaker-test - meaning, 2.0 is correct, while 4.0 is reversed.Within kodi I tested that with a surround test video which addresses the speakers connected to my amp correctly when being played via my notebook.
I've tested this and it seems to fix the issue...can you confirm?
Comparing LibreELEC:master...codekipper:audiofix · LibreELEC/LibreELEC.tv · GitHub
Confirmed - thank you!
Thanks...I'll prepare a pull request.