<div><div dir="auto">Switching to ALSA from OpenMax resolved this issue, but not in the way I expected. Rather than needing to remap the channels for multi channel pcm after switching to ALSA the audio is encoded into Dolby Digital, which has the channels mapped correctly.</div><div dir="auto"><br></div><div dir="auto">I had some trouble switching to ALSA because I only had OpenMax options. It turns out my user wasn't in the audio group.</div><div dir="auto"><br></div><div dir="auto">Hope this is useful to others in the future.</div><div dir="auto"><br></div><div dir="auto">Andrew</div><br><div class="gmail_quote"><div>On Mon, 27 Nov 2017 at 01:04, David Hampton <<a href="mailto:mythtv@love2code.net">mythtv@love2code.net</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On Sun, 2017-11-26 at 19:47 -0500, Peter Bennett wrote:<br>
> <br>
> On 11/26/2017 05:03 PM, Andrew Wilkinson wrote:<br>
> > Hi,<br>
> ><br>
> > I recently tried to start watching the BBC's Blue Planet 2, but<br>
> > unfortunately I have a problem with the audio. It's broadcast in 6<br>
> > channel AAC which my onkyo can't decode, so for the first time I'm<br>
> > using multichannel PCM.<br>
> ><br>
> > Front left and right, and rear left and right all work fine. The<br>
> > centre and sub woofer are swapped though, which doesn't do David<br>
> > Attenborough's voice any favours. I can confirm this using the<br>
> > speaker<br>
> > test screen, which also uses multichannel PCM.<br>
> ><br>
> > I'm using a Raspberry Pi and OpenMax audio. Is there any way to<br>
> > correct the channel mapping? I suspect I might be able to use the<br>
> > vcgencmd hdmi_channel_map command, but I've no idea how to<br>
> > generate<br>
> > the correct value.<br>
> ><br>
> > Any insights you can provide would be much appreciated.<br>
> ><br>
> > Thanks,<br>
> > Andrew<br>
> ><br>
> ><br>
><br>
> Does the HDMI connection go direct to the Onkyo? If you are using a<br>
> toslink optical or coax connection, they don't support multi-channel<br>
> PCM.<br>
><br>
> Make sure you have selected the correct number of speakers in the<br>
> "Speaker configuration". You can also try switching this between 5.1<br>
> and<br>
> 7.1. Different selections will change the way the channels are<br>
> mapped.<br>
><br>
> Another thing you can try - there are two ways to get digital audio<br>
> from<br>
> Raspberry pi, using ALSA or OpenMAX audio (see<br>
> <a href="https://www.mythtv.org/wiki/Raspberry_Pi#Digital_Audio_with_ALSA" rel="noreferrer" target="_blank">https://www.mythtv.org/wiki/Raspberry_Pi#Digital_Audio_with_ALSA</a> and<br>
> <a href="https://www.mythtv.org/wiki/Raspberry_Pi#Digital_Audio" rel="noreferrer" target="_blank">https://www.mythtv.org/wiki/Raspberry_Pi#Digital_Audio</a>). I believe<br>
> the<br>
> ALSA method is superior, so I would try that.<br>
<br>
I had the swapped center/subwoofer problem many years ago with a<br>
different receiver/amplifier. IIRC, I fixed it by remapping the<br>
channels in the ALSA configuration. See the "Zotac ION / NVIDIA ION"<br>
section of <a href="https://www.mythtv.org/wiki/Digital_Audio_Tutorial" rel="noreferrer" target="_blank">https://www.mythtv.org/wiki/Digital_Audio_Tutorial</a> for an<br>
idea of how to do this.<br>
<br>
David<br>
<br>
_______________________________________________<br>
mythtv-users mailing list<br>
<a href="mailto:mythtv-users@mythtv.org" target="_blank">mythtv-users@mythtv.org</a><br>
<a href="http://lists.mythtv.org/mailman/listinfo/mythtv-users" rel="noreferrer" target="_blank">http://lists.mythtv.org/mailman/listinfo/mythtv-users</a><br>
<a href="http://wiki.mythtv.org/Mailing_List_etiquette" rel="noreferrer" target="_blank">http://wiki.mythtv.org/Mailing_List_etiquette</a><br>
MythTV Forums: <a href="https://forum.mythtv.org" rel="noreferrer" target="_blank">https://forum.mythtv.org</a><br>
</blockquote></div></div>