06-21-2024, 11:58 PM
(06-21-2024, 10:22 PM)jcucurull Wrote: As explained in the MPD forum (https://github.com/MusicPlayerDaemon/MPD...nt-9844112), it seems I have managed to solve the issue doing a workaround. I have applied a remaping at the level of ALSA. To be more specific, I have created a custom device that is a plugin that remaps the channels including this in "/etc/asound.conf":
Code:pcm.!hdmi-remap {
type plug
slave.pcm "_audioout"
ttable {
0.0= 1
1.1= 1
2.4= 1
3.5= 1
4.3= 1
5.2= 1
6.6= 1
7.7= 1
}
}
Then I have modified the "mpd.conf" to use the "hdmi-remap" device instead of the "_audioout" that is usually used.
My only question is how to make that after rebooting the system the "mpd.conf" file is not overwritten or, if it is regenerated, how to include the assign the newly created device. Otherwise I cannot do the changes permanent. Any suggestion @Tim Curtis ?
Also, I would like to note that this solution is not a final one, because it is tailored to my specific system or at least to the systems using HDMI as output for multichannel audio. MPD should be passing the channel mapping information to ALSA using the Channel Order API of the alsa library (https://www.alsa-project.org/alsa-doc/al...1b73839085), and it is not currently doing it. As requested in the MPD forum I will create a Feature request so they can implement this feature in the future.
Fantastic :-)