Opened 21 months ago

Closed 21 months ago

Last modified 20 months ago

#13249 closed Bug Report - General (fixed)

OpenMax:hdmi on Raspberry Pi - LFE and centre channels swapped

Reported by: Joe Bryant <jb@…> Owned by: Peter Bennett
Priority: minor Milestone: 29.2
Component: Ports - rPi Version: 0.28.1
Severity: medium Keywords:
Cc: Ticket locked: no

Description

Using OpenMax:hdmi audio output on a Raspberry Pi 3, with speakers set to 5.1, the centre and LFE channels are swapped. This error is present on both the speaker test screen, and during playback of 5.1 content.

Installed from the mythtv-light package, version 0.28.1-59-g7c931f1752-0on

Change History (18)

comment:1 Changed 21 months ago by Peter Bennett

Component: MythTV - Audio OutputPorts - rPi
Owner: changed from JYA to Peter Bennett
Status: newassigned

comment:2 Changed 21 months ago by Peter Bennett

comment:3 Changed 21 months ago by Peter Bennett

I do not have a sound system capable of multi-channel PCM. I can make a fix but I cannot test it. If I supply a package please let me know if you will be able to test it for me.

Please let me know if you are running Jessie or Stretch version of Raspbian and whether you need MythTV version 28, 29 or 30 for the test package.

comment:4 Changed 21 months ago by Joe Bryant <jb@…>

Thanks very much for looking at this. I can test Stretch with MythTV 0.28.

comment:5 Changed 21 months ago by Joe Bryant <jb@…>

As it happens, I have a 7.1 system; I notice that the 7.1 channel test works even less than the 5.1 does - I'd be happy to help with any tests of this too (although for my own use I don't especially need 7.1 sound since I don't think UK TV broadcasts in 7.1).

comment:6 Changed 21 months ago by Peter Bennett

Please download the updated package from here

https://www.dropbox.com/s/rwcj6oaswbz7fj0/mythtv-light_0.28.2-dirty-0_armhf_stretch.deb?dl=0

Install it using sudo gdebi <filename> . If you do not have gdebi on your raspberry pi, install it with sudo apt install gdebi-core.

Let me know if this solves the 5.1 problem. If there is a 7.1 problem still, let me know the details.

To get back to your prior install of MythTV if necessary, first uninstall mythtv-light and then install again with apt.

comment:7 Changed 21 months ago by Joe Bryant <jb@…>

Thanks for the quick turnaround. However, this seems to have made no difference. In "information centre", MythTV reports version "fixes/0.28 (v0.28.2-dirty)", but the sound output is unchanged.

Specifically, with 5.1, centre and LFE channels are swapped, but other channels are correct.

With 7.1 (both with my original and this version), only front left and front right output sound at all, and other channels are silent.

comment:8 Changed 21 months ago by Joe Bryant <jb@…>

Update - I've just tried a 7.1 file with OMX player (using --layout 7.1), and it also only plays front-left and front-right, so I don't think this is a Myth issue particularly.

However, a 5.1 file, using --layout 5.1, with OMX player, does work.

comment:9 Changed 21 months ago by Peter Bennett

I will have to rework this. I will get back to you with an update.

comment:11 Changed 21 months ago by Joe Bryant <jb@…>

Some definite improvement: with this version, 5.1 sounds all play from the correct speakers, but ONLY if I have "use internal mixer" selected. If I leave "internal mixer" turned off, the receiver still lights up to indicate that audio streams are incoming, but no sound is heard. I'm not sure if this is just user error - is there some way to adjust the OMX volume, that I am not aware of?

In 7.1 mode, I see the same "internal mixer" issue, plus I only get sound from front-left and front-right in speaker test, as before.

comment:12 Changed 21 months ago by Peter Bennett

For some reason the volume frequently sets itself back to zero. Did you try pressing the keyboard square bracket ] while playing to set the volume up? This seems to work during playback but not during audio test.

You will also have to select the setting to allow internal volume control selected.

Version 1, edited 21 months ago by Peter Bennett (previous) (next) (diff)

comment:13 Changed 21 months ago by Joe Bryant <jb@…>

Sorry, yes, I said "internal mixer" before but I meant "Use internal volume controls". If this setting is enabled, 5.1 sound is working correctly, thank you. With it disabled, I get silence.

comment:14 Changed 21 months ago by Peter Bennett <pbennett@…>

Resolution: fixed
Status: assignedclosed

In 5377e5089e243ec282514b6d68afb800c02aca03/mythtv:

Raspberry Pi Openmax Audio: Fix swapped channels when using PCM output

Fixes #13249

comment:15 Changed 21 months ago by Peter Bennett <pbennett@…>

In 60e40b352ab95a135ec2ab8f9f1ee93b4f9d245e/mythtv:

Raspberry Pi Openmax Audio: Fix swapped channels when using PCM output

Fixes #13249

(cherry picked from commit 5377e5089e243ec282514b6d68afb800c02aca03)

comment:16 Changed 21 months ago by Peter Bennett <pbennett@…>

In 2d49bc192fc81dadb9d716427c47c68f51c964e5/mythtv:

Raspberry Pi Openmax Audio: Fix swapped channels when using PCM output

Fixes #13249

(cherry picked from commit 5377e5089e243ec282514b6d68afb800c02aca03)

comment:17 Changed 20 months ago by Stuart Auchterlonie

Milestone: needs_triage29.2

comment:18 Changed 20 months ago by Peter Bennett

Owner: changed from Peter Bennett to Peter Bennett
Note: See TracTickets for help on using tickets.