It is interesting because if I reproduce the test file from the command line:
flac -c -d surround51.flac | aplay
I got switched up only the center channel with the LFE.
So it seems that depending on the application I use to reproduce the file, the channel mapping changes.
Edited: If I convert the FLAC to WAV with the first part of the command line shown, then the result of reproducing the same WAV file using Moode (MPD) or Aplay has different channel assignments. Which means that the channel messing occurs after decoding the FLAC.
Edited 2: Looking into the post shown later it seems that the channel order can be changed at the level of ALSA, thus when I have some time I will try to see if this might help: https://ubuntuforums.org/showthread.php?...st11622383
Edited 3: If I specify the correct channel mapping using the Aplay command line tool, I can reproduce the test file as well as the initial Pink Floyd file flawlessly:
# flac -c -d surround51.flac | aplay -m FL,FR,FC,LFE,RL,RR
I am also surprised that if I run the "speaker-test -c 6 -t wav" command, without specifying the channel order, it works fine out of the box, i.e. everything on the speaker it is supposed to. To me this means that ALSA is correctly configured because the mapping between ALSA channels and speakers is correct.
flac -c -d surround51.flac | aplay
I got switched up only the center channel with the LFE.
So it seems that depending on the application I use to reproduce the file, the channel mapping changes.
Edited: If I convert the FLAC to WAV with the first part of the command line shown, then the result of reproducing the same WAV file using Moode (MPD) or Aplay has different channel assignments. Which means that the channel messing occurs after decoding the FLAC.
Edited 2: Looking into the post shown later it seems that the channel order can be changed at the level of ALSA, thus when I have some time I will try to see if this might help: https://ubuntuforums.org/showthread.php?...st11622383
Edited 3: If I specify the correct channel mapping using the Aplay command line tool, I can reproduce the test file as well as the initial Pink Floyd file flawlessly:
# flac -c -d surround51.flac | aplay -m FL,FR,FC,LFE,RL,RR
I am also surprised that if I run the "speaker-test -c 6 -t wav" command, without specifying the channel order, it works fine out of the box, i.e. everything on the speaker it is supposed to. To me this means that ALSA is correctly configured because the mapping between ALSA channels and speakers is correct.